]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Rename some files.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Aug 2024 02:40:40 +0000 (04:40 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Aug 2024 02:53:41 +0000 (04:53 +0200)
* gettext-tools/src/read-po-internal.h: Renamed from
gettext-tools/src/po-gram.h.
* gettext-tools/src/read-po-lex.h: Renamed from gettext-tools/src/po-lex.h.
* gettext-tools/src/read-po-lex.c: Renamed from gettext-tools/src/po-lex.c.
* gettext-tools/src/read-po-gram.y: Renamed from
gettext-tools/src/po-gram-gen.y.
* gettext-tools/src/*.h: Update.
* gettext-tools/src/*.c: Update.
* gettext-tools/src/FILES: Update.
* gettext-tools/src/Makefile.am: Update.
* gettext-tools/libgettextpo/Makefile.am: Update.

19 files changed:
Admin/coverage.txt
Admin/plans
gettext-tools/libgettextpo/Makefile.am
gettext-tools/libgettextpo/gettext-po.c
gettext-tools/po/POTFILES.in
gettext-tools/src/FILES
gettext-tools/src/Makefile.am
gettext-tools/src/msgcmp.c
gettext-tools/src/msgfmt.c
gettext-tools/src/msgmerge.c
gettext-tools/src/read-catalog-abstract.c
gettext-tools/src/read-catalog-abstract.h
gettext-tools/src/read-catalog.c
gettext-tools/src/read-po-gram.y [moved from gettext-tools/src/po-gram-gen.y with 99% similarity]
gettext-tools/src/read-po-internal.h [moved from gettext-tools/src/po-gram.h with 96% similarity]
gettext-tools/src/read-po-lex.c [moved from gettext-tools/src/po-lex.c with 99% similarity]
gettext-tools/src/read-po-lex.h [moved from gettext-tools/src/po-lex.h with 96% similarity]
gettext-tools/src/read-po.c
gettext-tools/src/xgettext.c

index db2b8edd47b2f39702a2ade45421bbf3bdc44da3..32956c2f106e4dbc1092b5451360b84800d10c94 100644 (file)
@@ -16,7 +16,7 @@ https://linux.die.net/man/1/lcov
    $ ./configure CC="gcc --coverage" CPPFLAGS=-Wall
    Why in the source directory?
    Because in a VPATH build, there are more files that create trouble in
-   steps 4 and 5 (po-gram-gen.[yc], cldr-plurals.[yc], and more).
+   steps 4 and 5 (read-po-gram.[yc], cldr-plurals.[yc], and more).
 
 2. Compile:
    $ make
index f1e7c82c16ef05a2b1e29e0f7cf89d36fa69a43c..dc6df56c379ecef81d2511892a064f11e8cd2269 100644 (file)
@@ -44,7 +44,7 @@ Things we plan to do. Comments welcome.
     - where to look for i18n files,
     - which file types are to be considered by i18n,
     - which files are explicitly not i18n (e.g. generated files like
-      src/po-gram-gen.c)
+      src/read-po-gram.c)
 
 - Generating sr@latin PO file automatically from sr.po.
 
index c9248361b2fdb0314fd0823d70a3932504caa9ea..41f55b1b4ac6cdca5c066ac64fcd46bc33708920 100644 (file)
@@ -62,12 +62,12 @@ libgettextpo_la_AUXSOURCES = \
   ../src/write-catalog.c \
   ../src/write-po.c \
   ../src/po-charset.c \
-  ../src/po-lex.c \
-  ../src/po-gram-gen.c \
   ../src/read-catalog-special.c \
   ../src/read-catalog-abstract.c \
   ../src/read-catalog.c \
   ../src/read-po.c \
+  ../src/read-po-lex.c \
+  ../src/read-po-gram.c \
   ../src/plural-table.c \
   ../src/format-c.c \
   ../src/format-c++-brace.c \
index 397088006d99861aaabcce8b15849d03e3be5be3..2b58f6509860ae5c4dc7e02f3bab4a9e45426afe 100644 (file)
@@ -48,7 +48,7 @@ static void (*orig_error_at_line) (int status, int errnum,
 #include "xalloc.h"
 #include "read-catalog.h"
 #include "read-po.h"
-#include "po-lex.h"
+#include "read-po-lex.h"
 #include "write-catalog.h"
 #include "write-po.h"
 #include "xerror.h"
index 3cf95463c2d0f0299212fd6913dcf253e478647a..92a037c52bebd2e0c44931fb0dd58f1f529d3d31 100644 (file)
@@ -1,5 +1,5 @@
 # List of files which contain translatable strings.
-# Copyright (C) 1995-2023 Free Software Foundation, Inc.
+# Copyright (C) 1995-2024 Free Software Foundation, Inc.
 # This file is free software, distributed under GNU GPL v3+.
 
 # For updating this file, look at the result of:
@@ -90,14 +90,14 @@ src/msgunfmt.c
 src/msguniq.c
 src/open-catalog.c
 src/po-charset.c
-src/po-gram-gen.y
-src/po-lex.c
 src/po-xerror.c
 src/read-catalog.c
 src/read-csharp.c
 src/read-desktop.c
 src/read-java.c
 src/read-mo.c
+src/read-po-gram.y
+src/read-po-lex.c
 src/read-properties.c
 src/read-resources.c
 src/read-stringtable.c
index 1f69ba9d08f023f64e3414a1dfc3ef365de19861..fb5d38f280997e1d65693a8278aaa8d7254c0b37 100644 (file)
@@ -75,17 +75,15 @@ po-xerror.c
 | po-charset.c
 |               Charset handling while reading PO files.
 |
-| po-lex.h
-| po-lex.c
-|               Lexical analysis of PO files.
-|
 | read-catalog-special.h
 | read-catalog-special.c
 |               Parsing of special comments (#, comments).
 |
 | read-catalog-abstract.h
-| po-gram.h
-| po-gram-gen.y
+| read-po-internal.h
+| read-po-lex.h
+| read-po-lex.c
+| read-po-gram.y
 | read-po.h
 | read-po.c
 | read-properties.h
@@ -97,9 +95,12 @@ po-xerror.c
 |              .strings files.
 |         read-catalog-abstract.h
 |                       General parser structure.
-|         po-gram.h
-|         po-gram-gen.y
-|                       Parsing of PO files, based on po-lex.{h,c}.
+|         read-po-internal.h
+|         read-po-lex.h
+|         read-po-lex.c
+|                       Lexical analysis of PO files.
+|         read-po-gram.y
+|                       Parsing of PO files, based on read-po-lex.{h,c}.
 |         read-po.h
 |         read-po.c
 |                       Parsing of PO files.
index a2debde31e904eea11197eb23e93801f9b43fde5..5c31e489cb25794cac618fb4ebc0c74a73bb9a2d 100644 (file)
@@ -42,13 +42,13 @@ noinst_LTLIBRARIES = libgettextsrc.la
 endif
 
 noinst_HEADERS = \
-  pos.h message.h po-error.h po-xerror.h po-gram.h po-charset.h \
-  po-lex.h open-catalog.h read-catalog-special.h \
+  pos.h message.h po-error.h po-xerror.h read-po-internal.h po-charset.h \
+  read-po-lex.h open-catalog.h read-catalog-special.h \
   read-catalog-abstract.h read-catalog.h read-catalog-file.h \
   read-po.h read-properties.h read-stringtable.h \
   str-list.h \
   write-catalog.h write-po.h write-properties.h write-stringtable.h \
-  dir-list.h file-list.h po-gram-gen.h cldr-plural.h \
+  dir-list.h file-list.h read-po-gram.h cldr-plural.h \
   cldr-plural-exp.h locating-rule.h its.h search-path.h \
   msgl-charset.h msgl-equal.h msgl-iconv.h msgl-ascii.h msgl-ofn.h msgl-cat.h \
   msgl-header.h msgl-english.h msgl-check.h msgl-fsearch.h msgfmt.h msgunfmt.h \
@@ -138,12 +138,12 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@
 # All programs must read PO files. (msgunfmt also, for read-java.c,
 # read-csharp.c and read-resources.c.)
 # message.c -> str-list.c.
-# (read-catalog-abstract.c <--> po-gram-gen.y <--> po-lex.c) -> str-list.c.
-# (read-catalog-abstract.c <--> po-gram-gen.y <--> po-lex.c) -> po-charset.c.
-# (read-catalog-abstract.c <--> po-gram-gen.y <--> po-lex.c) -> message.c -> str-list.c.
+# (read-catalog-abstract.c <--> read-po-gram.y <--> read-po-lex.c) -> str-list.c.
+# (read-catalog-abstract.c <--> read-po-gram.y <--> read-po-lex.c) -> po-charset.c.
+# (read-catalog-abstract.c <--> read-po-gram.y <--> read-po-lex.c) -> message.c -> str-list.c.
 # read-catalog-file.c -> open-catalog.c -> dir-list.c -> str-list.c.
 COMMON_SOURCE = message.c pos.c po-error.c po-xerror.c \
-read-catalog-abstract.c po-lex.c po-gram-gen.y po-charset.c \
+read-catalog-abstract.c read-po-lex.c read-po-gram.y po-charset.c \
 read-po.c read-properties.c read-stringtable.c open-catalog.c \
 dir-list.c str-list.c
 
@@ -340,8 +340,8 @@ endif
 # taken from libunistring, when the configure option --with-libunistring-prefix
 # was given.
 # Need @LTLIBINTL@ because many source files use gettext().
-# Need @LTLIBICONV@ because po-charset.c, po-lex.c, msgl-iconv.c, write-po.c
-# use iconv().
+# Need @LTLIBICONV@ because po-charset.c, read-po-lex.c, msgl-iconv.c,
+# write-po.c use iconv().
 libgettextsrc_la_LDFLAGS = \
   -release @VERSION@ \
   ../gnulib-lib/libgettextlib.la $(LTLIBUNISTRING) $(LT_LIBTEXTSTYLE) @LTLIBINTL@ @LTLIBICONV@ -lc -no-undefined
@@ -577,24 +577,24 @@ endif
 # postprocess the generated files and we don't want that unpostprocessed files
 # remain in place if the user interrupts the build through Ctrl-C.
 
-po-gram-gen.c po-gram-gen.h: po-gram-gen.y
-       $(AM_V_YACC)$(BISON) -d $(YFLAGS) $(AM_YFLAGS) $(srcdir)/po-gram-gen.y \
+read-po-gram.c read-po-gram.h: read-po-gram.y
+       $(AM_V_YACC)$(BISON) -d $(YFLAGS) $(AM_YFLAGS) $(srcdir)/read-po-gram.y \
        && test ':' = '$(BISON)' || { \
-         sed -e 's|".*/po-gram-gen\.y"|"po-gram-gen.y"|' \
-             -e 's|"po-gram-gen\.tab\.c"|"po-gram-gen.c"|' \
-             -e 's|"po-gram-gen\.tab\.h"|"po-gram-gen.h"|' \
-             < po-gram-gen.tab.c > po-gram-gen.c-tmp \
-         && sed -e 's|".*/po-gram-gen\.y"|"po-gram-gen.y"|' \
-                -e 's|"po-gram-gen\.tab\.h"|"po-gram-gen.h"|' \
-                < po-gram-gen.tab.h > po-gram-gen.h-tmp \
-         && rm -f po-gram-gen.tab.c po-gram-gen.tab.h \
-         && mv po-gram-gen.c-tmp $(srcdir)/po-gram-gen.c \
-         && mv po-gram-gen.h-tmp $(srcdir)/po-gram-gen.h; \
+         sed -e 's|".*/read-po-gram\.y"|"read-po-gram.y"|' \
+             -e 's|"read-po-gram\.tab\.c"|"read-po-gram.c"|' \
+             -e 's|"read-po-gram\.tab\.h"|"read-po-gram.h"|' \
+             < read-po-gram.tab.c > read-po-gram.c-tmp \
+         && sed -e 's|".*/read-po-gram\.y"|"read-po-gram.y"|' \
+                -e 's|"read-po-gram\.tab\.h"|"read-po-gram.h"|' \
+                < read-po-gram.tab.h > read-po-gram.h-tmp \
+         && rm -f read-po-gram.tab.c read-po-gram.tab.h \
+         && mv read-po-gram.c-tmp $(srcdir)/read-po-gram.c \
+         && mv read-po-gram.h-tmp $(srcdir)/read-po-gram.h; \
        }
-BUILT_SOURCES += po-gram-gen.c po-gram-gen.h
-MOSTLYCLEANFILES += po-gram-gen.tab.c po-gram-gen.tab.h po-gram-gen.c-tmp po-gram-gen.h-tmp
-MAINTAINERCLEANFILES += po-gram-gen.c po-gram-gen.h
-EXTRA_DIST += po-gram-gen.c po-gram-gen.h
+BUILT_SOURCES += read-po-gram.c read-po-gram.h
+MOSTLYCLEANFILES += read-po-gram.tab.c read-po-gram.tab.h read-po-gram.c-tmp read-po-gram.h-tmp
+MAINTAINERCLEANFILES += read-po-gram.c read-po-gram.h
+EXTRA_DIST += read-po-gram.c read-po-gram.h
 
 
 cldr-plural.c cldr-plural.h: cldr-plural.y
@@ -764,7 +764,7 @@ endif
 
 
 # This Makefile contains rules which don't work with parallel make,
-# namely those which build textstyle.h, po-gram-gen.c, cldr-plural.c.
+# namely those which build textstyle.h, read-po-gram.c, cldr-plural.c.
 # See <https://lists.gnu.org/archive/html/bug-make/2019-05/msg00011.html>.
 # So, turn off parallel execution in this Makefile.
 .NOTPARALLEL:
index ac56608943f305a27735dba086b679864a2aab7c..731178fefb0e908b32a4ae1950d6cd2a809bee36 100644 (file)
@@ -37,7 +37,7 @@
 #include "message.h"
 #include "read-catalog-file.h"
 #include "read-po.h"
-#include "po-lex.h"
+#include "read-po-lex.h"
 #include "read-properties.h"
 #include "read-stringtable.h"
 #include "xmalloca.h"
index a6ab145fc16b92019f82f1654dd5ca16797ce48e..7e6cbb34500736c5f3843e2e3d989b441c3c9e23 100644 (file)
@@ -56,7 +56,7 @@
 #include "open-catalog.h"
 #include "read-catalog-file.h"
 #include "read-po.h"
-#include "po-lex.h"
+#include "read-po-lex.h"
 #include "read-properties.h"
 #include "read-stringtable.h"
 #include "read-desktop.h"
@@ -1239,7 +1239,7 @@ msgfmt_set_domain (default_catalog_reader_ty *dcatr,
         po_gram_error_at_line (name_pos,
                                _("'domain %s' directive ignored"), name);
 
-      /* NAME was allocated in po-gram-gen.y but is not used anywhere.  */
+      /* NAME was allocated in read-po-gram.y but is not used anywhere.  */
       free (name);
     }
 }
