em_ptyp.h 970 B

123456789101112131415161718192021222324
  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. #define ptyp(x) (1<<(x-sp_fspec))
  6. #define cst_ptyp (ptyp(sp_cst2)|ptyp(sp_cst4))
  7. #define nof_ptyp (ptyp(sp_dlb1)|ptyp(sp_dlb2)|ptyp(sp_doff))
  8. #define sof_ptyp (ptyp(sp_dnam)|ptyp(sp_doff))
  9. #define lab_ptyp (ptyp(sp_dlb1)|ptyp(sp_dlb2)|ptyp(sp_dnam))
  10. #define ico_ptyp (ptyp(sp_icon))
  11. #define uco_ptyp (ptyp(sp_ucon))
  12. #define fco_ptyp (ptyp(sp_fcon))
  13. #define str_ptyp (ptyp(sp_scon))
  14. #define con_ptyp (str_ptyp|ico_ptyp|uco_ptyp|fco_ptyp)
  15. #define ilb_ptyp (ptyp(sp_ilb1)|ptyp(sp_ilb2))
  16. #define pro_ptyp (ptyp(sp_pnam))
  17. #define off_ptyp (ptyp(sp_doff))
  18. #define end_ptyp (ptyp(sp_cend))
  19. #define sym_ptyp (lab_ptyp)
  20. #define arg_ptyp (nof_ptyp|cst_ptyp|sof_ptyp)
  21. #define par_ptyp (arg_ptyp|ico_ptyp|uco_ptyp|fco_ptyp|pro_ptyp|ilb_ptyp)
  22. #define val_ptyp (par_ptyp|str_ptyp)
  23. #define any_ptyp (val_ptyp|end_ptyp)