summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-06-19 20:35:26 +0000
committerRichard M. Stallman <rms@gnu.org>1993-06-19 20:35:26 +0000
commit9314413181cc3f2bf77b65104f2128525dd2f0f8 (patch)
tree18805d12f77dd1309ae6af61ccf53907a0ecef48 /lib-src
parent62bd13a774460cae6c7cfedd96057c3c67b08c56 (diff)
downloademacs-9314413181cc3f2bf77b65104f2128525dd2f0f8.tar.gz
(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)
* 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)
{