]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Remove unused limit and option.
authorBruno Haible <bruno@clisp.org>
Tue, 27 Mar 2001 13:29:52 +0000 (13:29 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 27 Mar 2001 13:29:52 +0000 (13:29 +0000)
ChangeLog
acconfig.h
src/ChangeLog
src/xgettext.c

index 99d494d5e20c92015f001ea75eb43f22336d663c..a1972ebcb58e8c0b22f6a1e2f1185a3a88aeedb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-25  Bruno Haible  <haible@clisp.cons.org>
+
+       * acconfig.h (WARN_ID_LEN): Remove macro.
+
 2001-03-21  Bruno Haible  <haible@clisp.cons.org>
 
        * INSTALL (Particular Systems): Add recommendations for AIX 3.
index 2de2b9ec5cc888fb10f88af19551717d85c83980..68847033f0ce360903a749262af3c57aaeb031cf 100644 (file)
@@ -1,5 +1,5 @@
 /* Special definitions, processed by autoheader.
-   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation.
+   Copyright (C) 1995-1998, 2001 Free Software Foundation.
    Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.  */
 
 /* Default value for alignment of strings in .mo file.  */
 # define       INVALID_PATH_CHAR "\1\2\3\4\5\6\7\10\11\12\13\14\15\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37 \177\\:."
 #endif
 
-/* Length from which starting on warnings about too long strings are given.
-   Several systems have limits for strings itself, more have problems with
-   strings in their tools (important here: gencat).  1024 bytes is a
-   conservative limit.  Because many translation let the message size grow
-   (German translations are always bigger) choose a length < 1024.  */
-#define WARN_ID_LEN 900
-
 /* This is the page width for the message_print function.  It should
    not be set to more than 79 characters (Emacs users will appreciate
    it).  It is used to wrap the msgid and msgstr strings, and also to
index bd02633e9a40b8db8577d23f4c59d3ac57e05a49..7a494380df851bae6f88a5a4232a695f21a3a28d 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-25  Bruno Haible  <haible@clisp.cons.org>
+
+       * xgettext.c (warn_id_len): Remove unused variable.
+       (main): Don't set it. 'l' option becomes a nop.
+       (usage): Remove mention of --string-limits/-l.
+
 2001-03-23  Bruno Haible  <haible@clisp.cons.org>
 
        * msgcomm.c (main): Don't give an error message if there are "too few"
index cdfe29fb914f11a5bceb29250bbd7f651a5d35e1..186b7cd2d33a36432a3c5c20cd17519f3ae6470d 100644 (file)
@@ -105,10 +105,6 @@ static int omit_header;
 /* String containing name the program is called with.  */
 const char *program_name;
 
-/* String length from with on warning are given for possible problem
-   while exceeding tools limits.  */
-static size_t warn_id_len;
-
 /* Long options.  */
 static const struct option long_options[] =
 {
@@ -220,7 +216,6 @@ main (argc, argv)
   /* Set program name for messages.  */
   program_name = argv[0];
   error_print_progname = error_print;
-  warn_id_len = WARN_ID_LEN;
 
 #ifdef HAVE_SETLOCALE
   /* Set locale via LC_ALL.  */
@@ -295,12 +290,7 @@ main (argc, argv)
          xgettext_lex_keyword (optarg);
        break;
       case 'l':
-       {
-         char *endp;
-         size_t tmp_val = strtoul (optarg, &endp, 0);
-         if (endp[0] == '\0')
-           warn_id_len = tmp_val;
-       }
+       /* Accepted for backward compatibility with 0.10.35.  */
        break;
       case 'L':
        scanner = language_to_scanner (optarg);
@@ -553,13 +543,11 @@ Mandatory arguments to long options are mandatory for short options too.\n\
   -j, --join-existing            join messages with existing file\n\
   -k, --keyword[=WORD]           additonal keyword to be looked for (without\n\
                                  WORD means not to use default keywords)\n\
-  -l, --string-limit=NUMBER      set string length limit to NUMBER instead %u\n\
   -L, --language=NAME            recognise the specified language (C, C++, PO),\n\
                                  otherwise is guessed from file extension\n\
   -m, --msgstr-prefix[=STRING]   use STRING or \"\" as prefix for msgstr entries\n\
   -M, --msgstr-suffix[=STRING]   use STRING or \"\" as suffix for msgstr entries\n\
-      --no-location              do not write '#: filename:line' lines\n"),
-             WARN_ID_LEN);
+      --no-location              do not write '#: filename:line' lines\n"));
       /* xgettext: no-wrap */
       fputs (_("\
   -n, --add-location             generate '#: filename:line' lines (default)\n\