index 6349a7a3282e2145a29af00ffa107119fec5ee8e..fb09b265f6660b92cba431a69ce2cc5a66278785 100644 (file)
@@ -44,7 +44,7 @@
 #include "message.h"
 #include "read-catalog-file.h"
 #include "read-po.h"
-#include "po-lex.h"
+#include "read-po-lex.h"
 #include "read-properties.h"
 #include "read-stringtable.h"
 #include "write-catalog.h"
index 31c31afa4ce660333614ca31a64795de8bf48d14..05706d39e92228837756ac248881b389101b36f0 100644 (file)
@@ -173,7 +173,7 @@ catalog_reader_parse (abstract_catalog_reader_ty *catr, FILE *fp,
 
 
 /* ========================================================================= */
-/* Callbacks used by po-gram-gen.y, read-properties.c, read-stringtable.c,
+/* Callbacks used by read-po-gram.y, read-properties.c, read-stringtable.c,
    indirectly from catalog_reader_parse.  */
 
 
index 197bbe66624214f8e5b2aea55738f0dc2ffad970..65e0d895e213a8af0e71a23b97f2b10165ebd3bb 100644 (file)
@@ -184,7 +184,7 @@ extern void
        catalog_reader_free (abstract_catalog_reader_ty *catr);
 
 
-/* Callbacks used by po-gram-gen.y, read-properties.c, read-stringtable.c,
+/* Callbacks used by read-po-gram.y, read-properties.c, read-stringtable.c,
    indirectly from catalog_reader_parse.  */
 /* This callback is called whenever a domain directive has been seen.
    It invokes the 'directive_domain' method.  */
index 263f8354499c3034e15ecba887cfb4512bf24e18..7b373aae7584d9031962cfad1b125f2693a513ca 100644 (file)
@@ -27,7 +27,7 @@
 #include <string.h>
 
 #include "po-charset.h"
-#include "po-lex.h"
+#include "read-po-lex.h"
 #include "po-xerror.h"
 #include "xalloc.h"
 #include "read-catalog-special.h"
@@ -327,7 +327,7 @@ default_set_domain (default_catalog_reader_ty *dcatr,
       po_gram_error_at_line (name_pos,
                              _("this file may not contain domain directives"));
 
-      /* NAME was allocated in po-gram-gen.y but is not used anywhere.  */
+      /* NAME was allocated in read-po-gram.y but is not used anywhere.  */
       free (name);
     }
 }
