+2001-11-03 Bruno Haible <haible@clisp.cons.org>
+
+ * xgettext.c (line_comment): Remove variable, so default value is
+ always 1.
+
2001-11-03 Bruno Haible <haible@clisp.cons.org>
* x-c.c (extract_parenthesized): New function, extracted from
extract_class_ty *this = (extract_class_ty *) that;
size_t i;
- this->mlp = NULL; /* actually set in read_po_file, below */
+ this->mlp = NULL; /* actually set in extract_po, below */
this->comment = NULL;
this->comment_dot = NULL;
this->is_fuzzy = false;
/* If nonzero add all comments immediately preceding one of the keywords. */
static bool add_all_comments = false;
-/* If nonzero add comments for file name and line number for each msgid. */
-int line_comment = 1;
-
/* Tag used in comment of prevailing domain. */
static char *comment_tag;
#include "message.h"
#include "pos.h"
+/* Borrowed from read-po.h. */
extern int line_comment;
extern int omit_header;
+2001-11-03 Bruno Haible <haible@clisp.cons.org>
+
+ * plural-1: Add option --no-location to xgettext call, no longer
+ implied by --omit-header.
+ * xgettext-1: Likewise.
+ * xgettext-2: Likewise.
+ * xgettext-5: Likewise.
+ * xgettext-6: Likewise.
+ * xgettext-7: Likewise.
+ * xgettext-9: Likewise.
+ * xgettext-10: Likewise.
+ * xgettext-11: Likewise.
+ * xgettext-12: Likewise.
+ * xgettext-15: Likewise.
+ * xgettext-16: Likewise.
+
2001-11-03 Bruno Haible <haible@clisp.cons.org>
* Makefile.am (TESTS): Add xgettext-17.
tmpfiles="$tmpfiles cake.pot"
: ${XGETTEXT=xgettext}
-${XGETTEXT} -o cake.pot --omit-header ${top_srcdir}/tests/plural-1-prg.c
+${XGETTEXT} -o cake.pot --omit-header --no-location ${top_srcdir}/tests/plural-1-prg.c
tmpfiles="$tmpfiles cake.ok"
cat <<EOF > cake.ok
tmpfiles="xg-test1.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} -d xg-test1 -k_ --omit-header \
+${XGETTEXT} -d xg-test1 -k_ --omit-header --no-location \
$top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c $top_srcdir/src/gettext.c
: ${DIFF=diff}
tmpfiles="$tmpfiles xg-test10.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header -c -d xg-test10 xg-test10.java
+${XGETTEXT} --omit-header --no-location -c -d xg-test10 xg-test10.java
tmpfiles="$tmpfiles xg-test10.ok"
cat <<EOF > xg-test10.ok
tmpfiles="$tmpfiles xg-test11.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header -c --keyword-substring --keyword=Exception -d xg-test11 xg-test11.java
+${XGETTEXT} --omit-header --no-location -c --keyword-substring --keyword=Exception -d xg-test11 xg-test11.java
tmpfiles="$tmpfiles xg-test11.ok"
cat <<EOF > xg-test11.ok
tmpfiles="$tmpfiles xg-test12.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} -d xg-test12 -k_ --omit-header xg-test12.in.c
+${XGETTEXT} -d xg-test12 -k_ --omit-header --no-location xg-test12.in.c
tmpfiles="$tmpfiles xg-test12.ok"
cat <<EOF > xg-test12.ok
tmpfiles="$tmpfiles xg-test15.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header -d xg-test15 xg-test15.java
+${XGETTEXT} --omit-header --no-location -d xg-test15 xg-test15.java
tmpfiles="$tmpfiles xg-test15.ok"
cat <<EOF > xg-test15.ok
tmpfiles="$tmpfiles xg-test16.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --keyword=ngettext:2,3 -d xg-test16 xg-test16.java
+${XGETTEXT} --omit-header --no-location --keyword=ngettext:2,3 -d xg-test16 xg-test16.java
tmpfiles="$tmpfiles xg-test16.ok"
cat <<EOF > xg-test16.ok
tmpfiles="$tmpfiles xg-test2.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} -d xg-test2 -k_ --omit-header xg-test2.in.c
+${XGETTEXT} -d xg-test2 -k_ --omit-header --no-location xg-test2.in.c
tmpfiles="$tmpfiles xg-test2.ok"
cat <<EOF > xg-test2.ok
tmpfiles="$tmpfiles xg-test5.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --trigraphs xg-test5.in.c -d xg-test5
+${XGETTEXT} --omit-header --no-location --trigraphs xg-test5.in.c -d xg-test5
tmpfiles="$tmpfiles xg-test5.ok"
cat <<EOF > xg-test5.ok
tmpfiles="$tmpfiles xg-test6.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --add-comments xg-test6.in.cc -d xg-test6
+${XGETTEXT} --omit-header --no-location --add-comments xg-test6.in.cc -d xg-test6
tmpfiles="$tmpfiles xg-test6.ok"
cat <<EOF > xg-test6.ok
tmpfiles="$tmpfiles xg-test7.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --add-comments=XXX xg-test7.in.C \
+${XGETTEXT} --omit-header --no-location --add-comments=XXX xg-test7.in.C \
-d xg-test7
tmpfiles="$tmpfiles xg-test7.ok"
tmpfiles="$tmpfiles xg-test9.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header -c --c++ -d xg-test9 xg-test9.c
+${XGETTEXT} --omit-header --no-location -c --c++ -d xg-test9 xg-test9.c
tmpfiles="$tmpfiles xg-test9.ok"
cat <<EOF > xg-test9.ok