diff options
| author | Jaroslav Kysela <perex@perex.cz> | 2011-02-22 11:26:45 +0100 |
|---|---|---|
| committer | Jaroslav Kysela <perex@perex.cz> | 2011-02-22 12:15:45 +0100 |
| commit | ab73c9bc4ef858022e7f2a1725ce010de19c165d (patch) | |
| tree | 40e06159ebfc096ee359e4d17d56efc561996bbc /tcc.h | |
| parent | dbefae52b07ce1b93af3a0e4ecbf25ca638e97eb (diff) | |
| download | tinycc-ab73c9bc4ef858022e7f2a1725ce010de19c165d.tar.gz tinycc-ab73c9bc4ef858022e7f2a1725ce010de19c165d.tar.bz2 | |
fix another static struct init issue (arrays with unknown size at end)
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -282,7 +282,8 @@ typedef struct AttributeDef { func_args : 5, mode : 4, weak : 1, - fill : 11; + resize : 1, + fill : 10; struct Section *section; } AttributeDef; @@ -293,6 +294,7 @@ 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)) |
