From d04e7777d3547de2cece0734c0b9be49d3ddb88c Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Mon, 25 Sep 2006 04:14:26 -0700 Subject: Ensure api_conv.pl is idempotent on names of constants: XCB_[A-Z0-9_]+. --- tools/api_conv.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/api_conv.pl b/tools/api_conv.pl index 7e26145..003a893 100755 --- a/tools/api_conv.pl +++ b/tools/api_conv.pl @@ -62,7 +62,7 @@ sub convert($$) return "uint$1_t" if /^CARD(8|16|32)$/; return "int$1_t" if /^INT(8|16|32)$/; return "uint8_t" if $_ eq 'BOOL' or $_ eq 'BYTE'; - return $_ if /^[A-Z]*_[A-Z_]*$/ or !/^XCB(.+)/; + return $_ if /^[A-Z0-9]*_[A-Z0-9_]*$/ or !/^XCB(.+)/; my $const = defined $::const{$_}; $_ = $1; -- cgit v1.2.3