@@ -375,7 +375,7 @@ default_add_message (default_catalog_reader_ty *dcatr,
                       _("this is the location of the first definition"));
         }
       /* We don't need the just constructed entries' parameter string
-         (allocated in po-gram-gen.y).  */
+         (allocated in read-po-gram.y).  */
       free (msgid);
       if (msgid_plural != NULL)
         free (msgid_plural);
similarity index 99%
rename from gettext-tools/src/po-gram-gen.y
rename to gettext-tools/src/read-po-gram.y
index baafc16505964549e2101d379fb795a562caaba6..33ca2517491d087ebe0c7502cc4bf7b5f9b73aca 100644 (file)
@@ -22,7 +22,7 @@
 #endif
 
 /* Specification.  */
-#include "po-gram.h"
+#include "read-po-internal.h"
 
 #include <stdbool.h>
 #include <stdio.h>
@@ -31,7 +31,7 @@
 
 #include <error.h>
 #include "str-list.h"
-#include "po-lex.h"
+#include "read-po-lex.h"
 #include "po-charset.h"
 #include "xalloc.h"
 #include "gettext.h"
similarity index 96%
rename from gettext-tools/src/po-gram.h
rename to gettext-tools/src/read-po-internal.h
index 4a2932819a1c388c0b6e158702e61941ff4dfd9a..a04b9f33ef9a5c42030b66722c76b3d541419b3f 100644 (file)
@@ -88,7 +88,7 @@ struct po_parser_state
 
   /* ----- Output variables -----  */
 
