texinfo-commits
[Top][All Lists]
Advanced

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

[7124] parsetexi update


From: Gavin D. Smith
Subject: [7124] parsetexi update
Date: Fri, 15 Apr 2016 05:43:46 +0000

Revision: 7124
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7124
Author:   gavin
Date:     2016-04-15 05:43:46 +0000 (Fri, 15 Apr 2016)
Log Message:
-----------
parsetexi update

Modified Paths:
--------------
    trunk/tp/parsetexi/api.c
    trunk/tp/parsetexi/def.c
    trunk/tp/parsetexi/end_line.c
    trunk/tp/parsetexi/labels.c

Modified: trunk/tp/parsetexi/api.c
===================================================================
--- trunk/tp/parsetexi/api.c    2016-04-15 05:39:43 UTC (rev 7123)
+++ trunk/tp/parsetexi/api.c    2016-04-15 05:43:46 UTC (rev 7124)
@@ -184,7 +184,7 @@
       e->hv = newHV ();
     }
 
-  if (e->parent && e->parent_type != route_not_in_tree)
+  if (e->parent) // && e->parent_type != route_not_in_tree)
     {
       if (!e->parent->hv)
         e->parent->hv = newHV ();

Modified: trunk/tp/parsetexi/def.c
===================================================================
--- trunk/tp/parsetexi/def.c    2016-04-15 05:39:43 UTC (rev 7123)
+++ trunk/tp/parsetexi/def.c    2016-04-15 05:43:46 UTC (rev 7124)
@@ -125,8 +125,6 @@
 
       // isolate_last_space (bracketed, ET_empty_space_at_end_def_bracketed);
 
-      /* TODO: Why do we need the parent ? */
-      returned->parent = bracketed->parent;
       returned->contents = bracketed->contents;
       returned->parent_type = route_not_in_tree;
 

Modified: trunk/tp/parsetexi/end_line.c
===================================================================
--- trunk/tp/parsetexi/end_line.c       2016-04-15 05:39:43 UTC (rev 7123)
+++ trunk/tp/parsetexi/end_line.c       2016-04-15 05:43:46 UTC (rev 7124)
@@ -1000,8 +1000,8 @@
         }
       floats_list[floats_number].type = type;
       floats_list[floats_number++].element = f;
-      // set 'float_section' directly
-      // on $float.
+      if (current_section)
+        add_extra_element (f, "float_section", current_section);
     }
   current = current->parent; //2965
   //counter_pop (&count_remaining_args);

Modified: trunk/tp/parsetexi/labels.c
===================================================================
--- trunk/tp/parsetexi/labels.c 2016-04-15 05:39:43 UTC (rev 7123)
+++ trunk/tp/parsetexi/labels.c 2016-04-15 05:43:46 UTC (rev 7124)
@@ -35,6 +35,8 @@
 
   // 2494 TODO: check whether previously defined
 
+  if (!normalized)
+    return;
   if (labels_number == labels_space)
     {
       labels_space += 1;




reply via email to

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