On 27 July 2012 18:46, Martin Sucha <[email protected]> wrote:
> [...]
>
> Anyway, I think the proper solution is to correctly replace function names in
> the sources that need the substitution to occur, but I can't think of a way to
> achieve this using the C preprocessor. Maybe we could use a wrapper around the
> C preprocessor to add the posix_ prefix where necessary instead of adding it
> using defines?
>

Another solution would be to provide symbol aliases instead of
preprocessor defines. That's the cleanest way I can think of, but it
would require libc symbols of the same names to be declared weak. That
is not a problem if we consider libc and libposix to be developed in
tandem. Using preprocessor for this kind of task is *really* messy (I
never liked it).

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to