2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
2009-08-17 12:41:51 +02:00
|
|
|
gb_limit.h
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2017-01-13 04:29:42 +01:00
|
|
|
(c) 2000-2017 Benoît Minisini <gambas@users.sourceforge.net>
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2007-12-30 17:41:49 +01:00
|
|
|
any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2011-06-03 02:51:09 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
2011-12-31 03:39:20 +01:00
|
|
|
MA 02110-1301, USA.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __GB_LIMIT_H
|
|
|
|
#define __GB_LIMIT_H
|
|
|
|
|
|
|
|
/* Maximum number of parameters for a function - CANNOT CHANGE */
|
|
|
|
#define MAX_PARAM_FUNC 63
|
|
|
|
|
|
|
|
/* Maximum number of parameters for a subroutine - CANNOT CHANGE */
|
|
|
|
#define MAX_PARAM_SUBR 63
|
|
|
|
|
|
|
|
/* Maximum number of parameters for an operator - CANNOT CHANGE */
|
|
|
|
#define MAX_PARAM_OP 63
|
|
|
|
|
|
|
|
/* Maximum level of expression imbrication */
|
|
|
|
#define MAX_EXPR_LEVEL 255
|
|
|
|
|
|
|
|
/* Maximum number of patterns in an expression - CANNOT CHANGE */
|
|
|
|
#define MAX_EXPR_PATTERN 1023
|
|
|
|
|
|
|
|
/* Maximum length of a symbol */
|
|
|
|
#define MAX_SYMBOL_LEN 255
|
|
|
|
|
2008-04-10 14:06:14 +02:00
|
|
|
/* Maximum number of constants in the same class - CANNOT CHANGE */
|
2010-12-20 04:56:43 +01:00
|
|
|
#define MAX_CLASS_CONST 65536
|
2008-04-10 14:06:14 +02:00
|
|
|
|
|
|
|
/* Maximum number of static or dynamic symbols in the same class - CANNOT CHANGE */
|
|
|
|
#define MAX_CLASS_SYMBOL 2048
|
|
|
|
|
|
|
|
/* Maximum number of functions in the same class - CANNOT CHANGE */
|
|
|
|
#define MAX_CLASS_FUNCTION 2048
|
|
|
|
|
|
|
|
/* Maximum number of class uses in the same class - CANNOT CHANGE */
|
|
|
|
#define MAX_CLASS_CLASS 2048
|
|
|
|
|
2012-11-24 19:52:11 +01:00
|
|
|
/* Maximum number of extern declaration in the same class - CANNOT CHANGE */
|
2008-04-10 14:06:14 +02:00
|
|
|
#define MAX_CLASS_EXTERN 256
|
|
|
|
|
|
|
|
/* Maximum number of events in the same class - CANNOT CHANGE */
|
2012-11-24 19:52:11 +01:00
|
|
|
#define MAX_CLASS_EVENT 254
|
2008-04-10 14:06:14 +02:00
|
|
|
|
|
|
|
/* Maximum number of unknown symbols in the same class - CANNOT CHANGE */
|
|
|
|
#define MAX_CLASS_UNKNOWN 65536
|
|
|
|
|
|
|
|
/* Maximum number of array declarations in the same class - CANNOT CHANGE */
|
2014-01-28 00:46:37 +01:00
|
|
|
#define MAX_CLASS_ARRAY 32768
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
/* Maximum number of local variables in a function - CANNOT CHANGE */
|
|
|
|
#define MAX_LOCAL_SYMBOL 127
|
|
|
|
|
|
|
|
/* Maximum level of control structures imbrication */
|
|
|
|
#define MAX_CTRL_LEVEL 32
|
|
|
|
|
|
|
|
/* Maximum number of dimensions in an array */
|
|
|
|
#define MAX_ARRAY_DIM 8
|
|
|
|
|
|
|
|
/* Maximum level of controls imbrication in a form */
|
|
|
|
#define MAX_FORM_PARENT 32
|
|
|
|
|
|
|
|
/* Maximum number of possible comparisons in one CASE instruction */
|
|
|
|
#define MAX_CASE_EXPR 32
|
|
|
|
|
|
|
|
/* Maximum number of breakpoints */
|
|
|
|
#define MAX_BREAKPOINT 255
|
|
|
|
|
|
|
|
/* Number of bytes written at once in a single input/output request */
|
|
|
|
#define MAX_IO 4096
|
|
|
|
|
|
|
|
/* Maximum level of class inheritance */
|
|
|
|
#define MAX_INHERITANCE 16
|
|
|
|
|
|
|
|
/* Maximum length of an error message */
|
|
|
|
#define MAX_ERROR_MSG 511
|
|
|
|
|
2008-07-19 15:35:36 +02:00
|
|
|
/* Maximum number of fields in a structure */
|
|
|
|
#define MAX_STRUCT_FIELD 255
|
|
|
|
|
2011-12-30 11:57:06 +01:00
|
|
|
/* Maximum number of digits in a Float */
|
2011-12-30 18:03:20 +01:00
|
|
|
#define MAX_FLOAT_DIGIT 15
|
2011-12-30 11:57:06 +01:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
#endif
|
|
|
|
|