]> granicus.if.org Git - flex/commitdiff
conditionally include <locale.h>; include config.h as well
authorWill Estes <wlestes@users.sourceforge.net>
Thu, 15 Aug 2002 14:50:10 +0000 (14:50 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Thu, 15 Aug 2002 14:50:10 +0000 (14:50 +0000)
main.c

diff --git a/main.c b/main.c
index 5edbd182dc2f1d44bbacbe1b05972267263e3075..b415957a6c5744900830fe39e45c3c04dac6a17a 100644 (file)
--- a/main.c
+++ b/main.c
 /*  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 */
-
+\f
+#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();