/* @(#)chgen_define.h 05/11/95 */ #ifndef CHGEN_DEFINE_H #define CHGEN_DEFINE_H /* rcs revision information */ /* $Id: chgen_define.h,v 1.4.4.3 1999/05/07 01:25:04 jkarner Exp $ */ /******************************************************************************/ /* function : chgen_externs.h */ /* */ /* subsystem : chgen */ /* */ /* input : n/a */ /* */ /* output : n/a */ /* */ /* returns : n/a */ /* */ /* author : Steve Smith / Craig Smith */ /* */ /* created : July, 1991 */ /* */ /* revisions : 99s523 - Added rcs revision line - JK-KS */ /* 5/93, 93s523 */ /* Modified #define values: CHGEN_VERSION, MAXTABLES, */ /* ABBREV_NAME_LENGTH, changed macro: encoding() */ /* */ /* description : This header file declares all structures, types and global */ /* variables used by chgen. */ /* */ /******************************************************************************/ /******************************************************************************/ /* NOTE: ALWAYS update the following two lines whenever releasing a new */ /* version of CHGEN. */ /******************************************************************************/ /**** genMerge 99s523 5/3/99 ****/ #include "metaschema.h" /**** 95s523, 5,11,95 ,chwang *****/ /*#define CHGEN_VERSION "genMerge chgenv11-karner/spinney"*/ /*#define CHGEN_RELEASE_DATE "Dec 4, 1992" Removed CEM 9 Feg 93*/ /* extern char * CHGEN_RELEASE_DATE(); - removed genMerge 99s523 */ #define BUFSIZE 256 /* max text line buffer length (for file reads) */ #define NAMELENGTH 30 /* max length of name (tables and fields) */ #define TYPELENGTH 12 /* max length of datatype field */ #define ABBREV_NAME_LENGTH 5 /* length of an abbreviated table-name */ #define MAXCOMMENTLENGTH 133 /* max length of a comment from a schema file */ #define SPACE ' ' /* simple ascii code constants for parsing */ #define TAB '\t' #define NEWLINE '\n' #define EOS '\0' /* end of string */ #define SCHEMA_HEADER_FILE_NAME_LENGTH 100 /* max filename length for any file */ #define PATH_NUMBER 10 /* max number of track save (access macros) */ #define MAXTABLES 255 /* max number of tables allowed per schema */ #define MAXVIEWS 10 /* max number of views allowed (override with cli_maxviews) */ /*#define MAXVIEWNAMELEN NAMELENGTH removed 99s523 genMerge *//* max size of a view-name string */ #define TABLE_NO_LIMIT 676 /* max theoretical possible no of tables in schema (2 digit base 26 system) */ #define MAXPATHLENGTH 16 /* sqrt of MAXTABLES */ #define MAXPATH 2000 /* max character length of any access path */ #define MAXINTLENGTH 8 /* max length of int (used in field formating) */ #define MAXFLOATLENGTH 8 /* max length of float */ #define FRACLENGTH 4 /* length of fractional */ /******************************************************************************/ /* This macro is used to convert a 2-character table abbreviation to its */ /* base-26 integer representation. The value will converted to uppercase if */ /* not already. */ /******************************************************************************/ /******* 93s523 ******/ #define encoding(s) (lut_insert_element(&hcg_table_abbrev_lut, s)) /******************************************************************************/ /* State variables used in the schema parser (see parse_schema.c) */ /******************************************************************************/ #define state_NULL 0 #define state_STARTED 1 #define state_WITHIN 2 #endif