/* TYPES */ /* COPYRIGHT (c) 2007 BY */ /* DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASSACHUSETTS. */ /* ALL RIGHTS RESERVED. */ /* */ /* THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED*/ /* ONLY IN ACCORDANCE OF THE TERMS OF SUCH LICENSE AND WITH THE*/ /* INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR ANY OTHER*/ /* COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY*/ /* OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE SOFTWARE IS HEREBY*/ /* TRANSFERRED. */ /* */ /* THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE*/ /* AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT*/ /* CORPORATION. */ /* */ /* DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR RELIABILITY OF ITS*/ /* SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL. */ /* A character code is either (the ordinal of) an eight-bit character, or it is a special code for "newline", "delete", or "undefined". */ /* Modification History : */ /* V5.1-01 RAJESH 06-Nov-07 Added the condition compilation to avoid */ /* compilation errors while doing incremental build */ #ifndef TYPES_H !added for condition compilation #define TYPES_H !added for condition compilation #define del_code 256 #define newline 257 #define undef_code 258 #define min_code 0 #define max_code 258 #define code_vector_limit 259 #ifdef FALSE #undef FALSE #endif #ifdef TRUE #undef TRUE #endif typedef enum {FALSE = 0, TRUE = 1} boolean; typedef int code_value; /* min_code .. max_code */ /* code_vector_length = 0 .. code_vector_limit; */ typedef int code_vector_length; typedef code_value code_vector[code_vector_limit]; /* A translation table specifies, for each input character, what output character it should be translated to (del_code means simply delete). When a string of input codes all have the compress flag set, only the first one is actually translated; subsequent ones are deleted. */ typedef struct { code_value trans_value; boolean compress; } trans_table[max_code - min_code + 1]; typedef char *param_string; #define max_record_len 1024 #endif !added for condition compilation