delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/27/14:07:29

From: "Juan Manuel Guerrero" <ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De>
Organization: Darmstadt University of Technology
To: djgpp AT delorie DOT com
Date: Sat, 27 Nov 1999 19:51:49 +0100
Subject: bug in bison-1.25
X-mailer: Pegasus Mail for Windows (v2.54DE)
Message-ID: <9479513219@HRZ1.hrz.tu-darmstadt.de>
Reply-To: djgpp AT delorie DOT com

There is a bug in bison-1.25.
When bison is invocated with the "-b" option
it will try to create an output file like this one:
   bison -b foo  bar.y   -->  foo.tab.c
instead of the MSDOS version:  foo_tab.c

patch follows.
Regards,
Guerrero, Juan Manuel


*** files.c~	Tue Mar 18 16:57:20 1997
--- files.c	Sat Nov 27 19:37:38 1999
*************** openfiles()
*** 168,174 ****
--- 168,178 ----
  #ifdef VMS
        strcat (name_base, "_tab");
  #else
+ #ifdef MSDOS
+       strcat (name_base, "_tab");
+ #else
        strcat (name_base, ".tab");
+ #endif
  #endif
  #ifdef MSDOS
  #ifndef __DJGPP__

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019