Suppression of "6 numbers" limit. New option to choose tree type.
This commit is contained in:
8
stack.c
8
stack.c
@@ -52,7 +52,7 @@ STACK *new_stack(size, name, keep)
|
||||
STACK *stack;
|
||||
int i;
|
||||
|
||||
# ifdef DEBUG_STACK2
|
||||
# ifdef DEBUG_STACK
|
||||
printf("new_stack(size=%d, name=[%s] last=%d total=%d)\n",
|
||||
size, name, laststack, totalstacks);
|
||||
# endif
|
||||
@@ -82,7 +82,7 @@ STACK *new_stack(size, name, keep)
|
||||
strncpy(stack->name, name? name: "No name", sizeof(stack->name));
|
||||
//if (size) {
|
||||
//pelt=malloc(size*sizeof(int));
|
||||
stack->size=MAXINPUT;
|
||||
stack->size=size;
|
||||
//stack->stack=pelt;
|
||||
//if (keep)
|
||||
// keep_stack(stack);
|
||||
@@ -146,7 +146,7 @@ STACK *dup_stack(stack, name)
|
||||
STACK *new;
|
||||
int *dst;
|
||||
int size=stack->size, last=stack->last, i;
|
||||
|
||||
//printf("DUP: totalstacks=%d\n", totalstacks);
|
||||
new=new_stack(size, name, 0);
|
||||
new->last=stack->last;
|
||||
dst=new->stack;
|
||||
@@ -201,6 +201,8 @@ void gen_stacks(stack)
|
||||
int n=1;
|
||||
int exists=1;
|
||||
|
||||
printf("GEN: totalstacks=%d\n", totalstacks);
|
||||
|
||||
# ifdef DEBUG_STACK
|
||||
printf("generating stacks...\n");
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user