]> git.cworth.org Git - fips/commitdiff
Add some *wrap_ prefixes to real_foo symbols.
authorCarl Worth <cworth@cworth.org>
Thu, 30 May 2013 21:32:52 +0000 (14:32 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 30 May 2013 21:32:52 +0000 (14:32 -0700)
The intent here is to allow automated extraction of wrapper names by
grepping for symbols matching *wrap_real_<wrapper>.

eglwrap.c
glxwrap.c

index aaa8cb7815cf3d6bb3ecfb50d144d3e45e4c5754..00a8284b1352de7951f6999f40067466cb20b3f7 100644 (file)
--- a/eglwrap.c
+++ b/eglwrap.c
@@ -48,12 +48,12 @@ EGLBoolean
 eglSwapBuffers (EGLDisplay dpy, EGLSurface surface)
 {
        EGLBoolean ret;
-       static typeof(&eglSwapBuffers) real_eglSwapBuffers;
+       static typeof(&eglSwapBuffers) eglwrap_real_eglSwapBuffers;
 
-       if (! real_eglSwapBuffers)
-               real_eglSwapBuffers = eglwrap_lookup ("eglSwapBuffers");
+       if (! eglwrap_real_eglSwapBuffers)
+               eglwrap_real_eglSwapBuffers = eglwrap_lookup ("eglSwapBuffers");
 
-       ret = real_eglSwapBuffers (dpy, surface);
+       ret = eglwrap_real_eglSwapBuffers (dpy, surface);
 
        metrics_end_frame ();
 
index d7670a79a28a1e3bf90bc3b6cc8b53d08bb1f486..18ec3c107ccfad427ce4f694fb798c46bd441ae7 100644 (file)
--- a/glxwrap.c
+++ b/glxwrap.c
@@ -43,12 +43,12 @@ __GLXextFuncPtr
 glXGetProcAddressARB (const GLubyte *func)
 {
        __GLXextFuncPtr ptr;
-       static fips_glXGetProcAddressARB_t real_glXGetProcAddressARB = NULL;
+       static fips_glXGetProcAddressARB_t glxwrap_real_glXGetProcAddressARB = NULL;
        char *name = "glXGetProcAddressARB";
 
-       if (! real_glXGetProcAddressARB) {
-               real_glXGetProcAddressARB = glwrap_lookup (name);
-               if (! real_glXGetProcAddressARB) {
+       if (! glxwrap_real_glXGetProcAddressARB) {
+               glxwrap_real_glXGetProcAddressARB = glwrap_lookup (name);
+               if (! glxwrap_real_glXGetProcAddressARB) {
                        fprintf (stderr, "Error: Failed to find function %s.\n",
                                 name);
                        return NULL;
@@ -61,5 +61,5 @@ glXGetProcAddressARB (const GLubyte *func)
                return ptr;
 
        /* Otherwise, just defer to the real glXGetProcAddressARB. */
-       return real_glXGetProcAddressARB (func);
+       return glxwrap_real_glXGetProcAddressARB (func);
 }