]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make the --add/no-location option independent from --omit-header.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Nov 2001 10:55:00 +0000 (10:55 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 20:52:27 +0000 (22:52 +0200)
src/xgettext.c

index 242be2b09bf3a0a0fab8cbd32c2fb27a134b1c75..87abed3590330eaf53bb5649530bb2d1e8399b88 100644 (file)
@@ -74,7 +74,7 @@ struct passwd *getpwuid ();
 static bool add_all_comments = false;
 
 /* If nonzero add comments for file name and line number for each msgid.  */
-int line_comment;
+int line_comment = 1;
 
 /* Tag used in comment of prevailing domain.  */
 static char *comment_tag;
@@ -217,7 +217,6 @@ main (argc, argv)
   textdomain (PACKAGE);
 
   /* Set initial value of variables.  */
-  line_comment = -1;
   default_domain = MESSAGE_DOMAIN_DEFAULT;
 
   while ((optchar = getopt_long (argc, argv,
@@ -366,10 +365,6 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
   if (do_help)
     usage (EXIT_SUCCESS);
 
-  /* Normalize selected options.  */
-  if (omit_header != 0 && line_comment < 0)
-    line_comment = 0;
-
   /* Verify selected options.  */
   if (!line_comment && sort_by_filepos)
     error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"),