def.str 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. /* IDENTIFIER DEFINITION DESCRIPTOR */
  7. #include "lint.h"
  8. struct def { /* for ordinary tags */
  9. struct def *next;
  10. int df_level;
  11. struct type *df_type;
  12. int df_sc; /* may be:
  13. GLOBAL, STATIC, EXTERN, IMPLICIT,
  14. TYPEDEF,
  15. FORMAL, AUTO,
  16. ENUM, LABEL
  17. */
  18. char df_initialized; /* an initialization has been generated */
  19. char df_alloc; /* 0, ALLOC_SEEN or ALLOC_DONE */
  20. char df_used; /* set if idf is used */
  21. char *df_file; /* file containing the definition */
  22. unsigned int df_line; /* line number of the definition */
  23. #ifdef LINT
  24. char df_set;
  25. int df_firstbrace; /* brace number of its first occurrence */
  26. int df_minlevel; /* the lowest level needed for this def */
  27. #endif /* LINT */
  28. char df_formal_array; /* to warn if sizeof is taken */
  29. arith df_address;
  30. };
  31. #define ALLOC_SEEN 1 /* an allocating declaration has been seen */
  32. #define ALLOC_DONE 2 /* the allocating declaration has been done */
  33. #define REG_DEFAULT 0 /* register candidate, not declared as such */
  34. #define REG_BONUS 10 /* register candidate, declared as such */
  35. /* ALLOCDEF "def" 50 */