field.h 478 B

1234567891011121314151617181920
  1. /* $Header$ */
  2. /* FIELD DESCRIPTOR */
  3. struct field { /* for field specifiers */
  4. struct field *next;
  5. arith fd_mask;
  6. int fd_shift;
  7. int fd_width;
  8. struct sdef *fd_sdef; /* upward pointer */
  9. };
  10. /* allocation definitions of struct field */
  11. /* ALLOCDEF "field" */
  12. extern char *st_alloc();
  13. extern struct field *h_field;
  14. #define new_field() ((struct field *) \
  15. st_alloc((char **)&h_field, sizeof(struct field)))
  16. #define free_field(p) st_free(p, h_field, sizeof(struct field))