From 1bc1d49abd84dd2590e5528ef0642553982167c5 Mon Sep 17 00:00:00 2001 From: ikits Date: Fri, 2 Mar 2007 04:40:31 +0000 Subject: [PATCH] improved formatting of exacts git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@479 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/bin/make.pl | 6 ++++-- auto/core/GLX_VERSION_1_3 | 4 ++-- auto/core/WGL_NV_gpu_affinity | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/auto/bin/make.pl b/auto/bin/make.pl index 9c9e97d..8895fd0 100755 --- a/auto/bin/make.pl +++ b/auto/bin/make.pl @@ -35,7 +35,9 @@ sub prefix_varname($) sub make_exact($) { - return "$_[0]" + my $exact = $_[0]; + $exact =~ s/(; |{)/$1\n/g; + return $exact; } sub make_separator($) @@ -90,7 +92,7 @@ sub parse_ext($) { if (/$regex{exact}/) { - push @exacts, $_; + push @exacts, $_; } elsif (/$regex{type}/) { diff --git a/auto/core/GLX_VERSION_1_3 b/auto/core/GLX_VERSION_1_3 index dc69fb8..66fa5f5 100644 --- a/auto/core/GLX_VERSION_1_3 +++ b/auto/core/GLX_VERSION_1_3 @@ -76,5 +76,5 @@ GLX_VERSION_1_3 typedef XID GLXPbuffer typedef XID GLXFBConfigID typedef struct __GLXFBConfigRec *GLXFBConfig - typedef struct { int event_type; int draw_type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; unsigned int buffer_mask; unsigned int aux_buffer; int x, y; int width, height; int count; } GLXPbufferClobberEvent - typedef union __GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; long pad[24]; } GLXEvent + typedef struct { int event_type; int draw_type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; unsigned int buffer_mask; unsigned int aux_buffer; int x, y; int width, height; int count; } GLXPbufferClobberEvent; + typedef union __GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; long pad[24]; } GLXEvent; diff --git a/auto/core/WGL_NV_gpu_affinity b/auto/core/WGL_NV_gpu_affinity index 4920946..bda9c68 100644 --- a/auto/core/WGL_NV_gpu_affinity +++ b/auto/core/WGL_NV_gpu_affinity @@ -2,10 +2,10 @@ WGL_NV_gpu_affinity http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 - BOOL wglEnumGpusNV (UINT iGpuIndex,HGPUNV *phGpu) + BOOL wglEnumGpusNV (UINT iGpuIndex, HGPUNV *phGpu) BOOL wglEnumGpuDevicesNV (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice) HDC wglCreateAffinityDCNV (const HGPUNV *phGpuList) - BOOL wglEnumGpusFromAffinityDCNV(HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu) + BOOL wglEnumGpusFromAffinityDCNV (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu) BOOL wglDeleteDCNV (HDC hdc) DECLARE_HANDLE(HGPUNV); - typedef struct _GPU_DEVICE { DWORD cb; CHAR DeviceName[32]; CHAR DeviceString[128]; DWORD Flags; RECT rcVirtualScreen; } GPU_DEVICE, *PGPU_DEVICE; + typedef struct _GPU_DEVICE { DWORD cb; CHAR DeviceName[32]; CHAR DeviceString[128]; DWORD Flags; RECT rcVirtualScreen; } GPU_DEVICE, *PGPU_DEVICE;