changeset 3838:6d8422d99000

(add_node): Move var last_node to file scope.
author Richard M. Stallman <rms@gnu.org>
date Sat, 19 Jun 1993 20:35:26 +0000
parents 85652925d5b8
children 3cc238ae0de5
files lib-src/etags.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Sat Jun 19 20:26:11 1993 +0000
+++ b/lib-src/etags.c	Sat Jun 19 20:35:26 1993 +0000
@@ -1103,13 +1103,16 @@
  *	add_node is the only function allowed to add nodes, so it can
  *	maintain state.
  */
+/* Must avoid static vars within functions since some systems
+   #define static as nothing.  */
+static NODE *last_node = NULL;
+
 void
 add_node (node, cur_node_p)
      NODE *node, **cur_node_p;
 {
   register int dif;
   register NODE *cur_node = *cur_node_p;
-  static NODE *last_node = NULL;/* careful */
 
   if (cur_node == NULL)
     {