harec

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

commit c4ee127494e743009411191808690734ebe4e0e7
parent 7d5d7be1a165d491d7e03091e929d6c66bf0d3d1
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Tue,  9 Feb 2021 13:18:18 -0500

types.h: remove type_storage_is_signed

Diffstat:
Minclude/types.h | 1-
Msrc/typedef.c | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/types.h b/include/types.h @@ -150,7 +150,6 @@ const struct type *tagged_select_subtype( bool tagged_subset_compat(const struct type *to, const struct type *from); const char *type_storage_unparse(enum type_storage storage); -bool type_storage_is_signed(enum type_storage storage); bool type_is_signed(const struct type *type); bool type_is_integer(const struct type *type); bool type_is_numeric(const struct type *type); diff --git a/src/typedef.c b/src/typedef.c @@ -236,7 +236,7 @@ emit_type(const struct type *type, FILE *out) for (const struct type_enum_value *ev = type->_enum.values; ev; ev = ev->next) { fprintf(out, "%s = ", ev->name); - if (type_storage_is_signed(type->_enum.storage)) { + if (type_is_signed(type)) { fprintf(out, "%zu%s", ev->ival, storage_to_suffix(type->_enum.storage)); } else {