1 /* ResidualVM - A 3D game interpreter 2 * 3 * ResidualVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the AUTHORS 5 * file distributed with this source distribution. 6 * 7 * Additional copyright for this file: 8 * Copyright (C) 1999-2000 Revolution Software Ltd. 9 * This code is based on source code created by Revolution Software, 10 * used with permission. 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 25 * 26 */ 27 28 #ifndef ICB_STRING_VEST_H 29 #define ICB_STRING_VEST_H 30 31 #include "engines/icb/common/px_common.h" 32 #include "engines/icb/debug.h" 33 34 namespace ICB { 35 36 #define ENGINE_STRING_LEN 256 37 38 // This is the maximum length of a complete URL (clustering might remove the need for this). 39 #define MAXLEN_URL ENGINE_STRING_LEN 40 41 // This is the maximum length of a complete URL to a cluster. 42 #define MAXLEN_CLUSTER_URL 128 43 44 // The maximum length of an icon name. 45 #define MAXLEN_ICON_NAME 32 46 47 // Maximum length of an event name. 48 #define MAXLEN_EVENT_NAME 16 49 50 // Maximum length of a game object name. 51 #define MAXLEN_OBJECT_NAME 64 52 53 // Maximum length of a name given to an icon list (e.g. "inventory") is one. 54 #define MAXLEN_ICON_LIST_NAME 20 55 56 // Don't know what this one is used for. 57 #define TINY_NAME_LEN 32 58 59 // stop initing these in multiple routines and use this instead 60 extern char temp_buf[ENGINE_STRING_LEN]; 61 62 void Set_string_and_len(const char *from, char *to, uint32 *length); 63 void Set_string(const char *from, char *to); 64 void Set_string(const char *from, char *to, uint32 length); 65 66 } // End of namespace ICB 67 68 #endif // #ifndef __STRING_VEST_H 69