Mail Archives: djgpp/2000/03/21/17:36:34
Hello.
Stan Brown wrote:
> > Regdos seems to have vanished, reappeared and then vanished again - or
> > rather, the author's home page has disappeared. Anyway, I just
> > discovered that I put a copy of it here:
> >
> >http://www.phekda.freeserve.co.uk/richdawe/mysoft.html#homeless
>
> I just downloaded it out of curiosity, and in the very first
> header file I examined I found illegal C:
>
> #define __DOSX_H
>
> All identifiers beginning with an underscore and followed by a
> capital letter or another underscore are reserved to the
> implementation (compiler and library), and in user code they lead
> to undefined behavior.
So is Regdos user code or library code? In essence it provides an API
which is part of the Win32 standard libraries. By "library" do you mean
the standard C libraries? Looking at the draft of C99 (or is it C1999
now?) that I have, I believe that double underscores are reserved for
standard C libraries only. So, Regdos does violate this.
BTW I'm not the maintainer of this library. If you want to fix it up,
please do. I'd be happy to host an updated version.
By the way, I think you mean "in user code they _may_ lead to undefined
behavior" rather than "in user code they lead to undefined behavior",
which is a bit harsh. ;)
Anyhow, thanks for pointing this out. I'll put a little note on the web
page.
Bye,
--
Richard Dawe
richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/
- Raw text -