projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce anchor scope.
[cparser]
/
type.c
diff --git
a/type.c
b/type.c
index
3c6bed6
..
a35aa44
100644
(file)
--- a/
type.c
+++ b/
type.c
@@
-933,9
+933,8
@@
bool is_type_arithmetic(const type_t *type)
*/
bool is_type_real(const type_t *type)
{
*/
bool is_type_real(const type_t *type)
{
- /* 6.2.5.17 */
- return is_type_integer(type)
- || (type->kind == TYPE_ATOMIC && is_type_float(type));
+ /* 6.2.5 (17) */
+ return is_type_integer(type) || is_type_float(type);
}
/**
}
/**
@@
-1026,6
+1025,9
@@
static bool function_types_compatible(const function_type_t *func1,
if (!types_compatible(ret1, ret2))
return false;
if (!types_compatible(ret1, ret2))
return false;
+ if (func1->calling_convention != func2->calling_convention)
+ return false;
+
/* can parameters be compared? */
if (func1->unspecified_parameters || func2->unspecified_parameters)
return true;
/* can parameters be compared? */
if (func1->unspecified_parameters || func2->unspecified_parameters)
return true;
@@
-1033,9
+1035,6
@@
static bool function_types_compatible(const function_type_t *func1,
if (func1->variadic != func2->variadic)
return false;
if (func1->variadic != func2->variadic)
return false;
- if (func1->calling_convention != func2->calling_convention)
- return false;
-
/* TODO: handling of unspecified parameters not correct yet */
/* all argument types must be compatible */
/* TODO: handling of unspecified parameters not correct yet */
/* all argument types must be compatible */