+2003-11-22 Bruno Haible <bruno@clisp.org>
+
+ * x-c.c (phase4_getc): Skip leading whitespace in C++ style comments
+ as well.
+ * x-sh.c (read_word): Skip leading whitespace in comments.
+ * x-lisp.c (read_object): Skip leading whitespace in single-line
+ comments as well.
+ * x-elisp.c (read_object): Skip leading whitespace in comments.
+ * x-librep.c (read_object): Skip leading whitespace in single-line
+ comments as well.
+ * x-java.c (phase4_getc): Skip leading whitespace in C++ style comments
+ as well.
+ * x-awk.c (phase2_getc): Skip leading whitespace in comments.
+ * x-ycp.c (phase2_getc): Skip leading whitespace in single-line
+ comments as well.
+ * x-tcl.c (read_command): Skip leading whitespace in comments.
+
2003-11-24 Bruno Haible <bruno@clisp.org>
* format-lisp.c (check_params): Use ngettext for one of the messages.
c = phase1_getc ();
if (c == '\n' || c == EOF)
break;
- if (buflen >= bufmax)
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
{
- bufmax = 2 * bufmax + 10;
- buffer = xrealloc (buffer, bufmax);
+ if (buflen >= bufmax)
+ {
+ bufmax = 2 * bufmax + 10;
+ buffer = xrealloc (buffer, bufmax);
+ }
+ buffer[buflen++] = c;
}
- buffer[buflen++] = c;
}
if (buflen >= bufmax)
{
c = phase3_getc ();
if (c == '\n' || c == EOF)
break;
- comment_add (c);
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
+ comment_add (c);
}
comment_line_end (0);
last_comment_line = newline_count;
if (c != ';')
all_semicolons = false;
if (!all_semicolons)
- comment_add (c);
+ {
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
+ comment_add (c);
+ }
}
comment_line_end (0);
continue;
c = phase3_getc ();
if (RED (c) == '\n' || c == P2_EOF)
break;
- comment_add (c);
+ /* We skip all leading white space, but not EOLs. */
+ if (!(comment_at_start () && (RED (c) == ' ' || RED (c) == '\t')))
+ comment_add (c);
}
phase3_ungetc (c); /* push back the newline, to decrement line_number */
comment_line_end (0);
if (c != ';')
all_semicolons = false;
if (!all_semicolons)
- comment_add (c);
+ {
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
+ comment_add (c);
+ }
}
comment_line_end (0);
continue;
if (c != ';')
all_semicolons = false;
if (!all_semicolons)
- comment_add (c);
+ {
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
+ comment_add (c);
+ }
}
comment_line_end (0);
continue;
c = phase1_getc ();
if (c == EOF || c == '\n')
break;
- comment_add (c);
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
+ comment_add (c);
}
comment_line_end ();
}
c = phase2_getc ();
if (c == EOF || c == CL_BRACE || c == '\n')
break;
- comment_add (c);
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
+ comment_add (c);
}
comment_line_end ();
continue;
c = phase1_getc ();
if (c == '\n' || c == EOF)
break;
- if (buflen >= bufmax)
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
{
- bufmax = 2 * bufmax + 10;
- buffer = xrealloc (buffer, bufmax);
+ if (buflen >= bufmax)
+ {
+ bufmax = 2 * bufmax + 10;
+ buffer = xrealloc (buffer, bufmax);
+ }
+ buffer[buflen++] = c;
}
- buffer[buflen++] = c;
}
if (buflen >= bufmax)
{
if (c == EOF)
break;
/* We skip all leading white space, but not EOLs. */
- if (buflen == 0 && isspace (c) && c != '\n')
+ if (buflen == 0 && (c == ' ' || c == '\t'))
continue;
if (buflen >= bufmax)
{
c = phase1_getc ();
if (c == '\n' || c == EOF)
break;
- if (buflen >= bufmax)
+ /* We skip all leading white space, but not EOLs. */
+ if (!(buflen == 0 && (c == ' ' || c == '\t')))
{
- bufmax = 2 * bufmax + 10;
- buffer = xrealloc (buffer, bufmax);
+ if (buflen >= bufmax)
+ {
+ bufmax = 2 * bufmax + 10;
+ buffer = xrealloc (buffer, bufmax);
+ }
+ buffer[buflen++] = c;
}
- buffer[buflen++] = c;
}
if (buflen >= bufmax)
{
+2003-11-22 Bruno Haible <bruno@clisp.org>
+
+ * xgettext-c-9: New file.
+ * xgettext-sh-2: New file.
+ * xgettext-python-2: New file.
+ * xgettext-lisp-1: New file.
+ * xgettext-elisp-1: New file.
+ * xgettext-librep-1: New file.
+ * xgettext-smalltalk-1: New file.
+ * xgettext-java-5: New file.
+ * xgettext-awk-1: New file.
+ * xgettext-ycp-2: New file.
+ * xgettext-tcl-2: New file.
+ * xgettext-perl-5: New file.
+ * xgettext-php-1: New file.
+ * Makefile.am (TESTS): Add them.
+
2003-11-15 Bruno Haible <bruno@clisp.org>
* Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
msguniq-1 msguniq-2 msguniq-3 msguniq-4 \
xgettext-1 xgettext-2 xgettext-3 xgettext-4 xgettext-5 xgettext-6 \
xgettext-7 \
+ xgettext-awk-1 \
xgettext-c-1 xgettext-c-2 xgettext-c-3 xgettext-c-4 xgettext-c-5 \
- xgettext-c-6 xgettext-c-7 xgettext-c-8 \
+ xgettext-c-6 xgettext-c-7 xgettext-c-8 xgettext-c-9 \
+ xgettext-elisp-1 \
xgettext-glade-1 xgettext-glade-2 xgettext-glade-3 \
xgettext-java-1 xgettext-java-2 xgettext-java-3 xgettext-java-4 \
+ xgettext-java-5 \
+ xgettext-librep-1 \
+ xgettext-lisp-1 \
xgettext-objc-1 \
xgettext-perl-1 xgettext-perl-2 xgettext-perl-3 xgettext-perl-4 \
+ xgettext-perl-5 \
+ xgettext-php-1 \
xgettext-po-1 \
xgettext-properties-1 \
- xgettext-python-1 \
- xgettext-sh-1 \
+ xgettext-python-1 xgettext-python-2 \
+ xgettext-sh-1 xgettext-sh-2 \
+ xgettext-smalltalk-1 \
xgettext-stringtable-1 \
- xgettext-tcl-1 \
- xgettext-ycp-1 \
+ xgettext-tcl-1 xgettext-tcl-2 \
+ xgettext-ycp-1 xgettext-ycp-2 \
format-awk-1 format-awk-2 \
format-c-1 format-c-2 format-c-3 format-c-4 \
format-elisp-1 format-elisp-2 \