[gimp] Make various limits configurable (from TinyScheme SVN r109)



commit 3ef60332769eb7c401aae4814f34dd783e468cfa
Author: Kevin Cozens <kevin ve3syb ca>
Date:   Thu Feb 25 12:39:36 2016 -0500

    Make various limits configurable (from TinyScheme SVN r109)

 plug-ins/script-fu/tinyscheme/scheme-private.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/script-fu/tinyscheme/scheme-private.h b/plug-ins/script-fu/tinyscheme/scheme-private.h
index 08c2e59..89840c2 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]