improved representation of method types
authorMatthias Braun <matze@braunis.de>
Fri, 7 Sep 2007 10:39:02 +0000 (10:39 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 7 Sep 2007 10:39:02 +0000 (10:39 +0000)
[r18340]

type.c
type_t.h

diff --git a/type.c b/type.c
index 9d9c36f..d892130 100644 (file)
--- a/type.c
+++ b/type.c
@@ -70,9 +70,6 @@ void print_method_type(FILE *out, const method_type_t *type)
        print_type(out, type->result_type);
        fputs(" ", out);
 
-       if(type->abi_style != NULL) {
-               fprintf(out, "\"%s\" ", type->abi_style);
-       }
        fputs("method(", out);
        method_parameter_type_t *param_type = type->parameter_types;
        int first = 1;
index 62a6443..64d5c5c 100644 (file)
--- a/type_t.h
+++ b/type_t.h
@@ -86,6 +86,7 @@ struct pointer_type_t {
 
 struct method_parameter_type_t {
        type_t                  *type;
+       symbol_t                *symbol;
        method_parameter_type_t *next;
 };
 
@@ -93,7 +94,8 @@ struct method_type_t {
        type_t                   type;
        type_t                  *result_type;
        method_parameter_type_t *parameter_types;
-       const char              *abi_style;
+       int                      variadic;
+       int                      unspecified_parameters;
 };
 
 struct compound_type_t {