ctrump_function_type Struct Reference

関数型 More...

#include <types.h>

Collaboration diagram for ctrump_function_type:

Collaboration graph
[legend]

Data Fields

int arg_num
int has_unspecified_arg
struct ctrump_texprret
struct ctrump_texpr ** args

Detailed Description

関数型

可変引数をとる場合は、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.


Field Documentation

固定引数の数

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().

戻り値の型

Definition at line 358 of file types.h.

Referenced by ctrump_get_functype_end(), print_texpr_abstract_declarator(), and print_texpr_spec().

固定引数の型

Definition at line 359 of file types.h.

Referenced by ctrump_get_functype_end(), and print_texpr_abstract_declarator().


The documentation for this struct was generated from the following file:

Generated on Tue Mar 31 20:19:26 2009 for ctrump by  doxygen 1.5.6