Merged, and hit a snag which I hadn't met in testing.
In order to define whether the level of the message requires
displaying the file contents, I tried to use preprocessor-available
information. In that way, if the level is high, it'd be compiled out:
very efficient on the critical path.
But this requires that the debug level be constant, and it is not the
case with DBG_PARSE_NOTE.
In order to fix immediately the issue I'll refer to Debug::level in
debugs() instead which is runtime-determined, but I wonder if it'd be
worth to change the 160-ish references of DBG_PARSE_NOTE so that it is
statically-defined as well..
On Sat, Nov 10, 2012 at 4:58 PM, Kinkie <gkinkie_at_gmail.com> wrote:
> Will fix before applying. Thanks.
>
> On Sat, Nov 10, 2012 at 4:47 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> On 11/11/2012 3:57 a.m., Kinkie wrote:
>>>
>>> Hi all,
>>> here's the promised patch. It's actually even simpler than what Alex
>>> was suggesting. Run-tested.
>>
>>
>> +1 from me. Although the TODO should be "before 3.4" (not 3.3).
>>
>> Amos
>
>
>
> --
> /kinkie
-- /kinkieReceived on Sat Nov 10 2012 - 19:19:21 MST
This archive was generated by hypermail 2.2.0 : Sun Nov 11 2012 - 12:00:35 MST