mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
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:
parent
3967f5cf95
commit
51fbbb7c5c
2 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue