GL: drop symbols mangling support

SCons and Meson have never supported that feature, and Autotools was
deleted over 6 months ago and no-one complained yet, so it's pretty
obvious nobody cares about it.

Fixes: 95aefc94a9 ("Delete autotools")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Eric Engestrom
2019-10-10 16:26:52 +01:00
parent 2026ff5165
commit a0829cf23b
17 changed files with 2 additions and 2975 deletions
-9
View File
@@ -113,15 +113,6 @@ typedef struct {
print(' ;')
print('')
print('')
print("#ifdef USE_MGL_NAMESPACE")
for func in api.functionIterateByOffset():
for n in func.entry_points:
if (not func.is_static_entry_point(func.name)) or (func.has_different_protocol(n) and not func.is_static_entry_point(n)):
print('#define gl_dispatch_stub_%u mgl_dispatch_stub_%u' % (func.offset, func.offset))
break
print("#endif /* USE_MGL_NAMESPACE */")
print('')
print('')
print('#if defined(NEED_FUNCTION_POINTER) || defined(GLX_INDIRECT_RENDERING)')
for func in api.functionIterateByOffset():
for n in func.entry_points:
-5
View File
@@ -134,12 +134,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
print('# define HIDDEN(x)')
print('#endif')
print('')
print('# if defined(USE_MGL_NAMESPACE)')
print('# define GL_PREFIX(n) GLNAME(CONCAT(mgl,n))')
print('# define _glapi_Dispatch _mglapi_Dispatch')
print('# else')
print('# define GL_PREFIX(n) GLNAME(CONCAT(gl,n))')
print('# endif')
print('')
print('\t.text')
print('')
-9
View File
@@ -58,18 +58,9 @@ class PrintGenericStubs(gl_XML.gl_print_base):
print('#include "x86/assyntax.h"')
print('')
print('#if defined(STDCALL_API)')
print('# if defined(USE_MGL_NAMESPACE)')
print('# define GL_PREFIX(n,n2) GLNAME(CONCAT(mgl,n2))')
print('# else')
print('# define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n2))')
print('# endif')
print('#else')
print('# if defined(USE_MGL_NAMESPACE)')
print('# define GL_PREFIX(n,n2) GLNAME(CONCAT(mgl,n))')
print('# define _glapi_Dispatch _mglapi_Dispatch')
print('# else')
print('# define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n))')
print('# endif')
print('#endif')
print('')
print('#define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX))')
-10
View File
@@ -69,16 +69,6 @@ extern "C" {
#endif /* _GLAPI_NO_EXPORTS */
/* Is this needed? It is incomplete anyway. */
#ifdef USE_MGL_NAMESPACE
#define _glapi_set_dispatch _mglapi_set_dispatch
#define _glapi_get_dispatch _mglapi_get_dispatch
#define _glapi_set_context _mglapi_set_context
#define _glapi_get_context _mglapi_get_context
#define _glapi_Dispatch _mglapi_Dispatch
#define _glapi_Context _mglapi_Context
#endif
typedef void (*_glapi_proc)(void);
typedef void (*_glapi_nop_handler_proc)(const char *name);
-4
View File
@@ -51,11 +51,7 @@
#define KEYWORD2 GLAPIENTRY
#if defined(USE_MGL_NAMESPACE)
#define NAME(func) mgl##func
#else
#define NAME(func) gl##func
#endif
#if 0 /* Use this to log GL calls to stdout (for DEBUG only!) */
-5
View File
@@ -511,11 +511,6 @@ _glapi_get_proc_address(const char *funcName)
init_glapi_relocs_once();
#ifdef USE_MGL_NAMESPACE
if (funcName && funcName[0] == 'm')
funcName++;
#endif
if (!funcName || funcName[0] != 'g' || funcName[1] != 'l')
return NULL;