revert complicated & broken flexible array member handling
This commit is contained in:
4
tcc.h
4
tcc.h
@ -282,8 +282,7 @@ typedef struct AttributeDef {
|
||||
func_args : 5,
|
||||
mode : 4,
|
||||
weak : 1,
|
||||
resize : 1,
|
||||
fill : 10;
|
||||
fill : 11;
|
||||
struct Section *section;
|
||||
int alias_target; /* token */
|
||||
} AttributeDef;
|
||||
@ -295,7 +294,6 @@ typedef struct AttributeDef {
|
||||
#define FUNC_ARGS(r) (((AttributeDef*)&(r))->func_args)
|
||||
#define FUNC_ALIGN(r) (((AttributeDef*)&(r))->aligned)
|
||||
#define FUNC_PACKED(r) (((AttributeDef*)&(r))->packed)
|
||||
#define ARRAY_RESIZE(r) (((AttributeDef*)&(r))->resize)
|
||||
#define ATTR_MODE(r) (((AttributeDef*)&(r))->mode)
|
||||
#define INT_ATTR(ad) (*(int*)(ad))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user