From 189fd0c695d5b806d8b54d4a1b8fd551d47ea7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 28 Jan 1997 17:09:19 -0800 Subject: [PATCH] some merging from config.h Rev: src/global.h:1.5 Rev: src/interpret.c:1.22 Rev: src/language.yacc:1.20 Rev: src/program.c:1.17 --- src/global.h | 14 +++++++++++++- src/interpret.c | 7 ++++++- src/language.yacc | 6 +++++- src/program.c | 8 +++++++- 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/global.h b/src/global.h index f8ad1bff3f..616313ca39 100644 --- a/src/global.h +++ b/src/global.h @@ -33,7 +33,19 @@ struct array; struct svalue; #include "machine.h" -#include "config.h" + +/* + * Max number of local variables in a function. + * Currently there is no support for more than 256 + */ +#define MAX_LOCAL 256 + +/* + * define NO_GC to get rid of garbage collection + */ +#ifndef NO_GC +#define GC2 +#endif /* AIX requires this to be the first thing in the file. */ #ifdef __GNUC__ diff --git a/src/interpret.c b/src/interpret.c index da83adb17e..d1250faac9 100644 --- a/src/interpret.c +++ b/src/interpret.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: interpret.c,v 1.21 1997/01/27 01:15:37 hubbe Exp $"); +RCSID("$Id: interpret.c,v 1.22 1997/01/29 01:02:03 hubbe Exp $"); #include "interpret.h" #include "object.h" #include "program.h" @@ -45,6 +45,11 @@ RCSID("$Id: interpret.c,v 1.21 1997/01/27 01:15:37 hubbe Exp $"); #endif #endif +/* + * Define the default evaluator stack size, used for just about everything. + */ +#define EVALUATOR_STACK_SIZE 100000 + #define TRACE_LEN (100 + t_flag * 10) diff --git a/src/language.yacc b/src/language.yacc index 4ec773649a..06b1972dfc 100644 --- a/src/language.yacc +++ b/src/language.yacc @@ -156,7 +156,7 @@ /* This is the grammar definition of Pike. */ #include "global.h" -RCSID("$Id: language.yacc,v 1.19 1997/01/27 01:18:01 hubbe Exp $"); +RCSID("$Id: language.yacc,v 1.20 1997/01/29 01:05:58 hubbe Exp $"); #ifdef HAVE_MEMORY_H #include <memory.h> #endif @@ -177,6 +177,10 @@ RCSID("$Id: language.yacc,v 1.19 1997/01/27 01:18:01 hubbe Exp $"); #define YYMAXDEPTH 600 +#ifdef DEBUG +#define YYDEBUG 1 +#endif + static void push_locals(); static void pop_locals(); void free_all_local_names(); diff --git a/src/program.c b/src/program.c index 34c306c86a..21da12ce80 100644 --- a/src/program.c +++ b/src/program.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: program.c,v 1.16 1997/01/28 03:11:50 hubbe Exp $"); +RCSID("$Id: program.c,v 1.17 1997/01/29 01:09:19 hubbe Exp $"); #include "program.h" #include "object.h" #include "dynamic_buffer.h" @@ -27,6 +27,12 @@ RCSID("$Id: program.c,v 1.16 1997/01/28 03:11:50 hubbe Exp $"); #include <errno.h> #include <fcntl.h> +/* + * Define the size of the cache that is used for method lookup. + */ +#define FIND_FUNCTION_HASHSIZE 4711 + + #define FILE_STATE #define PROGRAM_STATE -- GitLab