[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7385] parsetexi input_reset_input_stack
From: |
gavinsmith0123 |
Subject: |
[7385] parsetexi input_reset_input_stack |
Date: |
Mon, 19 Sep 2016 15:22:15 +0000 (UTC) |
Revision: 7385
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7385
Author: gavin
Date: 2016-09-19 15:22:14 +0000 (Mon, 19 Sep 2016)
Log Message:
-----------
parsetexi input_reset_input_stack
Modified Paths:
--------------
trunk/tp/parsetexi/api.c
trunk/tp/parsetexi/input.c
trunk/tp/parsetexi/input.h
Modified: trunk/tp/parsetexi/api.c
===================================================================
--- trunk/tp/parsetexi/api.c 2016-09-19 15:16:43 UTC (rev 7384)
+++ trunk/tp/parsetexi/api.c 2016-09-19 15:22:14 UTC (rev 7385)
@@ -58,6 +58,7 @@
wipe_global_info ();
reset_internal_xrefs ();
reset_labels ();
+ input_reset_input_stack ();
current_node = current_section = 0;
}
Modified: trunk/tp/parsetexi/input.c
===================================================================
--- trunk/tp/parsetexi/input.c 2016-09-19 15:16:43 UTC (rev 7384)
+++ trunk/tp/parsetexi/input.c 2016-09-19 15:22:14 UTC (rev 7385)
@@ -218,6 +218,13 @@
input_stack[input_number - 1].type = IN_text;
}
+void
+input_reset_input_stack (void)
+{
+ input_number = 0;
+ /* TODO: free the memory */
+}
+
static char **include_dirs;
static size_t include_dirs_number;
Modified: trunk/tp/parsetexi/input.h
===================================================================
--- trunk/tp/parsetexi/input.h 2016-09-19 15:16:43 UTC (rev 7384)
+++ trunk/tp/parsetexi/input.h 2016-09-19 15:22:14 UTC (rev 7385)
@@ -7,6 +7,7 @@
void input_push_text (char *line, char *macro);
void input_push_text_with_line_nos (char *text, int starting);
void input_push_file (char *filename);
+void input_reset_input_stack (void);
extern LINE_NR line_nr;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7385] parsetexi input_reset_input_stack,
gavinsmith0123 <=