diff --git a/plug-ins/script-fu/tinyscheme/scheme-private.h b/plug-ins/script-fu/tinyscheme/scheme-private.h index 08c2e59e2d..89840c2bae 100644 --- a/plug-ins/script-fu/tinyscheme/scheme-private.h +++ b/plug-ins/script-fu/tinyscheme/scheme-private.h @@ -64,8 +64,12 @@ int retcode; int tracing; +#ifndef CELL_SEGSIZE #define CELL_SEGSIZE 25000 /* # of cells in one segment */ +#endif +#ifndef CELL_NSEGMENT #define CELL_NSEGMENT 50 /* # of segments for cells */ +#endif char *alloc_seg[CELL_NSEGMENT]; pointer cell_seg[CELL_NSEGMENT]; int last_cell_seg; @@ -116,7 +120,9 @@ pointer outport; pointer save_inport; pointer loadport; +#ifndef MAXFIL #define MAXFIL 64 +#endif port load_stack[MAXFIL]; /* Stack of open files for port -1 (LOADing) */ int nesting_stack[MAXFIL]; int file_i; @@ -125,9 +131,13 @@ int nesting; char gc_verbose; /* if gc_verbose is not zero, print gc status */ char no_memory; /* Whether mem. alloc. has failed */ +#ifndef LINESIZE #define LINESIZE 1024 +#endif char linebuff[LINESIZE]; +#ifndef STRBUFFSIZE #define STRBUFFSIZE 1024 +#endif char strbuff[STRBUFFSIZE]; FILE *tmpfp;