Re: NULL in include/RefCount.h?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 17 Feb 2011 11:15:36 +1300

 On Wed, 16 Feb 2011 13:23:49 +0100, Kinkie wrote:
>> config.h includes stdio.h indirectly which defines it. So it remains
>> a maybe
>> in the long term.
>>
>> So... what object are you building that does not include config.h as
>> the
>> first include of it's .cc? That is a buggy .cc file.
>
> I think I get it. It may be due to a forgotten change in
> mk-globals-c.awk I have in the work-tree which removes the #include
> "squid.h" from auto-generated text enums. Evidently some .cc file
> includes squid.h via this way.
> So I guess the issue is different; I'll try to submit a patch with
> the
> mk-globals-c.awk improvement instead.

 Ah yes, that output .cc will need at least config.h + globals.h.

 I'm a bit torn whether globals.h should include everything it needs
 while we shuffle out its content or do the forward-declaration way and
 have the awk script include a bunch of extra headers. The latter is
 better and cleaner but more trouble to keep working.

 Amos
Received on Wed Feb 16 2011 - 22:15:40 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 17 2011 - 12:00:07 MST