httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@apache.org>
Subject RE: make_exports.awk vs APR_DECLARE_* macros
Date Wed, 25 Jul 2001 16:43:16 GMT
> On Wed, 25 Jul 2001 08:36:56 -0700, Ryan Bloom wrote:
>
> >On Tuesday 24 July 2001 22:45, William A. Rowe, Jr. wrote:
> >> Good point.  And folks, this is a 2.0.22-dev showstopper :(
> >>
> >> Ryan, you invented both constructs.  Thoughts?
> >
> >First, apr_file_set_inherit isn't in the exports file, because
> we explicitly don't put it there.
> >The problem is that the function only exists when a macro is
> evaluated, so if we use the
> >awk script, then we try to create  a line like:
> >
> >void *ap_hack_apr_set_##type##_inherit = apr_set_##name##_inherit
> >
> >This is obviosly wrong.  No amount of mucking with APR_DECLARE_*
> will resolve this.
> >
> >I guess I am having a hard time seeing any way to resolve this problem.
>
> I worked around it with the change in the patch below. There are
> others, of
> course, but this gets all current modules building again. The other option
> is to have make_exports.awk know how to do the same transform but to do
> that it would require full knowledge of ALL such macros.

Exactly how many of those macros are there?
If there aren't a boat load of them it might be worthwhile
to implement them.

> Maybe we could pass the .h files through the CPP before feeding them to
> make_exports.awk? Probably not practical but might be worth a try.

Sander


Mime
View raw message