projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct anchor underflow in case of error in parse_microsoft_extended_decl_modifier().
[cparser]
/
wrappergen
/
write_fluffy.c
diff --git
a/wrappergen/write_fluffy.c
b/wrappergen/write_fluffy.c
index
f1a4021
..
ddf940f
100644
(file)
--- a/
wrappergen/write_fluffy.c
+++ b/
wrappergen/write_fluffy.c
@@
-173,8
+173,6
@@
static void write_type(const type_t *type)
case TYPE_FUNCTION:
write_function_type(&type->function);
return;
case TYPE_FUNCTION:
write_function_type(&type->function);
return;
- case TYPE_INVALID:
- panic("invalid type found");
case TYPE_COMPLEX:
case TYPE_IMAGINARY:
default:
case TYPE_COMPLEX:
case TYPE_IMAGINARY:
default:
@@
-227,7
+225,7
@@
static void write_expression(const expression_t *expression)
case EXPR_LITERAL_INTEGER:
fprintf(out, "%s", expression->literal.value.begin);
break;
case EXPR_LITERAL_INTEGER:
fprintf(out, "%s", expression->literal.value.begin);
break;
- EXPR_UNARY_CASES
+ case EXPR_UNARY_CASES:
write_unary_expression((const unary_expression_t*) expression);
break;
default:
write_unary_expression((const unary_expression_t*) expression);
break;
default:
@@
-299,7
+297,7
@@
static void write_function(const entity_t *entity)
fprintf(out, ")");
const type_t *return_type = skip_typeref(function_type->return_type);
fprintf(out, ")");
const type_t *return_type = skip_typeref(function_type->return_type);
- if
(!is_type_atomic(return_type, ATOMIC_TYPE_VOID
)) {
+ if
(!is_type_void(return_type
)) {
fprintf(out, " : ");
write_type(return_type);
}
fprintf(out, " : ");
write_type(return_type);
}