#include <stdint.h>
#include <stdlib.h>
-#include "data/file-name.h"
#include "data/settings.h"
#include "language/command.h"
#include "language/lexer/lexer.h"
"it\nunder certain conditions; type \"show copying.\" to see the "
"conditions.\nThere is ABSOLUTELY NO WARRANTY for PSPP; type \"show "
"warranty.\" for details.\n", stdout);
- puts (stat_version);
- journal_enable ();
+ puts (version);
+ journal_init ();
}
static struct terminal_reader *
return UP_CAST (r, struct terminal_reader, reader);
}
+
/* Older libreadline versions do not provide rl_outstream.
However, it is almost always going to be the same as stdout. */
#if ! HAVE_RL_OUTSTREAM
# define rl_outstream stdout
#endif
+
+#if HAVE_READLINE
/* Similarly, rl_echo_signal_char is fairly recent.
We provide our own crude version if it is not present. */
#if ! HAVE_RL_ECHO_SIGNAL_CHAR
fflush (rl_outstream);
}
#endif
+#endif
static size_t
static int pfd[2];
static bool sigint_received ;
-static void
-handler (int sig)
-{
- rl_end = 0;
-
- write (pfd[1], "x", 1);
- rl_echo_signal_char (sig);
-}
-
/*
A function similar to getc from stdio.
#if HAVE_READLINE
+static void
+handler (int sig)
+{
+ rl_end = 0;
+
+ write (pfd[1], "x", 1);
+ rl_echo_signal_char (sig);
+}
+
+
static void
readline_init (void)
{