do not use a global ifblock stack
authorPhil Sutter <phil@nwl.cc>
Mon, 22 Dec 2008 16:45:08 +0000 (17:45 +0100)
committerPhil Sutter <phil@nwl.cc>
Mon, 22 Dec 2008 16:49:38 +0000 (17:49 +0100)
commitda7bc63996b6d40e6e6367fedcf4747552753bbb
tree84d3d3832c1bb3d1d82bb91d9f45afe8823aab7c
parent05624868e322b79801152ec29b9b356fdc7d150b
do not use a global ifblock stack

Using a global ifblock stack for all parsed ifblock objects causes
problems when doing sub-parsing in objects taking other objects as
parameters, because the possibly non-empty stack at startup leads to
false alarm when checking for stack emptiness after parsing the objects.

Use a void ** as the object to pass around, so callers don't need to
know struct ifblock_stack_obj.
src/conky.c
src/text_object.c
src/text_object.h