1 diff -u -r ../gawk-4.1.0/extension/stack.c ./extension/stack.c
2 --- ../gawk-4.1.0/extension/stack.c 2013-05-02 21:51:30.000000000 +0200
3 +++ ./extension/stack.c 2014-02-12 16:54:08.000000000 +0100
8 -static int index = -1;
9 +static int stack_index = -1;
11 /* stack_empty --- return true if stack is empty */
17 + return stack_index < 0;
20 /* stack_top --- return top object on the stack */
22 if (stack_empty() || stack == NULL)
25 - return stack[index];
26 + return stack[stack_index];
29 /* stack_pop --- pop top object and return it */
31 if (stack_empty() || stack == NULL)
34 - return stack[index--];
35 + return stack[stack_index--];
38 /* stack_push --- push an object onto the stack */
43 - } else if (index + 1 >= size) {
44 + } else if (stack_index + 1 >= size) {
47 new_stack = realloc(stack, new_size * sizeof(void *));
52 - stack[++index] = object;
53 + stack[++stack_index] = object;