Go to the first, previous, next, last section, table of contents.


Hard Limits

The grg program internally limits the size of a number of buffers. These are listed here with their default maximum sizes. Exceeding the given sizes will produce a fatal error. In some cases writing the GRG file in a slightly different way will solve the problem, in others it will not. In the latter case the relevant values must be increased in the source code and the grg program recompiled. The following limits are all maximums and size is size in characters unless specified otherwise.

A number of the static buffers in GRG have been rewritten to scale dynamically and hence have no fixed limit anymore. These are indicated by the asterix against an entry below. You can get more information by looking at the debug output under the operating limits section.

Name           Size   Description (Dynamic?)
TEXMAXTEX       4096  text body (*)
TEXPBMAX       16384  pushback buffer (*)
MAXMACRONAME      16  length of a macro/equate/variable name
MAXMACRODEF      256  length of a macro definition (*)
MAXEQUATEDEF    1024  length of a reversed equate definition (*)
MAXMACROS         64  number of user macros (*)
MAXEQUATES       128  number of equates (*)
TEXSORTONMAX       4  sort depth
TEXBANNERMAX       4  banner sort groups (*)
TEXDBFFILEMAX      8  number of DBF files (*)
TEXFILTERMAX       8  number of filters
DBFFIELDMAX       16  length of a DBF field name (actually 10 stucturally)
STRMAX           256  length of a string argument and data type
TEXBLOCKMAX        8  number of user text bodies (*)
REGEXPMAX        256  length of a regular expression


Go to the first, previous, next, last section, table of contents.