From 3c52a756339a2d96824d21a7d3ad5de7fc1085a0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 27 Mar 2025 17:26:51 -0400 Subject: Deprecate custom printf specifiers in favor of print() function that uses _Generic() to generically convert any value to a string or print as a string. --- src/types.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index 780c4d5c..eec3fac2 100644 --- a/src/types.h +++ b/src/types.h @@ -2,11 +2,9 @@ // Logic for defining and working with types -#include #include #include "ast.h" -#include "stdlib/arrays.h" typedef struct type_s type_t; @@ -135,9 +133,8 @@ struct type_s { #define INT_TYPE Type(BigIntType) #define NUM_TYPE Type(NumType, .bits=TYPE_NBITS64) -int printf_pointer_size(const struct printf_info *info, size_t n, int argtypes[n], int size[n]); -int printf_type(FILE *stream, const struct printf_info *info, const void *const args[]); CORD type_to_cord(type_t *t); +const char *type_to_str(type_t *t); const char *get_type_name(type_t *t); PUREFUNC bool type_eq(type_t *a, type_t *b); PUREFUNC bool type_is_a(type_t *t, type_t *req); -- cgit v1.2.3