From 7d3c9e53771382087f993eb7dbf2bbea234bbaba Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Thu, 20 Oct 2022 19:31:45 -0700 Subject: [PATCH] Handle expanded tokens Extensions, especially EGL, now have tokens like: EGL_TIMESTAMP_PENDING_ANDROID EGL_CAST(EGLnsecsANDROID,-2) EGL_COLORSPACE_sRGB 0x3089 EGL_NO_NATIVE_FENCE_FD_ANDROID -1 --- auto/bin/make.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/bin/make.pl b/auto/bin/make.pl index e0b32eff..f87fbb70 100755 --- a/auto/bin/make.pl +++ b/auto/bin/make.pl @@ -11,7 +11,7 @@ extname => qr/^[A-Z][A-Za-z0-9_]+$/, exturl => qr/^http.+$/, function => qr/^(.+) ([a-z][a-z0-9_]*) \((.*)\)$/i, - token => qr/^([A-Z][A-Z0-9_x]*)\s+((?:0x)?[0-9A-Fa-f]+(u(ll)?)?|[A-Z][A-Z0-9_]*)$/, + token => qr/^([A-Z][A-Za-z0-9_x]*)\s+((?:0x|-)?[0-9A-Fa-f]+(u(ll)?)?|[A-Z][A-Za-z0-9(),_-]*)$/, type => qr/^typedef\s+(.+)$/, exact => qr/.*;$/, );