From 68c08aeeff7cedfaa7b1a92f7f20270128e830c5 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 2 May 2019 06:49:57 -0700 Subject: C99: get rid of useless inline instantiations. * hash.c, lib.c, parser.y, unwind.c: Remove useless declarations that were believed to be C99 inline instantiations. This was mistakenly added at the time the Solaris issue was discovered that _XOPEN_SOURCE values of 600 or greater require compiling in C99 mode. We use "static inline" under C99 for inline functions; instantiation is not applicable at all to inline functions that don't have external linkage. --- lib.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'lib.c') diff --git a/lib.c b/lib.c index 2446bf17..6ac23b46 100644 --- a/lib.c +++ b/lib.c @@ -131,27 +131,6 @@ val year_s, month_s, day_s, hour_s, min_s, sec_s, dst_s, gmtoff_s, zone_s; static val env_list; static val recycled_conses; -/* C99 inline instantiations. */ -#if __STDC_VERSION__ >= 199901L -loc mkloc_fun(val *ptr, val obj); -cnum tag(val obj); -int is_ptr(val obj); -int is_num(val obj); -int is_chr(val obj); -int is_lit(val obj); -type_t type(val obj); -val auto_str(const wchli_t *str); -val static_str(const wchli_t *str); -wchar_t *litptr(val obj); -val num_fast(cnum n); -mp_int *mp(val bign); -val chr(wchar_t ch); -val eq(val a, val b); -val null(val v); -int null_or_missing_p(val v); -val default_null_arg(val arg); -#endif - const seq_kind_t seq_kind_tab[MAXTYPE+1] = { SEQ_NIL, /* NIL */ SEQ_NOTSEQ, /* NUM */ -- cgit v1.2.3