#include <types.h>
Data Fields | |
int | arg_num |
int | has_unspecified_arg |
struct ctrump_texpr * | ret |
struct ctrump_texpr ** | args |
可変引数をとる場合は、has_unspecified_argが1になる 関数原型が無い場合は、固定引数の数0、可変引数をとるものとして扱う
int func(int a, int b) -> argnum = 2, has_unspecified_arg = false int func(int a, ...) -> argnum = 1, has_unspecified_arg = true int func(int a) -> argnum = 1, has_unspecified_arg = false int func(void) -> argnum = 0, has_unspecified_arg = false int func() -> argnum = 0, has_unspecified_arg = true
Definition at line 355 of file types.h.
固定引数の数
Definition at line 356 of file types.h.
Referenced by ctrump_get_functype_end(), and print_texpr_abstract_declarator().
可変引数をとるかどうか
Definition at line 357 of file types.h.
Referenced by ctrump_get_functype_end(), and print_texpr_abstract_declarator().
struct ctrump_texpr* ctrump_function_type::ret [read] |
戻り値の型
Definition at line 358 of file types.h.
Referenced by ctrump_get_functype_end(), print_texpr_abstract_declarator(), and print_texpr_spec().
struct ctrump_texpr** ctrump_function_type::args [read] |
固定引数の型
Definition at line 359 of file types.h.
Referenced by ctrump_get_functype_end(), and print_texpr_abstract_declarator().