OSLib 6.11 Released
Stewart Brodie
stewart.brodie at pace.co.uk
Tue Sep 26 10:16:14 BST 2000
In message <200009252108.OAA18199 at purple.trimedia.sv.sc.philips.com>
"Jonathan Coxhead" <jonathan at doves.demon.co.uk> wrote:
> As far as I can see, the best way to decrease the chance of collision
> with other headers is to use the already-existing division of OSLib into 4
> functional units: Core, Computer, User, Toolbox. Norcroft C already maps
> "/" in include directives onto "." (as well as converted "X.h" into "h.X"),
> so the following should work a charm:
>
> #include "Core/os.h"
> #include "Computer/osfind.h"
> #include "User/wimp.h"
> #include "Toolbox/keyboardshortcut.h"
>
> etc, and compile with -I$.OSLib or its moral equivalent.
>
> I think that's completely portable to all platforms, and reduces the
> chance of a collision to damn close to 0. Am I right?
I think so. Just avoid creating new sections called Global, Interface or
Interface2 please ;-)
--
Stewart Brodie, Senior Software Engineer (Views expressed are my own and
Pace Micro Technology PLC not those of my employer)
645 Newmarket Road
Cambridge, CB5 8PB, United Kingdom WWW: http://www.pacemicro.com/
More information about the oslib-user
mailing list