diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-12-06 10:27:39 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-12-06 15:40:37 +0800 |
commit | 8f2a974cf2c9b6c00dfac11be4316a7d121dfbb4 (patch) | |
tree | 33f4139d4adb57568a9e020a06a696ffdb3922f2 /src/mapi/mapi/table.h | |
parent | 5ae4b6693a8254236435960ef84701fe405fe59b (diff) |
mapi: Rewrite mapi_abi.py to get rid of preprocessor magic.
The preprocessor magic in mapi was nothing but obfuscation. Rewrite
mapi_abi.py to generate real C code.
This commit removes the hack added in
43121f20866bb89e8dac92bd92ec85a943704b7e.
Diffstat (limited to 'src/mapi/mapi/table.h')
-rw-r--r-- | src/mapi/mapi/table.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mapi/mapi/table.h b/src/mapi/mapi/table.h index 48c99018aa..ca2be568c7 100644 --- a/src/mapi/mapi/table.h +++ b/src/mapi/mapi/table.h @@ -33,13 +33,11 @@ #include "stub.h" #define MAPI_TMP_DEFINES -#include "mapi_tmp.h" - -struct mapi_table { #define MAPI_TMP_TABLE #include "mapi_tmp.h" - mapi_func last; -}; + +#define MAPI_TABLE_NUM_SLOTS (MAPI_TABLE_NUM_STATIC + MAPI_TABLE_NUM_DYNAMIC) +#define MAPI_TABLE_SIZE (MAPI_TABLE_NUM_SLOTS * sizeof(mapi_func)) extern const mapi_func table_noop_array[]; |