idf_loc.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * The Amsterdam Compiler Kit
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. #ifndef LANG_CEM_CEMCOM_ANSI_IDF_H
  6. #define LANG_CEM_CEMCOM_ANSI_IDF_H
  7. #include "declar.h"
  8. #include "decspecs.h"
  9. #include "def.h"
  10. /* lang/cem/cemcom.ansi/idf.c */
  11. void init_idf(void);
  12. struct idf *str2idf(char tg[], int cpy);
  13. struct idf *gen_idf(void);
  14. int is_anon_idf(struct idf *idf);
  15. int declare_idf(struct decspecs *ds, struct declarator *dc, int lvl);
  16. int actual_declaration(int sc, struct type *tp);
  17. int global_redecl(register struct idf *idf, int new_sc, struct type *tp);
  18. int good_formal(register struct def *def, register struct idf *idf);
  19. int declare_params(struct declarator *dc);
  20. int idf_initialized(register struct idf *idf);
  21. int declare_parameter(struct idf *idf);
  22. int declare_enum(struct type *tp, struct idf *idf, arith l);
  23. int check_formals(struct idf *idf, struct declarator *dc);
  24. int declare_formals(struct idf *idf, arith *fp);
  25. int regtype(struct type *tp);
  26. int add_def(struct idf *idf, int sc, struct type *tp, int lvl);
  27. int update_ahead(register struct idf *idf);
  28. int free_formals(register struct formal *fm);
  29. #endif /* LANG_CEM_CEMCOM_ANSI_IDF_H */