aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-19 20:35:26 +0000
committerRichard M. Stallman1993-06-19 20:35:26 +0000
commit8f53e1ee6ef0881cde5f78d92839407943957b58 (patch)
tree8f69a8d1ecd28f5493fa9a8cb4cd31d179172342 /lib-src
parentd0068e2530aa770ccba9ee952047e101aadfca73 (diff)
downloademacs-8f53e1ee6ef0881cde5f78d92839407943957b58.tar.gz
emacs-8f53e1ee6ef0881cde5f78d92839407943957b58.zip
(add_node): Move var last_node to file scope.
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 {