domacro.h 884 B

123456789101112131415161718192021222324252627282930
  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_DOMACRO_H
  6. #define LANG_CEM_CEMCOM_ANSI_DOMACRO_H
  7. /* lang/cem/cemcom.ansi/domacro.c */
  8. struct idf *GetIdentifier(int skiponerr);
  9. void domacro(void);
  10. void skip_block(int to_endif);
  11. int ifexpr(void);
  12. void do_include(void);
  13. void do_define(void);
  14. void push_if(void);
  15. void do_elif(void);
  16. void do_else(void);
  17. void do_endif(void);
  18. void do_if(void);
  19. void do_ifdef(int how);
  20. void do_undef(struct idf *argidf);
  21. void do_error(void);
  22. int getparams(char *buf[], char parbuf[]);
  23. void macro_def(struct idf *id, char *text, int nformals, int length, int flags);
  24. int find_name(char *nm, char *index[]);
  25. char *get_text(char *formals[], int *length);
  26. int macroeq(char *s, char *t);
  27. void do_line(unsigned int l);
  28. #endif /* LANG_CEM_CEMCOM_ANSI_DOMACRO_H */