-  /* ----- Local variables of po-lex.c -----  */
+  /* ----- Local variables of read-po-lex.c -----  */
 
   /* The PO file's encoding, as specified in the header entry.  */
   const char *po_lex_charset;
@@ -117,7 +117,7 @@ struct po_parser_state
   bool po_lex_obsolete;
   bool po_lex_previous;
 
-  /* ----- Local variables of po-gram-gen.y -----  */
+  /* ----- Local variables of read-po-gram.y -----  */
   long plural_counter;
 };
 
similarity index 99%
rename from gettext-tools/src/po-lex.c
rename to gettext-tools/src/read-po-lex.c
index f46f3ac699cd0942a5fa7231317f4f33b28f9a72..e074d7446949ffb9bece8b1297f833107faf1b19 100644 (file)
@@ -23,7 +23,7 @@
 #endif
 
 /* Specification.  */
-#include "po-lex.h"
+#include "read-po-lex.h"
 
 #include <errno.h>
 #include <limits.h>
@@ -56,8 +56,8 @@
 #include "pos.h"
 #include "message.h"
 #include "str-list.h"
-#include "po-gram.h"
-#include "po-gram-gen.h"
+#include "read-po-internal.h"
+#include "read-po-gram.h"
 
 #define _(str) gettext(str)
 
