aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index d0ba72be5e6..22b25678823 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1103,13 +1103,16 @@ free_tree (node)
1103 * add_node is the only function allowed to add nodes, so it can 1103 * add_node is the only function allowed to add nodes, so it can
1104 * maintain state. 1104 * maintain state.
1105 */ 1105 */
1106/* Must avoid static vars within functions since some systems
1107 #define static as nothing. */
1108static NODE *last_node = NULL;
1109
1106void 1110void
1107add_node (node, cur_node_p) 1111add_node (node, cur_node_p)
1108 NODE *node, **cur_node_p; 1112 NODE *node, **cur_node_p;
1109{ 1113{
1110 register int dif; 1114 register int dif;
1111 register NODE *cur_node = *cur_node_p; 1115 register NODE *cur_node = *cur_node_p;
1112 static NODE *last_node = NULL;/* careful */
1113 1116
1114 if (cur_node == NULL) 1117 if (cur_node == NULL)
1115 { 1118 {