#include "constants.h"
#include "utils.h"
-#ifndef DPH
-#define PARSER_VERSION "0.26"
-#else
-#define PARSER_VERSION "0.26 -- for Data Parallel Haskell"
-#endif
+#define PARSER_VERSION "0.27"
tree root; /* The root of the built syntax tree. */
list Lnil;
version 0.
*/
int minAcceptablePragmaVersion = 5; /* 0.26 or greater ONLY */
-int maxAcceptablePragmaVersion = 5; /* 0.26+ */
+int maxAcceptablePragmaVersion = 6; /* 0.28+ */
int thisIfacePragmaVersion = 0;
-char *input_file_dir; /* The directory where the input file is. */
+static char *input_file_dir; /* The directory where the input file is. */
char HiSuffix[64] = ".hi"; /* can be changed with -h flag */
char PreludeHiSuffix[64] = ".hi"; /* can be changed with -g flag */
-BOOLEAN ExplicitHiSuffixGiven = 0;
+/* OLD 95/08: BOOLEAN ExplicitHiSuffixGiven = 0; */
static BOOLEAN verbose = FALSE; /* Set for verbose messages. */
+/* Forward decls */
+static void who_am_i PROTO((void));
+
/**********************************************************************
* *
* *
case 'h':
strcpy(HiSuffix, *argv+1);
- ExplicitHiSuffixGiven = 1;
+/*OLD 95/08: ExplicitHiSuffixGiven = 1; */
keep_munging_option = FALSE;
break;
exit(1);
}
-void
-who_am_i()
+static void
+who_am_i(void)
{
fprintf(stderr,"Glasgow Haskell parser, version %s\n", PARSER_VERSION);
}
}
list
-lapp(l1, l2)
- list l1;
- VOID_STAR l2;
+lapp(list l1, VOID_STAR l2)
{
list t;