Add support for the __mode__ attribute
-- By by ... Detlef
This commit is contained in:
committed by
Detlef Riekenberg
parent
2650584ac4
commit
a975008ae7
4
tcc.h
4
tcc.h
@ -267,7 +267,8 @@ typedef struct AttributeDef {
|
||||
func_export : 1,
|
||||
func_import : 1,
|
||||
func_args : 5,
|
||||
fill : 16;
|
||||
mode : 4,
|
||||
fill : 12;
|
||||
struct Section *section;
|
||||
} AttributeDef;
|
||||
|
||||
@ -278,6 +279,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 ATTR_MODE(r) (((AttributeDef*)&(r))->mode)
|
||||
#define INT_ATTR(ad) (*(int*)(ad))
|
||||
|
||||
/* -------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user