On 2/27/19 3:27 AM, Peter Krempa wrote:
>>> + * node pointer is reset to the original value when this macro was used.
>>> + */
>>> +# define VIR_XPATH_NODE_AUTORESTORE(ctxt) \
>>> +VIR_AUTOCLEAN(virXPathContextNodeSave) ctxt ## CtxtSave = {(ctxt),
>>> (ctxt)->node}
>>
>> Worth using C99 synta
On Tue, Feb 26, 2019 at 06:08:11PM +0100, Peter Krempa wrote:
Quite a few parts modify the XPath context current node to shif the
shift
scope and allow easier queries. This also means that the node needs
to be restored afterwards.
Introduce a macro based on 'VIR_AUTOCLEAN' which adds a local
On Tue, Feb 26, 2019 at 11:29:33 -0600, Eric Blake wrote:
> On 2/26/19 11:08 AM, Peter Krempa wrote:
> > Quite a few parts modify the XPath context current node to shif the
>
> shift
>
> > scope and allow easier queries. This also means that the node needs
> > to be restored afterwards.
> >
> >
On Tue, Feb 26, 2019 at 18:08:11 +0100, Peter Krempa wrote:
> Quite a few parts modify the XPath context current node to shif the
> scope and allow easier queries. This also means that the node needs
> to be restored afterwards.
>
> Introduce a macro based on 'VIR_AUTOCLEAN' which adds a local str
On 2/26/19 11:08 AM, Peter Krempa wrote:
> Quite a few parts modify the XPath context current node to shif the
shift
> scope and allow easier queries. This also means that the node needs
> to be restored afterwards.
>
> Introduce a macro based on 'VIR_AUTOCLEAN' which adds a local structure
> on
Quite a few parts modify the XPath context current node to shif the
scope and allow easier queries. This also means that the node needs
to be restored afterwards.
Introduce a macro based on 'VIR_AUTOCLEAN' which adds a local structure
on the stack remembering the original node along with a functio