Pristine Ack-5.5
[Ack-5.5.git] / util / opt / lookup.h
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 /* $Id: lookup.h,v 2.5 1994/06/24 10:40:14 ceriel Exp $ */
6
7 #define IDL     100
8
9 struct sym {
10         sym_p   s_next;
11         offset  *s_rom;
12         short   s_flags;
13         short   s_frag;
14         offset  s_value;
15         char    s_name[2];      /* to be extended up to IDL */
16 };
17
18 /* contents of .s_flags */
19 #define SYMPRO          000001
20 #define SYMGLOBAL       000002
21 #define SYMKNOWN        000004
22 #define SYMOUT          000010
23 #define SYMDEF          000020
24 #define SYMSEEN         000040
25
26 #define NSYMHASH        127
27 extern sym_p symhash[NSYMHASH],symlookup();
28 #define OCCURRING       0
29 #define DEFINING        1
30 #define NOTHING         2