texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/XS/parsetexi/api.c (store_additional


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/api.c (store_additional_info), tp/Texinfo/XS/parsetexi/extra.c (add_extra_contents_oot), tp/Texinfo/XS/parsetexi/tree.c (destroy_associated_info), tp/Texinfo/XS/parsetexi/tree_types.h (enum extra_type): remove extra_contents_oot extra type, remove add_extra_contents_oot function.
Date: Tue, 07 Mar 2023 11:49:34 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new ceba790fa5 * tp/Texinfo/XS/parsetexi/api.c (store_additional_info), 
tp/Texinfo/XS/parsetexi/extra.c (add_extra_contents_oot), 
tp/Texinfo/XS/parsetexi/tree.c (destroy_associated_info), 
tp/Texinfo/XS/parsetexi/tree_types.h (enum extra_type): remove 
extra_contents_oot extra type, remove add_extra_contents_oot function.
ceba790fa5 is described below

commit ceba790fa56317b301eebc986527186c85626194
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Mar 7 17:49:24 2023 +0100

    * tp/Texinfo/XS/parsetexi/api.c (store_additional_info),
    tp/Texinfo/XS/parsetexi/extra.c (add_extra_contents_oot),
    tp/Texinfo/XS/parsetexi/tree.c (destroy_associated_info),
    tp/Texinfo/XS/parsetexi/tree_types.h (enum extra_type): remove
    extra_contents_oot extra type, remove add_extra_contents_oot
    function.
---
 ChangeLog                            |  9 +++++++++
 tp/Texinfo/XS/parsetexi/api.c        |  1 -
 tp/Texinfo/XS/parsetexi/extra.c      |  7 -------
 tp/Texinfo/XS/parsetexi/parser.h     |  1 -
 tp/Texinfo/XS/parsetexi/tree.c       | 18 ------------------
 tp/Texinfo/XS/parsetexi/tree_types.h |  1 -
 6 files changed, 9 insertions(+), 28 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cb4d7621f0..5186f8bdf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-03-07  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/parsetexi/api.c (store_additional_info),
+       tp/Texinfo/XS/parsetexi/extra.c (add_extra_contents_oot),
+       tp/Texinfo/XS/parsetexi/tree.c (destroy_associated_info),
+       tp/Texinfo/XS/parsetexi/tree_types.h (enum extra_type): remove
+       extra_contents_oot extra type, remove add_extra_contents_oot
+       function.
+
 2023-03-07  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Common.pm (_copy_tree, _substitute_references): remove
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index 6067157676..83c9d83443 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -337,7 +337,6 @@ store_additional_info (ELEMENT *e, ASSOCIATED_INFO* a, char 
*key)
               STORE(newRV_inc ((SV *)f->hv));
               break;
             case extra_contents:
-            case extra_contents_oot:
               {
               if (f)
                 STORE(build_perl_array (&f->contents));
diff --git a/tp/Texinfo/XS/parsetexi/extra.c b/tp/Texinfo/XS/parsetexi/extra.c
index df785c9ec6..5afac91d36 100644
--- a/tp/Texinfo/XS/parsetexi/extra.c
+++ b/tp/Texinfo/XS/parsetexi/extra.c
@@ -77,13 +77,6 @@ add_extra_contents (ELEMENT *e, char *key, ELEMENT *value)
   add_associated_info_key (e->extra_info, key, value, extra_contents);
 }
 
-/* Like add_extra_contents but all of the contents are out-of-tree. */
-void
-add_extra_contents_oot (ELEMENT *e, char *key, ELEMENT *value)
-{
-  add_associated_info_key (e->extra_info, key, value, extra_contents_oot);
-}
-
 /* Add an extra key that is a reference to the text field of another
    element. */
 void
diff --git a/tp/Texinfo/XS/parsetexi/parser.h b/tp/Texinfo/XS/parsetexi/parser.h
index f23d3f2856..f29e11d3ab 100644
--- a/tp/Texinfo/XS/parsetexi/parser.h
+++ b/tp/Texinfo/XS/parsetexi/parser.h
@@ -225,7 +225,6 @@ void gather_previous_item (ELEMENT *current, enum 
command_id next_command);
 void add_extra_element (ELEMENT *e, char *key, ELEMENT *value);
 void add_extra_element_oot (ELEMENT *e, char *key, ELEMENT *value);
 void add_extra_contents (ELEMENT *e, char *key, ELEMENT *value);
-void add_extra_contents_oot (ELEMENT *e, char *key, ELEMENT *value);
 void add_extra_text (ELEMENT *e, char *key, ELEMENT *value);
 void add_extra_misc_args (ELEMENT *e, char *key, ELEMENT *value);
 void add_extra_string (ELEMENT *e, char *key, char *value);
diff --git a/tp/Texinfo/XS/parsetexi/tree.c b/tp/Texinfo/XS/parsetexi/tree.c
index 9ef8b43de1..e1e3341951 100644
--- a/tp/Texinfo/XS/parsetexi/tree.c
+++ b/tp/Texinfo/XS/parsetexi/tree.c
@@ -84,24 +84,6 @@ destroy_associated_info (ASSOCIATED_INFO *a)
           if (a->info[i].value)
             destroy_element ((ELEMENT *) a->info[i].value);
           break;
-        case extra_contents_oot:
-          {
-            /* Only used for 'prototypes' */
-            /* Free each element in the array, but not any children
-               of each element. */
-            int j;
-            ELEMENT *array = a->info[i].value;
-            for (j = 0 ; j < array->contents.number; j++)
-              {
-                if (array->contents.list[j])
-                  {
-                    free (array->contents.list[j]->text.text);
-                    free (array->contents.list[j]);
-                  }
-              }
-            destroy_element (array);
-            break;
-          }
         case extra_misc_args:
           destroy_element_and_children (a->info[i].value);
           break;
diff --git a/tp/Texinfo/XS/parsetexi/tree_types.h 
b/tp/Texinfo/XS/parsetexi/tree_types.h
index 726e3e8a36..733bba4d1f 100644
--- a/tp/Texinfo/XS/parsetexi/tree_types.h
+++ b/tp/Texinfo/XS/parsetexi/tree_types.h
@@ -26,7 +26,6 @@ enum extra_type {
     extra_element,
     extra_element_oot,
     extra_contents,
-    extra_contents_oot,
     extra_text,
     extra_misc_args,
     extra_string,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]