state.h 1.1 KB

123456789101112131415161718192021222324252627282930
  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. #ifndef MACH_PROTO_NCG_STATE_H
  7. #define MACH_PROTO_NCG_STATE_H
  8. typedef struct state {
  9. struct state *st_next; /* for linked list */
  10. int st_sh; /* stackheight */
  11. token_t st_fs[MAXFSTACK]; /* fakestack */
  12. int st_na; /* nallreg */
  13. int st_ar[MAXALLREG]; /* allreg[] */
  14. token_p st_ct; /* curtoken */
  15. result_t st_do[LONGESTPATTERN]; /* dollar[] */
  16. struct reginfo st_mr[NREGS]; /* machregs[] */
  17. int st_ne; /* nemlines */
  18. struct emline st_el[MAXEMLINES]; /* emlines[] */
  19. struct emline *st_em; /* emp */
  20. struct emline *st_se; /* saveemp */
  21. int st_tl; /* tokpatlen */
  22. int st_ns; /* nstab */
  23. } state_t,*state_p;
  24. void savestatus(state_p sp);
  25. void restorestatus(state_p sp);
  26. void bmove(short *from, short *to, int nbytes);
  27. #endif /* MACH_PROTO_NCG_STATE_H */