summaryrefslogtreecommitdiffstats
path: root/debug.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 /debug.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 'debug.c')
-rw-r--r--debug.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 42464113..0e928183 100644
--- a/debug.c
+++ b/debug.c
@@ -52,6 +52,13 @@ static val breakpoints;
static val last_command;
static int cols = 80;
+/* C99 inline instantiations. */
+#if __STDC_VERSION__ >= 199901L
+val debug_check(val form, val bindings, val data, val line,
+ val pos, val base);
+void debug_init(void);
+#endif
+
static void help(val stream)
{
put_string(lit("commands:\n"