qc-parse.y:

allow complex types for function return values
type.c:
	fix a missing break and an unneeded printout
This commit is contained in:
Bill Currie 2002-05-22 16:29:24 +00:00
parent 3967f5cf95
commit 51fbbb7c5c
2 changed files with 3 additions and 2 deletions

View file

@ -246,7 +246,7 @@ enum
type
: '.' type { $$ = build_type (1, $2); }
| type array_decl { $$ = build_type (0, build_array_type ($1, $2)); }
| type_name function_decl
| type function_decl
{
current_params = $2;
$$ = build_type (0, parse_params ($1, $2));

View file

@ -242,10 +242,11 @@ print_type (type_t *type)
case ev_object:
case ev_class:
class = type->class;
printf (" %s %s%s", pr_type_name[type->type],
printf (" %s%s",
class->class_name,
class->category_name ? va (" (%s)", class->category_name)
: "");
break;
default:
printf(" %s", pr_type_name[type->type]);
break;