[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: some portability suggestions
- From: Paul Bleisch <pbleisch@...>
- Date: Wed, 31 May 2000 17:20:34 -0500
> -----Original Message-----
> From: Jim Mathies [mailto:Jim@mathies.com]
> Subject: some portability suggestions
>
> 2) wrap your standard includes in custom .h includes:
>
> instead of
>
> #include <stdlib.h>
>
> have
>
> #include <lua_stdlib.h>
>
> and in lua_stdlib.h you would have the default
> include #include <stdlib.h>.
>
> With this, i have complete control over the linked
> libs in my project.
>
> I can then override the default stdlib.h include
> and use my own custom versions of these libraries,
> which are smaller, cheaper, and faster than the default.
While I'm not arguing the usefulness of this in general, why
can't you just override the default stdlib.h as it is now?
It should not matter from which file it is included from.
Paul