aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorDetlef Riekenberg <wine.dev@web.de>2010-01-26 22:56:22 +0100
committerDetlef Riekenberg <tcc.dev@web.de>2010-01-26 22:56:22 +0100
commita975008ae795c71bd4620bc4b3c503f0617b58bb (patch)
tree89d591f18b6779211a8e3f6275ebd05b5915801e /tcc.h
parent2650584ac4fd71ae4ed2b4e3da755b890ba0637c (diff)
downloadtinycc-a975008ae795c71bd4620bc4b3c503f0617b58bb.tar.gz
tinycc-a975008ae795c71bd4620bc4b3c503f0617b58bb.tar.bz2
Add support for the __mode__ attribute
-- By by ... Detlef
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index 124d7e5..156bdd0 100644
--- a/tcc.h
+++ b/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))
/* -------------------------------------------------- */