02111-1307, USA. */
#include <config.h>
+#include "getline.h"
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include "alloc.h"
#include "error.h"
#include "filename.h"
-#include "getline.h"
#include "lexer.h"
+#include "repeat.h"
#include "settings.h"
#include "str.h"
#include "tab.h"
void
getl_uninitialize (void)
{
-#if HAVE_LIBHISTORY && unix
+#if HAVE_LIBHISTORY && defined (unix)
if (history_file)
write_history (history_file);
#endif
}
/* Display a welcoming message. */
-void
+static void
welcome (void)
{
getl_welcomed = 1;
- fputs ("PSPP is free software and you are welcome to distribute copies of"
+ fputs ("PSPP is free software and you are welcome to distribute copies of "
"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);
#if HAVE_LIBHISTORY
if (!history_file)
{
-#if unix
+#ifdef unix
history_file = tilde_expand (HISTORY_FILE);
#endif
using_history ();