projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0bccf7d
)
Ensure api_conv.pl is idempotent on names of constants: XCB_[A-Z0-9_]+.
author
Jamey Sharp
<jamey@minilop.net>
Mon, 25 Sep 2006 11:14:26 +0000
(
04:14
-0700)
committer
Jamey Sharp
<jamey@minilop.net>
Mon, 25 Sep 2006 11:19:25 +0000
(
04:19
-0700)
tools/api_conv.pl
patch
|
blob
|
history
diff --git
a/tools/api_conv.pl
b/tools/api_conv.pl
index
7e26145
..
003a893
100755
(executable)
--- 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-Z
0-9]*_[A-Z0-9
_]*$/ or !/^XCB(.+)/;
my $const = defined $::const{$_};
$_ = $1;