lookup.h 719 B

12345678910111213141516171819202122232425262728293031323334
  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$ */
  6. #ifndef UTIL_OPT_LOOKUP_H
  7. #define UTIL_OPT_LOOKUP_H
  8. #define IDL 100
  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 + IDL]; /* to be extended up to IDL */
  16. };
  17. /* contents of .s_flags */
  18. #define SYMPRO 000001
  19. #define SYMGLOBAL 000002
  20. #define SYMKNOWN 000004
  21. #define SYMOUT 000010
  22. #define SYMDEF 000020
  23. #define SYMSEEN 000040
  24. #define NSYMHASH 127
  25. extern sym_p symhash[NSYMHASH],symlookup();
  26. #define OCCURRING 0
  27. #define DEFINING 1
  28. #define NOTHING 2
  29. #endif /* UTIL_OPT_LOOKUP_H */