]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
its: Simplify.
authorBruno Haible <bruno@clisp.org>
Mon, 30 Sep 2024 16:16:22 +0000 (18:16 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Sep 2024 16:17:00 +0000 (18:17 +0200)
* gettext-tools/src/its.h: Don't include xg-arglist-context.h.
(its_rule_list_extract): Remove flag_table parameter.
* gettext-tools/src/its.c (its_rule_list_extract_text, its_rule_list_extract):
Remove flag_table parameter.
* gettext-tools/src/xgettext.c (extract_from_xml_file): Update.

gettext-tools/src/its.c
gettext-tools/src/its.h
gettext-tools/src/xgettext.c

index f82a47889ddfbd75e0554312baed30cf66674495..32ab432f3ecad0a2acb4bf3ee6ee39aca97014bb 100644 (file)
@@ -1722,7 +1722,6 @@ static void
 its_rule_list_extract_text (its_rule_list_ty *rules,
                             xmlNode *node,
                             const char *logical_filename,
-                            flag_context_list_table_ty *flag_table,
                             message_list_ty *mlp,
                             its_extract_callback_ty callback)
 {
@@ -1857,7 +1856,6 @@ void
 its_rule_list_extract (its_rule_list_ty *rules,
                        FILE *fp, const char *real_filename,
                        const char *logical_filename,
-                       flag_context_list_table_ty *flag_table,
                        msgdomain_list_ty *mdlp,
                        its_extract_callback_ty callback)
 {
@@ -1887,7 +1885,6 @@ its_rule_list_extract (its_rule_list_ty *rules,
   for (i = 0; i < nodes.nitems; i++)
     its_rule_list_extract_text (rules, nodes.items[i],
                                 logical_filename,
-                                flag_table,
                                 mdlp->item[0]->messages,
                                 callback);
 
index 49af5cec5abc8ca89e3b8ec4ff134809e0bb42c3..2349527988f1c862c9428f491b04b297579baa3f 100644 (file)
@@ -1,5 +1,5 @@
 /* Internationalization Tag Set (ITS) handling
-   Copyright (C) 2015, 2018 Free Software Foundation, Inc.
+   Copyright (C) 2015-2024 Free Software Foundation, Inc.
 
    This file was written by Daiki Ueno <ueno@gnu.org>, 2015.
 
@@ -23,7 +23,6 @@
 
 #include "message.h"
 #include "pos.h"
-#include "xg-arglist-context.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -66,7 +65,6 @@ extern bool its_rule_list_add_from_file (its_rule_list_ty *rules,
 extern void its_rule_list_extract (its_rule_list_ty *rules,
                                    FILE *fp, const char *real_filename,
                                    const char *logical_filename,
-                                   flag_context_list_table_ty *flag_table,
                                    msgdomain_list_ty *mdlp,
                                    its_extract_callback_ty callback);
 
index 178a9023dacd50efbc8aec20dec88b81d57cd295..b372890ee5021481354ba8f09471fa4db5edf24d 100644 (file)
@@ -2033,7 +2033,6 @@ extract_from_xml_file (const char *file_name,
 #endif
 
   its_rule_list_extract (rules, fp, real_file_name, logical_file_name,
-                         NULL,
                          mdlp,
                          xgettext_its_extract_callback);