subr.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #ifndef UTIL_NCGG_SUBR_H
  2. #define UTIL_NCGG_SUBR_H
  3. #include "varinfo.h"
  4. #include "instruct.h"
  5. /* util/ncgg/subr.c */
  6. void n_proc(char *name);
  7. struct varinfo *make_erase(char *name);
  8. void n_instr(char *name, char *asname, operand *oplist, struct varinfo *eraselist, struct varinfo *cost);
  9. void n_set(char *name, int number);
  10. void n_tok(char *name, struct varinfo *atts, int size, struct varinfo *cost, struct varinfo *format);
  11. void checkprintformat(int n);
  12. void n_prop(char *name, int size);
  13. void prophall(int n);
  14. int n_reg(char *name, char *printstring, int nmemb, int member1, int member2);
  15. void make_const(void);
  16. int cmustbeset(char *ident);
  17. void n_const(char *ident, int val);
  18. void n_sconst(char *ident, char *val);
  19. void regline(varinfo *rl, varinfo *pl, int rv);
  20. void setallreg(struct varinfo *vi);
  21. void freevi(struct varinfo *vip);
  22. int myatoi(char *s);
  23. char *mystrcpy(char *s);
  24. char *myalloc(int n);
  25. int chkincl(int value, int lwb, int upb);
  26. int subset(short *sp1, short *sp2, int setsize);
  27. int vilength(struct varinfo *vip);
  28. #endif /* UTIL_NCGG_SUBR_H */