generator: _c_accessor_get_length: remove buggy special case
[free-sw/xcb/libxcb] / tools / api_conv.pl
index 003a893..5b3c18d 100755 (executable)
@@ -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';