harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 22af770020c541fa2643e477614d4e772ccc91c5
parent ae709dc2223ef728c99e17c7e926b9b3968dbabd
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Fri,  8 Apr 2022 02:49:19 +0200

drop unused parameter in type_store_lookup_alias

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>

Diffstat:
Minclude/type_store.h | 2+-
Msrc/check.c | 4++--
Msrc/type_store.c | 4++--
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/type_store.h b/include/type_store.h @@ -46,7 +46,7 @@ const struct type *type_store_lookup_slice(struct type_store *store, const struct type *members); const struct type *type_store_lookup_alias(struct type_store *store, - const struct type *secondary, bool exported); + const struct type *secondary); const struct type *type_store_lookup_tagged(struct type_store *store, struct type_tagged_union *tags); diff --git a/src/check.c b/src/check.c @@ -3058,7 +3058,7 @@ check_type(struct context *ctx, .flags = type->flags, }; const struct type *alias = - type_store_lookup_alias(ctx->store, &_alias, true); + type_store_lookup_alias(ctx->store, &_alias); decl->_type = alias; return decl; } @@ -3434,7 +3434,7 @@ scan_type(struct context *ctx, struct ast_type_decl *decl, bool exported, .flags = decl->type->flags, }; - const struct type *alias = type_store_lookup_alias(ctx->store, &_alias, true); + const struct type *alias = type_store_lookup_alias(ctx->store, &_alias); const struct scope_object *ret = scope_insert(ctx->scope, O_TYPE, &ident, &decl->ident, alias, NULL); ((struct type *)ret->type)->alias.type = diff --git a/src/type_store.c b/src/type_store.c @@ -917,7 +917,7 @@ type_store_lookup_type(struct type_store *store, const struct type *type) const struct scope_object *obj = scope_lookup( store->check_context->scope, &type->alias.name); psuedotype.flags |= obj->type->flags; - return type_store_lookup_alias(store, &psuedotype, true); + return type_store_lookup_alias(store, &psuedotype); } static struct dimensions @@ -1028,7 +1028,7 @@ type_store_lookup_slice(struct type_store *store, const struct type *members) } const struct type * -type_store_lookup_alias(struct type_store *store, const struct type *type, bool exported) +type_store_lookup_alias(struct type_store *store, const struct type *type) { struct type tmp = *type; const struct type *ret = NULL;