X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_t.h;h=efc97b650a2c755a51150cda9238ab4c2608f523;hb=087130404a59dcdd95aa0d7ac7feec2793e9ce87;hp=eb072e6086f48c2ab6e2916754d96415bb97ea4b;hpb=2f487005db774b00459937cc8e2aec5d381557cd;p=cparser diff --git a/type_t.h b/type_t.h index eb072e6..efc97b6 100644 --- a/type_t.h +++ b/type_t.h @@ -19,7 +19,7 @@ typedef enum { TYPE_COMPOUND_STRUCT, TYPE_COMPOUND_UNION, TYPE_ENUM, - TYPE_METHOD, + TYPE_FUNCTION, TYPE_POINTER, TYPE_ARRAY, TYPE_BUILTIN, @@ -95,17 +95,17 @@ struct array_type_t { expression_t *size; }; -struct method_parameter_t { - type_t *type; - method_parameter_t *next; +struct function_parameter_t { + type_t *type; + function_parameter_t *next; }; -struct method_type_t { - type_t type; - type_t *result_type; - method_parameter_t *parameters; - bool variadic; - bool unspecified_parameters; +struct function_type_t { + type_t type; + type_t *result_type; + function_parameter_t *parameters; + bool variadic; + bool unspecified_parameters; }; struct compound_type_t {