projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update libfirm submodule reference
[cparser]
/
wrappergen
/
write_jna.c
diff --git
a/wrappergen/write_jna.c
b/wrappergen/write_jna.c
index
6387217
..
1739481
100644
(file)
--- a/
wrappergen/write_jna.c
+++ b/
wrappergen/write_jna.c
@@
-44,8
+44,6
@@
static pset_new_t avoid_symbols;
static output_limit *output_limits;
static const char *libname;
static output_limit *output_limits;
static const char *libname;
-static void write_type(type_t *type);
-
static bool is_system_header(const char *fname)
{
if (strncmp(fname, "/usr/include", 12) == 0)
static bool is_system_header(const char *fname)
{
if (strncmp(fname, "/usr/include", 12) == 0)
@@
-225,12
+223,10
@@
static void write_type(type_t *type)
write_enum_type(&type->enumt);
return;
case TYPE_ERROR:
write_enum_type(&type->enumt);
return;
case TYPE_ERROR:
- case TYPE_INVALID:
case TYPE_TYPEOF:
case TYPE_TYPEDEF:
panic("invalid type found");
case TYPE_ARRAY:
case TYPE_TYPEOF:
case TYPE_TYPEDEF:
panic("invalid type found");
case TYPE_ARRAY:
- case TYPE_BITFIELD:
case TYPE_REFERENCE:
case TYPE_FUNCTION:
case TYPE_COMPLEX:
case TYPE_REFERENCE:
case TYPE_FUNCTION:
case TYPE_COMPLEX:
@@
-274,7
+270,7
@@
static void write_unary_expression(const unary_expression_t *expression)
case EXPR_UNARY_NOT:
fputc('!', out);
break;
case EXPR_UNARY_NOT:
fputc('!', out);
break;
- case EXPR_UNARY_CAST
_IMPLICIT
:
+ case EXPR_UNARY_CAST:
write_expression(expression->value);
return;
default:
write_expression(expression->value);
return;
default: