summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/api.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-12-06 10:27:39 +0800
committerChia-I Wu <[email protected]>2010-12-06 15:40:37 +0800
commit8f2a974cf2c9b6c00dfac11be4316a7d121dfbb4 (patch)
tree33f4139d4adb57568a9e020a06a696ffdb3922f2 /src/gallium/state_trackers/vega/api.c
parent5ae4b6693a8254236435960ef84701fe405fe59b (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/gallium/state_trackers/vega/api.c')
-rw-r--r--src/gallium/state_trackers/vega/api.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/gallium/state_trackers/vega/api.c b/src/gallium/state_trackers/vega/api.c
index bf1d37493af..4bf7c71d453 100644
--- a/src/gallium/state_trackers/vega/api.c
+++ b/src/gallium/state_trackers/vega/api.c
@@ -28,23 +28,10 @@
#include "mapi/mapi.h"
+/* define vega_spec and vega_procs for use with mapi */
+#define API_TMP_DEFINE_SPEC
#include "api.h"
-static const char vega_spec[] =
- "1"
-#define MAPI_ABI_ENTRY(ret, name, params) \
- "\0" #name "\0"
-#define MAPI_ALIAS_ENTRY(alias, ret, name, params) \
- #name "\0"
-#include "vgapi/vgapi_tmp.h"
- "\0";
-
-static const mapi_proc vega_procs[] = {
-#define MAPI_ABI_ENTRY(ret, name, params) \
- (mapi_proc) vega ## name,
-#include "vgapi/vgapi_tmp.h"
-};
-
static void api_init(void)
{
static boolean initialized = FALSE;