summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-07-22 07:28:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-07-22 07:28:09 -0700
commitbf36536c9fa398161b24668ad1c29f12f86556e8 (patch)
tree04b6d6632d97c12728ee052c99d8a2a8eb34a14c /hash.c
parentf2d83d19a09f68864209cc1568a59be70a7bfdbc (diff)
downloadtxr-bf36536c9fa398161b24668ad1c29f12f86556e8.tar.gz
txr-bf36536c9fa398161b24668ad1c29f12f86556e8.tar.bz2
txr-bf36536c9fa398161b24668ad1c29f12f86556e8.zip
* configure: Add a check, in the case that we cannot make an
executable, whether this is due to being required to use C99. For instance, the Solaris environment requires compilation using the C99 dialect if _XOPEN_SOURCE is set to 600 or higher. * debug.c: When compiling as C99, we have to obey the special C99 conventions for instantiating inline functions. * hash.c: Likewise. * lib.c: Likewise. * parser.y: Likewise. * unwind.c: Likewise.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 92a05191..2cc7acf4 100644
--- a/hash.c
+++ b/hash.c
@@ -73,6 +73,11 @@ val weak_keys_k, weak_vals_k, equal_based_k;
*/
static struct hash *reachable_weak_hashes;
+/* C99 inline instantiations. */
+#if __STDC_VERSION__ >= 199901L
+loc gethash_l(val hash, val key, loc new_p);
+#endif
+
/*
* This is is an adaptation of hashpjw, from Compilers: Principles, Techniques
* and Tools, Aho, Sethi, Ulman, 1988. P. 436. The register is wider by