domacro.h 907 B

12345678910111213141516171819202122232425262728293031
  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. void do_warning(void);
  23. int getparams(char *buf[], char parbuf[]);
  24. void macro_def(struct idf *id, char *text, int nformals, int length, int flags);
  25. int find_name(char *nm, char *index[]);
  26. char *get_text(char *formals[], int *length);
  27. int macroeq(char *s, char *t);
  28. void do_line(unsigned int l);
  29. #endif /* LANG_CEM_CEMCOM_ANSI_DOMACRO_H */