From: Akim Demaille Date: Tue, 19 Dec 2000 12:30:59 +0000 (+0000) Subject: * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here... X-Git-Tag: BISON-1_28b~54 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/55b9634155b80271df2b90a95d5f529e2371be28 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here... * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 540f3250..a9541648 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-12-19 Akim Demaille + + * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here... + * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here. + 2000-12-19 Akim Demaille * src/files.c (open_files): Yipee! We no longer need all the code diff --git a/src/files.c b/src/files.c index d4e78132..ccb47182 100644 --- a/src/files.c +++ b/src/files.c @@ -20,25 +20,6 @@ #include "system.h" - -#if defined (VMS) & !defined (__VMS_POSIX) -# ifndef BISON_SIMPLE -# define BISON_SIMPLE "GNU_BISON:[000000]BISON.SIMPLE" -# endif -# ifndef BISON_HAIRY -# define BISON_HARIRY "GNU_BISON:[000000]BISON.HAIRY" -# endif -#endif - -#if defined (_MSC_VER) -# ifndef BISON_SIMPLE -# define BISON_SIMPLE "c:/usr/local/lib/bison.simple" -# endif -# ifndef BISON_HAIRY -# define BISON_HAIRY "c:/usr/local/lib/bison.hairy" -# endif -#endif - #include "getargs.h" #include "files.h" #include "xalloc.h" @@ -181,9 +162,6 @@ void open_files (void) { char *name_base; -#ifdef MSDOS - register char *cp; -#endif int base_length; int short_base_length; diff --git a/src/system.h b/src/system.h index 437c1f15..fbb298bc 100644 --- a/src/system.h +++ b/src/system.h @@ -219,3 +219,21 @@ do { \ # define EXT_GUARD_C ".guard.c" # endif /* ! MSDOS */ #endif /* ! VMS */ + +#if defined (VMS) & !defined (__VMS_POSIX) +# ifndef BISON_SIMPLE +# define BISON_SIMPLE "GNU_BISON:[000000]BISON.SIMPLE" +# endif +# ifndef BISON_HAIRY +# define BISON_HARIRY "GNU_BISON:[000000]BISON.HAIRY" +# endif +#endif + +#if defined (_MSC_VER) +# ifndef BISON_SIMPLE +# define BISON_SIMPLE "c:/usr/local/lib/bison.simple" +# endif +# ifndef BISON_HAIRY +# define BISON_HAIRY "c:/usr/local/lib/bison.hairy" +# endif +#endif