diff options
| author | Michael Forney <mforney@mforney.org> | 2019-03-14 11:59:09 -0700 | 
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-03-14 12:20:40 -0700 | 
| commit | 6a00f53cd34e33c12a91942015a3dc5dbcb44bf2 (patch) | |
| tree | 22697da00604707958828d0903d1c0c452dac64f /type.h | |
| parent | 1bc3f5f9bdf956e50cb38046f41bf5f61b49d306 (diff) | |
| download | cproc-6a00f53cd34e33c12a91942015a3dc5dbcb44bf2.tar.xz | |
Abbreviate tag names
Diffstat (limited to 'type.h')
| -rw-r--r-- | type.h | 22 | 
1 files changed, 11 insertions, 11 deletions
| @@ -1,4 +1,4 @@ -enum typequalifier { +enum typequal {  	QUALNONE,  	QUALCONST    = 1<<1, @@ -20,7 +20,7 @@ enum typekind {  	TYPEUNION,  }; -enum typeproperty { +enum typeprop {  	PROPNONE,  	PROPOBJECT  = 1<<0, @@ -34,11 +34,11 @@ enum typeproperty {  	PROPFLOAT   = 1<<8,  }; -struct parameter { +struct param {  	char *name;  	struct type *type;  	struct value *value; -	struct parameter *next; +	struct param *next;  };  struct member { @@ -52,7 +52,7 @@ struct type {  	enum typekind kind;  	int align;  	uint64_t size; -	struct representation *repr; +	struct repr *repr;  	union {  		struct type *base;  		struct list link;  /* used only during construction of type */ @@ -60,7 +60,7 @@ struct type {  	_Bool incomplete;  	union {  		struct { -			enum typequalifier kind; +			enum typequal kind;  		} qualified;  		struct {  			enum { @@ -82,7 +82,7 @@ struct type {  		} array;  		struct {  			_Bool isprototype, isvararg, isnoreturn, paraminfo; -			struct parameter *params; +			struct param *params;  		} func;  		struct {  			char *tag; @@ -92,21 +92,21 @@ struct type {  };  struct type *mktype(enum typekind); -struct type *mkqualifiedtype(struct type *, enum typequalifier); +struct type *mkqualifiedtype(struct type *, enum typequal);  struct type *mkpointertype(struct type *);  struct type *mkarraytype(struct type *, uint64_t);  _Bool typecompatible(struct type *, struct type *);  _Bool typesame(struct type *, struct type *);  struct type *typecomposite(struct type *, struct type *); -struct type *typeunqual(struct type *, enum typequalifier *); +struct type *typeunqual(struct type *, enum typequal *);  struct type *typecommonreal(struct type *, struct type *);  struct type *typeargpromote(struct type *);  struct type *typeintpromote(struct type *); -enum typeproperty typeprop(struct type *); +enum typeprop typeprop(struct type *);  struct type *typemember(struct type *, const char *, uint64_t *); -struct parameter *mkparam(char *, struct type *); +struct param *mkparam(char *, struct type *);  extern struct type typevoid;  extern struct type typebool; | 
