From d93791ef6ea04f6ab5bce29aacff74e75b4035a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 20 Apr 2012 07:15:38 +0100 Subject: [PATCH] Minor tweaks to the spec. --- specs/d3d9.py | 2 +- specs/eglapi.py | 4 ++-- specs/winapi.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/d3d9.py b/specs/d3d9.py index 293be90..40f7db1 100644 --- a/specs/d3d9.py +++ b/specs/d3d9.py @@ -30,7 +30,7 @@ from d3d9types import * from d3d9caps import * -D3DSHADER9 = Opaque("const DWORD *") +D3DSHADER9 = OpaquePointer(Const(DWORD)) D3DSPD = Flags(DWORD, [ "D3DSPD_IUNKNOWN", diff --git a/specs/eglapi.py b/specs/eglapi.py index 9790625..d1ba647 100644 --- a/specs/eglapi.py +++ b/specs/eglapi.py @@ -293,7 +293,7 @@ eglapi = API("EGL") EGLAttribList = Array(Const(EGLattrib), "_AttribPairList_size(attrib_list, EGL_NONE)") -PROC = Opaque("__eglMustCastToProperFunctionPointerType") +EGLProc = Opaque("__eglMustCastToProperFunctionPointerType") def GlFunction(*args, **kwargs): kwargs.setdefault('call', 'GL_APIENTRY') @@ -349,7 +349,7 @@ eglapi.addFunctions([ Function(EGLBoolean, "eglSwapBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface")]), Function(EGLBoolean, "eglCopyBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLNativePixmapType, "target")]), - Function(PROC, "eglGetProcAddress", [(Const(CString), "procname")]), + Function(EGLProc, "eglGetProcAddress", [(Const(CString), "procname")]), # EGL_KHR_lock_surface Function(EGLBoolean, "eglLockSurfaceKHR", [(EGLDisplay, "display"), (EGLSurface, "surface"), (EGLAttribList, "attrib_list")]), diff --git a/specs/winapi.py b/specs/winapi.py index 1638f6d..409054d 100644 --- a/specs/winapi.py +++ b/specs/winapi.py @@ -75,7 +75,7 @@ LARGE_INTEGER = Struct("LARGE_INTEGER", [ SIZE_T = Alias("SIZE_T", SizeT) VOID = Void -PVOID = Opaque("PVOID") +PVOID = OpaquePointer(VOID) LPVOID = PVOID def DECLARE_HANDLE(expr): -- 2.43.0