00001 // Copyright (C) 2006 Bryan Jacobson <bryanjacobson@users.sourceforge.net> 00002 // This program is licensed under the terms of the GNU General Public License 00003 // version 2, as published by the Free Software Foundation. 00004 // This program is distributed in the hope that it will be useful, 00005 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00006 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00007 00008 #ifndef GABBIE_H 00009 #define GABBIE_H 00010 00014 00015 // Major tables 00016 const int gDictionaryHashSize = 21000; 00017 const int gKbaseInstHashSize = 900; 00018 const int gKbaseNameHashSize = 800; 00019 const int gKbaseClassHashSize = 50; 00020 const int gTvChanTabSize = 200; 00021 const int gTvIndexSize = 40000; 00022 const int gPalmBufSize = 8192; 00023 00024 // Standard buffers 00025 const int gMaxLineSize = 1024; 00026 const int gMaxName = 128; 00027 00028 // Standard strings 00029 #define LOG_FILE_NAME "DATA/gabbie.log" 00030 00032 const int gPalmAgeCutoff = 90; 00033 00034 // Log file 00035 extern FILE *gFpLog; 00036 00037 // Logging printf 00038 #define Lprintf(format, ...) ( printf(format, ## __VA_ARGS__), \ 00039 fprintf(gFpLog, format, ## __VA_ARGS__) ) 00040 00041 // Logging putchar 00042 #define Lputchar(c) ( putchar(c), putc(c, gFpLog) ) 00043 00044 #endif // GABBIE_H