diff options
author | Stefan Weil <sw@weilnetz.de> | 2011-09-29 18:33:21 +0200 |
---|---|---|
committer | Stefan Weil <weil@mail.berlios.de> | 2011-10-31 21:52:16 +0100 |
commit | 2a24374ab6c27c00dd346f0961a0f05e13672a86 (patch) | |
tree | e3abfe0a87e6f87fa4c38632fad4a00bde0d8ab8 /tcg/tcg.h | |
parent | ce285b17549e806483f6499d7f3d418168116950 (diff) |
tcg: Make ARRAY_SIZE(tcg_op_defs) globally available
tcg_op_defs was already a global array.
The tci disassembler also needs ARRAY_SIZE(tcg_op_defs),
so add a new global constant with this value.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -525,7 +525,8 @@ typedef struct TCGOpDef { } TCGOpDef; extern TCGOpDef tcg_op_defs[]; - +extern const size_t tcg_op_defs_max; + typedef struct TCGTargetOpDef { TCGOpcode op; const char *args_ct_str[TCG_MAX_OP_ARGS]; |