Mail Archives: djgpp/1994/03/17/15:00:26
> I get the DJGPP package containing DJDEV110.ZIP and other files
> but I can't use the Flex or the Bison because the file names are given
> with UNIX format using '/'.
I don't use Flex or Bison, but I will point out that it is only on the
command line that DOS insists on using backslash as the directory separater.
At other levels, either style slash will work.
> #ifdef _UNIX_
> char *hairy_bison [] = "bison.hairy";
> #else /* not UNIX, so MSDOS */
> char *hairy_bison [] = "c:\gnu\bin\bison\bison.hai";
> #endif
Minor complaint here is that there are other possibilities besides UNIX and
MSDOS, major complaint is that building paths into an executable is horribly
unportable. If I had bison online, it would probably be in something like
d:\compiler\djgpp\bison. Someone running off a network certainly wouldn't
use C:. Also, didn't you really mean to write
char *hairy_bison [] = "c:\\gnu\\bin\\bison\\bison.hai";
- Raw text -