diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-05-02 06:49:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-05-02 06:49:57 -0700 |
commit | 68c08aeeff7cedfaa7b1a92f7f20270128e830c5 (patch) | |
tree | 14c441022a18b92e8636cc33761f5288da90a02c /lib.c | |
parent | 065dde19dfbe50e91e313e5b3ccc033cfbe47f74 (diff) | |
download | txr-68c08aeeff7cedfaa7b1a92f7f20270128e830c5.tar.gz txr-68c08aeeff7cedfaa7b1a92f7f20270128e830c5.tar.bz2 txr-68c08aeeff7cedfaa7b1a92f7f20270128e830c5.zip |
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.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -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 */ |