* x-java.l (strip_ending_spaces): Fix isspace call.
+ * xgettext.h (xgettext_omit_header): Renamed from omit_header.
+ * xgettext.c (xgettext_omit_header): Likewise.
+ (long_options, main, remember_a_message): Update.
+ * x-po.c (extract_directive_message): Update.
+
2001-12-09 Bruno Haible <bruno@clisp.org>
* x-lisp.h: New file.
away, we have constructed a new one.
But if no new one was constructed, keep the old header. This is useful
because the old header may contain a charset= directive. */
- if (*msgid == '\0' && !omit_header)
+ if (*msgid == '\0' && !xgettext_omit_header)
{
discard:
free (msgid);
static char *output_dir;
/* If nonzero omit header with information about this run. */
-int omit_header;
+int xgettext_omit_header;
/* Long options. */
static const struct option long_options[] =
{ "msgstr-suffix", optional_argument, NULL, 'M' },
{ "no-escape", no_argument, NULL, 'e' },
{ "no-location", no_argument, &line_comment, 0 },
- { "omit-header", no_argument, &omit_header, 1 },
+ { "omit-header", no_argument, &xgettext_omit_header, 1 },
{ "output", required_argument, NULL, 'o' },
{ "output-dir", required_argument, NULL, 'p' },
{ "sort-by-file", no_argument, NULL, 'F' },
/* Generate a header, so that we know how and when this PO file was
created. */
- if (!omit_header)
+ if (!xgettext_omit_header)
message_list_append (mdlp->item[0]->messages, construct_header ());
/* Read in the old messages, so that we can add to them. */
is_format[i] = undecided;
do_wrap = undecided;
- if (msgid[0] == '\0' && !omit_header)
+ if (msgid[0] == '\0' && !xgettext_omit_header)
{
char buffer[21];
/* Borrowed from read-po.h. */
extern int line_comment;
-extern int omit_header;
+/* If true, omit the header entry.
+ If false, keep the header entry present in the input. */
+extern int xgettext_omit_header;
extern bool substring_match;