From: Akim Demaille Date: Mon, 21 Jan 2002 15:48:25 +0000 (+0000) Subject: * src/files.c (skeleton_find) [MSDOS]: Fix cp definition. X-Git-Tag: BISON-1_32~8 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ef1a77c2c977e8a00e10636bc1eaf1afc45b4656?ds=inline * src/files.c (skeleton_find) [MSDOS]: Fix cp definition. --- diff --git a/ChangeLog b/ChangeLog index 522ebc29..352d07c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ +2002-01-21 Kees Zeelenberg + + * src/files.c (skeleton_find) [MSDOS]: Fix cp definition. + 2002-01-20 Marc Autret - * src/system.h: Need to define __attribute__ away for non-GCC + * src/system.h: Need to define __attribute__ away for non-GCC compilers as well (i.e. the vendor C compiler). Suggested by Albert Chin-A-Young. diff --git a/NEWS b/NEWS index 7c26c75f..1443ebc2 100644 --- a/NEWS +++ b/NEWS @@ -1,10 +1,11 @@ Bison News ---------- -Changes in version 1.31a, 2002-01-19: +Changes in version 1.31a: -* Fix YACC option output file names. +* Fix YACC option output file names +* Portability fixes Changes in version 1.31, 2002-01-14: diff --git a/THANKS b/THANKS index c592a8f6..e6424c84 100644 --- a/THANKS +++ b/THANKS @@ -17,6 +17,7 @@ Hans Aberg haberg@matematik.su.se Jesse Thilo jthilo@gnu.org Jim Meyering meyering@gnu.org Juan Manuel Guerrero ST001906@HRZ1.HRZ.TU-Darmstadt.De +Kees Zeelenberg kzlg@users.sourceforge.net Keith Browne kbrowne@legato.com Laurent Mascherpa laurent.mascherpa@epita.fr Marc Autret autret_m@epita.fr diff --git a/src/files.c b/src/files.c index 2629dfbb..a0cd6622 100644 --- a/src/files.c +++ b/src/files.c @@ -215,6 +215,7 @@ skeleton_find (const char *envvar, const char *skeleton_name) const char *res = getenv (envvar); #if defined (MSDOS) || defined (_WIN32) + const char *cp = getenv ("INIT"); if (!res) { /* Skeleton file name without path */ @@ -227,7 +228,6 @@ skeleton_find (const char *envvar, const char *skeleton_name) ++skel_name; /* File doesn't exist in current directory; try in INIT directory. */ - const char *cp = getenv ("INIT"); if (cp) { res = XMALLOC (char, strlen (cp) + strlen (skel_name) + 2);