[Xcb-commit] tools
Jamey Sharp
jamey at kemper.freedesktop.org
Sun Oct 15 12:34:50 PDT 2006
tools/api_conv.pl | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree 9d619d14e347b9dd1d544627060023a4bca2452b (from 5ec55dc9c0c51137d89dd870ede05cc3268f75ae)
Author: Jamey Sharp <jamey at minilop.net>
Date: Sun Oct 15 12:34:30 2006 -0700
Match only XCB-namespaced XID generators when converting to xcb_generate_id.
Thanks to Vincent Torri for pointing out that I screwed up. :-)
diff --git a/tools/api_conv.pl b/tools/api_conv.pl
index 83fd82d..5b3c18d 100755
--- 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';
@@ -95,4 +96,3 @@ sub convert($$)
s/^(\s*#\s*include\s*<)X11\/XCB\//$1xcb\//;
s/([_A-Za-z][_A-Za-z0-9]*)([ \t]*\()?/convert($1, defined $2) . ($2 or "")/eg;
-s/xcb_[a-z0-9_]*_new/xcb_generate_id/g;
More information about the xcb-commit
mailing list