ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/10/03:09:12

Date: Tue, 10 Oct 1995 01:43:53 -0400
From: dj (DJ Delorie)
To: rossi AT cs DOT unibo DOT it
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Beta 3 bug

> OK guys, 
> so, who's the genius that used a C++ reserved keyword (guess which
> one) on line 197 of dos.h (or was it dir.h ???) ? ;)
> OK, you guessed it: a structure's field name is "class" and, of course, if
> you include it from C++ you get an error...

Obviously, it was someone who wanted to take the time to try to
implement some missing functions in djgpp, rather than someone who
just complains when they don't work.  Yes, I've already fixed this bug
locally, but let's keep in mind that the people working on djgpp are
VOLUNTEERS and should be thanked for their help BEFORE you stomp on
them for bad code.

Have you submitted a patch for this, or were you going to hope that
someone else would?  Remember, bug reports (and workaround, solutions,
etc) should be submitted to http://www.delorie.com/djgpp/beta/bugs/ or
mailed to djgpp-v2-bugs AT delorie DOT com.  If you are going to just post to
this mail/news group, at *least* include a "diff -c3" patch for the
sources, rather than only a bug report, if you know what the solution
should be.

Thanks,
DJ

P.S.  X11R3 used "class" in a structure also, so it's not a stupid
mistake.  Some code preceeded C++ and didn't know "class" would be
reserved.

- Raw text -


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