projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for building with Python 3
[free-sw/xcb/libxcb]
/
tools
/
api_conv.pl
diff --git
a/tools/api_conv.pl
b/tools/api_conv.pl
index
003a893
..
5b3c18d
100755
(executable)
--- a/
tools/api_conv.pl
+++ b/
tools/api_conv.pl
@@
-59,6
+59,7
@@
sub convert($$)
local $_ = shift;
my ($fun) = @_;
+ return "xcb_generate_id" if /^xcb_[a-z0-9_]+_new$/ or /^XCB[A-Z0-9]+New$/;
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';