projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glapi: gl_x86_asm.py: use a main function
[mesa.git]
/
src
/
mapi
/
entry.c
diff --git
a/src/mapi/entry.c
b/src/mapi/entry.c
index 3d9168a724399a4600261da6ab8d6703bd7585c6..27d0db40efce3158bf93c29e9b5e1a6ef0a88f40 100644
(file)
--- a/
src/mapi/entry.c
+++ b/
src/mapi/entry.c
@@
-1,6
+1,5
@@
/*
* Mesa 3-D graphics library
/*
* Mesa 3-D graphics library
- * Version: 7.9
*
* Copyright (C) 2010 LunarG Inc.
*
*
* Copyright (C) 2010 LunarG Inc.
*
@@
-28,7
+27,9
@@
#include "entry.h"
#include "u_current.h"
#include "entry.h"
#include "u_current.h"
-#include "u_macros.h"
+
+#define _U_STRINGIFY(x) #x
+#define U_STRINGIFY(x) _U_STRINGIFY(x)
/* define macros for use by assembly dispatchers */
#define ENTRY_CURRENT_TABLE U_STRINGIFY(u_current_table)
/* define macros for use by assembly dispatchers */
#define ENTRY_CURRENT_TABLE U_STRINGIFY(u_current_table)
@@
-37,7
+38,7
@@
#ifdef MAPI_MODE_BRIDGE
#define ENTRY_CURRENT_TABLE_GET "_glapi_get_dispatch"
#else
#ifdef MAPI_MODE_BRIDGE
#define ENTRY_CURRENT_TABLE_GET "_glapi_get_dispatch"
#else
-#define ENTRY_CURRENT_TABLE_GET U_STRINGIFY(u_current_get_internal)
+#define ENTRY_CURRENT_TABLE_GET U_STRINGIFY(u_current_get_
table_
internal)
#endif
#if defined(USE_X86_ASM) && defined(__GNUC__)
#endif
#if defined(USE_X86_ASM) && defined(__GNUC__)
@@
-52,13
+53,13
@@
#include <stdlib.h>
#include <stdlib.h>
-static
INLINE
const struct mapi_table *
+static
inline
const struct mapi_table *
entry_current_get(void)
{
#ifdef MAPI_MODE_BRIDGE
return GET_DISPATCH();
#else
entry_current_get(void)
{
#ifdef MAPI_MODE_BRIDGE
return GET_DISPATCH();
#else
- return u_current_get();
+ return u_current_get
_table
();
#endif
}
#endif
}