summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-10-10 16:26:52 +0100
committerEric Engestrom <[email protected]>2019-10-10 21:40:48 +0100
commita0829cf23b307ca44ab8c4505974fb7c8d71a35a (patch)
treec1ae541c091693b03ed4555ca7a850326675c775 /src/mapi
parent2026ff5165ad0da1ff7680fdb579702d31097a6a (diff)
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: 95aefc94a941701616fd ("Delete autotools") Signed-off-by: Eric Engestrom <[email protected]> Acked-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/gl_procs.py9
-rw-r--r--src/mapi/glapi/gen/gl_x86-64_asm.py5
-rw-r--r--src/mapi/glapi/gen/gl_x86_asm.py9
-rw-r--r--src/mapi/glapi/glapi.h10
-rw-r--r--src/mapi/glapi/glapi_dispatch.c4
-rw-r--r--src/mapi/glapi/glapi_getproc.c5
-rw-r--r--src/mapi/mapi_abi.py5
-rw-r--r--src/mapi/mapi_glapi.c5
8 files changed, 0 insertions, 52 deletions
diff --git a/src/mapi/glapi/gen/gl_procs.py b/src/mapi/glapi/gen/gl_procs.py
index 4bd33216106..6a950493854 100644
--- a/src/mapi/glapi/gen/gl_procs.py
+++ b/src/mapi/glapi/gen/gl_procs.py
@@ -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:
diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py
index f51f513c5ed..b4149a5f220 100644
--- a/src/mapi/glapi/gen/gl_x86-64_asm.py
+++ b/src/mapi/glapi/gen/gl_x86-64_asm.py
@@ -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('')
diff --git a/src/mapi/glapi/gen/gl_x86_asm.py b/src/mapi/glapi/gen/gl_x86_asm.py
index f373d15db4a..3d262cf5783 100644
--- a/src/mapi/glapi/gen/gl_x86_asm.py
+++ b/src/mapi/glapi/gen/gl_x86_asm.py
@@ -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))')
diff --git a/src/mapi/glapi/glapi.h b/src/mapi/glapi/glapi.h
index d1082746272..b11fe46107b 100644
--- a/src/mapi/glapi/glapi.h
+++ b/src/mapi/glapi/glapi.h
@@ -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);
diff --git a/src/mapi/glapi/glapi_dispatch.c b/src/mapi/glapi/glapi_dispatch.c
index 96fd0d6a285..fa59705fbe4 100644
--- a/src/mapi/glapi/glapi_dispatch.c
+++ b/src/mapi/glapi/glapi_dispatch.c
@@ -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!) */
diff --git a/src/mapi/glapi/glapi_getproc.c b/src/mapi/glapi/glapi_getproc.c
index d3fd3f82dcd..df8b4fa25a3 100644
--- a/src/mapi/glapi/glapi_getproc.c
+++ b/src/mapi/glapi/glapi_getproc.c
@@ -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;
diff --git a/src/mapi/mapi_abi.py b/src/mapi/mapi_abi.py
index 8b436638d2b..fd67ba68ef9 100644
--- a/src/mapi/mapi_abi.py
+++ b/src/mapi/mapi_abi.py
@@ -603,13 +603,8 @@ class GLAPIPrinter(ABIPrinter):
def _get_c_header(self):
header = """#ifndef _GLAPI_TMP_H_
#define _GLAPI_TMP_H_
-#ifdef USE_MGL_NAMESPACE
-#define GLAPI_PREFIX(func) mgl##func
-#define GLAPI_PREFIX_STR(func) "mgl"#func
-#else
#define GLAPI_PREFIX(func) gl##func
#define GLAPI_PREFIX_STR(func) "gl"#func
-#endif /* USE_MGL_NAMESPACE */
typedef int GLclampx;
#endif /* _GLAPI_TMP_H_ */"""
diff --git a/src/mapi/mapi_glapi.c b/src/mapi/mapi_glapi.c
index f25c81a4ae6..1cee148c891 100644
--- a/src/mapi/mapi_glapi.c
+++ b/src/mapi/mapi_glapi.c
@@ -174,11 +174,6 @@ _glapi_get_stub(const char *name, int generate)
{
const struct mapi_stub *stub;
-#ifdef USE_MGL_NAMESPACE
- if (name && name[0] == 'm')
- name++;
-#endif
-
if (!name || name[0] != 'g' || name[1] != 'l')
return NULL;
name += 2;