1989-02-07 11:04:05 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
2019-02-18 16:42:15 +00:00
|
|
|
#ifndef FIELD_H_
|
|
|
|
#define FIELD_H_
|
|
|
|
|
|
|
|
#include "arith.h"
|
|
|
|
|
1994-06-27 08:03:14 +00:00
|
|
|
/* $Id$ */
|
1989-02-07 11:04:05 +00:00
|
|
|
/* FIELD DESCRIPTOR */
|
|
|
|
|
|
|
|
struct field { /* for field specifiers */
|
|
|
|
arith fd_mask;
|
|
|
|
int fd_shift;
|
|
|
|
int fd_width;
|
|
|
|
struct sdef *fd_sdef; /* upward pointer */
|
|
|
|
};
|
|
|
|
|
1990-01-10 17:33:35 +00:00
|
|
|
/* ALLOCDEF "field" 10 */
|
2019-02-18 16:42:15 +00:00
|
|
|
|
|
|
|
#ifndef LINT
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef NOBITFIELD
|
|
|
|
|
|
|
|
struct expr;
|
|
|
|
|
|
|
|
void store_field(register struct field *fd, int uns, int code,
|
|
|
|
register struct expr *leftop, arith tmpvar);
|
|
|
|
void eval_field(struct expr *expr, int code);
|
|
|
|
|
|
|
|
#endif /* NOBITFIELD */
|
|
|
|
|
|
|
|
#endif /* LINT */
|
|
|
|
|
|
|
|
#endif /* FIELD_H_ */
|