1 /*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ken Arnold. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)strfile.h 8.1 (Berkeley) 05/31/93 11 */ 12 13 #define STR_ENDSTRING(line,tbl) \ 14 ((line)[0] == (tbl).str_delim && (line)[1] == '\n') 15 16 typedef struct { /* information table */ 17 #define VERSION 1 18 unsigned long str_version; /* version number */ 19 unsigned long str_numstr; /* # of strings in the file */ 20 unsigned long str_longlen; /* length of longest string */ 21 unsigned long str_shortlen; /* length of shortest string */ 22 #define STR_RANDOM 0x1 /* randomized pointers */ 23 #define STR_ORDERED 0x2 /* ordered pointers */ 24 #define STR_ROTATED 0x4 /* rot-13'd text */ 25 unsigned long str_flags; /* bit field for flags */ 26 unsigned char stuff[4]; /* long aligned space */ 27 #define str_delim stuff[0] /* delimiting character */ 28 } STRFILE; 29