Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
43c7a3c7
Commit
43c7a3c7
authored
May 25, 2016
by
Christoph Mallon
Browse files
Avoid 'bool' in public headers.
parent
373207f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/typerep.h
View file @
43c7a3c7
...
...
@@ -11,7 +11,6 @@
#define FIRM_TYPEREP_H
#include
<stddef.h>
#include
<stdbool.h>
#include
"firm_types.h"
...
...
@@ -1250,7 +1249,7 @@ FIRM_API int is_Union_type(const ir_type *uni);
* The arrays for the parameter and result types are not initialized by
* the constructor.
*/
FIRM_API
ir_type
*
new_type_method
(
size_t
n_param
,
size_t
n_res
,
bool
is_variadic
);
FIRM_API
ir_type
*
new_type_method
(
size_t
n_param
,
size_t
n_res
,
int
is_variadic
);
/** Returns the number of parameters of this method. */
FIRM_API
size_t
get_method_n_params
(
const
ir_type
*
method
);
...
...
ir/tr/type.c
View file @
43c7a3c7
...
...
@@ -559,7 +559,7 @@ int (is_Struct_type)(const ir_type *strct)
return
is_struct_type_
(
strct
);
}
ir_type
*
new_type_method
(
size_t
const
n_param
,
size_t
const
n_res
,
bool
const
is_variadic
)
ir_type
*
new_type_method
(
size_t
const
n_param
,
size_t
const
n_res
,
int
const
is_variadic
)
{
ir_type
*
res
=
new_type
(
tpo_method
,
sizeof
(
method_attr
),
mode_P
);
res
->
flags
|=
tf_layout_fixed
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment