00001 #ifdef __CHILD_ILLEGAL_ACCESS__
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00039 #ifndef _CHILDPRIV_H_SEEN_
00040 #define _CHILDPRIV_H_SEEN_
00041
00042 #ifndef lint
00043 static CONST char ChildPrivID[] = "$Id: childpriv.h,v 1.1 1998/03/27 10:43:58 ballan Exp $";
00044 #endif
00045
00047 #define LegalOrigin(n) ( ((n)>0 && (n) <=8) ? (n) : 0 )
00048
00049 struct ChildHash {
00050 struct ChildHash *next;
00051 symchar *sym;
00052 unsigned long clindex;
00053 };
00054
00060 #define CHILDHASHINDEX(p) (((((long) (p))*1103515245) >> 22) & 255)
00061
00066 #define CHILDHASHTABLESIZE 256
00067
00072 struct ChildListStructure {
00073 struct gl_list_t *list;
00074 struct gl_list_t *symbols;
00075 struct ChildHash *table[CHILDHASHTABLESIZE];
00076 struct ChildHash *data;
00077 };
00078
00080 #define CGET(l,n) ((struct ChildListEntry *)gl_fetch((l)->list,(n)))
00081
00082 #define CNAME(l,n) ((l)->data[(n)-1].sym)
00083
00084 #define GGET(l,n) ((struct ChildListEntry *)gl_fetch((l),(n)))
00085
00088 #define CPUT(l,p) gl_insert_sorted((l)->list,(p),(CmpFunc)CmpChildListEntries)
00089
00091 #define GL(a) (a)->list
00092
00093 #define GN(a) (a)->symbols
00094
00095 #endif
00096 #endif
00097