[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[8396] parsetexi update
From: |
gavinsmith0123 |
Subject: |
[8396] parsetexi update |
Date: |
Wed, 24 Oct 2018 13:32:00 -0400 (EDT) |
Revision: 8396
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8396
Author: gavin
Date: 2018-10-24 13:32:00 -0400 (Wed, 24 Oct 2018)
Log Message:
-----------
parsetexi update
Modified Paths:
--------------
trunk/tp/Texinfo/XS/parsetexi/end_line.c
trunk/tp/Texinfo/XS/parsetexi/parser.c
Modified: trunk/tp/Texinfo/XS/parsetexi/end_line.c
===================================================================
--- trunk/tp/Texinfo/XS/parsetexi/end_line.c 2018-10-24 17:19:33 UTC (rev
8395)
+++ trunk/tp/Texinfo/XS/parsetexi/end_line.c 2018-10-24 17:32:00 UTC (rev
8396)
@@ -1388,13 +1388,13 @@
{
conditional_stack_fail:
command_error (current, "unmatched
address@hidden'");
- end_command = 0;
+ free (end_command); end_command = 0;
}
}
if (end_command)
{
add_extra_string (current, "command_argument",
- strdup (end_command));
+ end_command);
}
if (end_command
&& (superfluous_arg
Modified: trunk/tp/Texinfo/XS/parsetexi/parser.c
===================================================================
--- trunk/tp/Texinfo/XS/parsetexi/parser.c 2018-10-24 17:19:33 UTC (rev
8395)
+++ trunk/tp/Texinfo/XS/parsetexi/parser.c 2018-10-24 17:32:00 UTC (rev
8396)
@@ -1106,7 +1106,7 @@
}
}
- /* 3755 Else check if line is "@end ..." for current command. */
+ /* Else check if line is "@end ..." for current command. */
p = line;
if (is_end_current_command (current, &line, &end_cmd))
{
@@ -1122,6 +1122,7 @@
int n = strspn (line, whitespace_chars);
e = new_element (ET_raw);
text_append_n (&e->text, line, n);
+ add_to_element_contents (current, e);
line += n;
line_warn ("@end %s should only appear at the "
"beginning of a line", command_name(end_cmd));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [8396] parsetexi update,
gavinsmith0123 <=