/* LIMITS.h - hard wired safety limits Copyright (C) Lumiera.org 2012, Hermann Vosseler 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 the Free Software Foundation; either version 2 of the License, or (at your option) 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 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /** @file limits.h ** hard wired safety limits. ** This tiny header defines some hard limits for indexing, counting, searching ** and similar ordinal operations. These limits are a protection against ordinal ** and index numbers insanely out-of dimension, like e.g. a symbolic ID with more ** than 1000 characters. Whenever an actual allocation is based on such ordinal values, ** a tighter and more specific limitation will be enforced on a case by case base ** ** @see symbol-impl.cpp ** @see util::uNum */ #ifndef LUMIERA_LIMITS_H #define LUMIERA_LIMITS_H #define LUMIERA_IDSTRING_MAX_RELEVANT 1000 #define LUMIERA_MAX_ORDINAL_NUMBER 1000 #endif /*LUMIERA_LIMITS_H*/