Don't output "decl" attribute into the wrapper declarations

This doesn't make any sense as "decl" is a SWIG type string and not a C
declaration.
This commit is contained in:
Vadim Zeitlin 2016-04-18 20:29:35 +02:00
commit 200ea0e37d

View file

@ -1320,7 +1320,7 @@ ready:
String* const ntype = nodeType(node);
if (Cmp(ntype, "cdecl") == 0) {
String* const var_decl = make_var_decl(node);
Printv(f_wrappers_types, cindent, Getattr(node, "decl"), var_decl, ";\n", NIL);
Printv(f_wrappers_types, cindent, var_decl, ";\n", NIL);
Delete(var_decl);
} else if (Cmp(ntype, "enum") == 0) {
emit_one(node);