[DGD] Re: Conditional inherits?

Felix A. Croes felix at dworkin.nl
Fri Mar 27 21:43:28 CET 1998


> Tried that, per my followup post.
>
> Indeed the other file is handled by driver->path_include(),
> but the first parm is always the standard include filename
> rather than the name of the actual *.c file being compiled.
>
> That makes it rather hard to determine what to do, since both
> parms are identical for every call.  Any tricks?

I should just have referred you to my earlier posting about the kernel
library, instead of trying to explain it again. :)

The kernel library does it by keeping track of the object currently
being compiled, as a variable in the driver object.  See the source
for details (start with compile_object() in /kernel/lib/auto.c).

Dworkin



More information about the DGD mailing list