Re: [PATCH v2 3/6] qapi: Simplify full_name_nth() in qobject-input-visitor

2021-02-16 Thread Markus Armbruster
Kevin Wolf writes: > Instead of counting how many elements from the top of the stack we need > to ignore until we find the thing we're interested in, we can just > directly pass the StackObject pointer because all callers already know > it. > > We only need a different way now to tell if we want

[PATCH v2 3/6] qapi: Simplify full_name_nth() in qobject-input-visitor

2021-02-11 Thread Kevin Wolf
Instead of counting how many elements from the top of the stack we need to ignore until we find the thing we're interested in, we can just directly pass the StackObject pointer because all callers already know it. We only need a different way now to tell if we want to know the name of something co