/* Copyright 1997 Acorn Computers Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /***************************************************/ /* File : Limits.h */ /* */ /* */ /* Purpose: Definitions relating to fundamental */ /* limitations of the application. */ /* */ /* Author : A.D.Hodgkinson */ /* */ /* History: 13-Nov-96: Created. */ /* 16-Aug-97: Ensured that the lengths */ /* *did* include terminators */ /* (previously, they weren't */ /* supposed to). */ /***************************************************/ /***************************************************************************************/ /* */ /* Hard coded application limits */ /* ============================= */ /* */ /* Many of these are hard coded limits required since C won't let you do things like: */ /* */ /* { */ /* char buffer[strlen(struct->path) + extralen]; */ /* */ /* ... */ /* } */ /* */ /* Others are OS limits, or derived from OS limits; they may be related to the scope */ /* of values in related HTML; and so-on. */ /* */ /* In the lists below, a description of what the limit represents is given. Where */ /* these are used can be worked out by loading all source / header files and doing a */ /* global List Of Found. The description is followed by a single digit code: */ /* */ /* D The size is arbitrary, though changing the value may have unpredictable effects */ /* and so every case must be considered in light of the code relevant to the limit */ /* in question. For example, no errors will be raised if the number of items */ /* allowed in a list D */ #define Limits_Realm 192 /* The realm for authorisation S */ #define Limits_HostName 192 /* The host name for authorisation S */ #define Limits_HistoryMenuItemSize 60 /* Max. width of history menus, in characters D */ /* ...and a few more for multiuser builds (SINGLE_USER not defined). */ #define Limits_Multi_UserName 20 /* User name for login S */ #define Limits_Multi_Password 11 /* Password for login S */ #define Limits_Multi_HomePage 256 /* Home page URL for user S */ #define Limits_Multi_Name 32 /* User's actual name S */ #define Limits_Multi_History 256 /* Pathname to save/load history file S */ #define Limits_Multi_Hotlist 256 /* Pathname to save/load hotlist file S */ /* Miscellaneous limits - limitation definitions that don't */ /* easily fit into another category. */ #define Limits_Misc_AnimFrames 1024 /* The number of animation sprites allowed D */ #define Limits_Misc_Bullets 128 /* The number of bullet sprites allowed D */