summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2002-08-15 14:50:10 +0000
committerWill Estes <wlestes@users.sourceforge.net>2002-08-15 14:50:10 +0000
commit356da08a8eae40dd8f8edd31de0f9b5a12ba3014 (patch)
tree4c5133d635f02f680d5b63c958a1d2ecd042db86 /main.c
parent39e6b9fb7cdbddcd0dbf44ea2d62e0714a643213 (diff)
conditionally include <locale.h>; include config.h as well
Diffstat (limited to 'main.c')
-rw-r--r--main.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/main.c b/main.c
index 5edbd18..b415957 100644
--- a/main.c
+++ b/main.c
@@ -30,13 +30,11 @@
/* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */
/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
/* PURPOSE. */
-
-#ifndef lint
-char copyright[] =
-"@(#) Copyright (c) 1990 The Regents of the University of California.\n\
- All rights reserved.\n";
-#endif /* not lint */
-
+
+#include <config.h>
+#ifdef ENABLE_NLS
+#include <locale.h>
+#endif /* ENABLE_NLS */
#include "flexdef.h"
#include "version.h"
#include "options.h"
@@ -120,10 +118,6 @@ static char *outfile_template = "lex%s.%s";
static char *backing_name = "lex.bck";
#endif
-#ifdef THINK_C
-#include <console.h>
-#endif
-
#ifdef MS_DOS
extern unsigned _stklen = 16384;
#endif
@@ -153,10 +147,6 @@ char *argv[];
if ( exit_status )
return exit_status - 1;
-#ifdef THINK_C
- argc = ccommand( &argv );
-#endif
-
flexinit( argc, argv );
readin();