texinfo-commits
[Top][All Lists]
Advanced

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

[7093] parsetexi update


From: Gavin D. Smith
Subject: [7093] parsetexi update
Date: Sun, 03 Apr 2016 16:14:43 +0000

Revision: 7093
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7093
Author:   gavin
Date:     2016-04-03 16:14:43 +0000 (Sun, 03 Apr 2016)
Log Message:
-----------
parsetexi update

Modified Paths:
--------------
    trunk/tp/parsetexi/end_line.c

Modified: trunk/tp/parsetexi/end_line.c
===================================================================
--- trunk/tp/parsetexi/end_line.c       2016-04-03 16:06:39 UTC (rev 7092)
+++ trunk/tp/parsetexi/end_line.c       2016-04-03 16:14:43 UTC (rev 7093)
@@ -852,9 +852,6 @@
       /* Parse prototype row for a @multitable.  Handling
          of @columnfractions is done elsewhere. */
 
-      /* TODO: Need to set both 'prototypes' and 'prototypes_line' 
-         values.  */
-
       int i;
       ELEMENT *prototypes = new_element (ET_NONE);
       prototypes->parent_type = route_not_in_tree;
@@ -871,7 +868,9 @@
               new = malloc (sizeof (ELEMENT));
               memcpy (new, e, sizeof (ELEMENT));
               new->type = ET_bracketed_multitable_prototype;
-              add_to_element_contents (prototypes, new);
+              new->parent = 0;
+              new->parent_type = route_not_in_tree;
+              add_to_contents_as_array (prototypes, new);
             }
           else if (e->text.end > 0) // 2893
             {
@@ -883,7 +882,9 @@
                   new = malloc (sizeof (ELEMENT));
                   memcpy (new, e, sizeof (ELEMENT));
                   new->type = ET_row_prototype;
-                  add_to_element_contents (prototypes, new);
+                  new->parent = 0;
+                  new->parent_type = route_not_in_tree;
+                  add_to_contents_as_array (prototypes, new);
                 }
             }
           else // 2913
@@ -902,7 +903,9 @@
                   ELEMENT *new;
                   new = malloc (sizeof (ELEMENT));
                   memcpy (new, e, sizeof (ELEMENT));
-                  add_to_element_contents (prototypes, new);
+                  new->parent = 0;
+                  new->parent_type = route_not_in_tree;
+                  add_to_contents_as_array (prototypes, new);
                 }
             }
         }




reply via email to

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