mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
(add_node): Move var last_node to file scope.
This commit is contained in:
parent
d0068e2530
commit
8f53e1ee6e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user