@@ -1071,7 +1071,7 @@ control_sequence (struct po_parser_state *ps)
 
 
 /* Return the next token in the PO file.  The return codes are defined
-   in "po-gram-gen2.h".  Associated data is put in 'po_gram_lval'.  */
+   in "read-po-gram.h".  Associated data is put in 'po_gram_lval'.  */
 int
 po_gram_lex (union PO_GRAM_STYPE *lval, struct po_parser_state *ps)
 {
similarity index 96%
rename from gettext-tools/src/po-lex.h
rename to gettext-tools/src/read-po-lex.h
index 62f48171430c77bddcc3dd9e2067f96522696c25..396312543e30676698fe5c5878861b55048c43f2 100644 (file)
@@ -52,7 +52,7 @@ extern "C" {
 
 struct po_parser_state;
 
-/* Global variables from po-lex.c.  */
+/* Global variables from read-po-lex.c.  */
 
 /* Number of parse errors within a PO file that cause the program to
    terminate.  Cf. error_message_count, declared in <error.h>.  */
@@ -68,7 +68,7 @@ extern void lex_start (struct po_parser_state *ps,
 extern void lex_end (struct po_parser_state *ps);
 
 /* Return the next token in the PO file.  The return codes are defined
-   in "po-gram-gen.h".  Associated data is put in '*lval'.  */
+   in "read-po-gram.h".  Associated data is put in '*lval'.  */
 union PO_GRAM_STYPE;
 extern int po_gram_lex (union PO_GRAM_STYPE *lval, struct po_parser_state *ps);
 
index 7b28953e07b2f7c5b065fd972670f9d8178b9179..3b4cd1b5b6c81e86d87cef970e35804c5e7fced0 100644 (file)
@@ -21,8 +21,8 @@
 /* Specification.  */
 #include "read-po.h"
 
-#include "po-lex.h"
-#include "po-gram.h"
+#include "read-po-lex.h"
+#include "read-po-internal.h"
 
 
 /* Read a .po / .pot file from a stream, and dispatch to the various
index 0c28dcd6d888a0228d61e840d2f2df742557583f..fdcb85cc4fba539430bc7285d011abee9efeaa48 100644 (file)
@@ -69,7 +69,7 @@
 #include "open-catalog.h"
 #include "read-catalog-abstract.h"
 #include "read-po.h"
-#include "po-lex.h"
+#include "read-po-lex.h"
 #include "message.h"
 #include "pos.h"
 #include "po-charset.h"