Re: [PATCH v3 6/9] perf tools: add destructors for parse event terms

From
Jiri Olsa <hidden>
Date
2019-10-28 19:33:26
Also in
bpf, lkml
Reply to
Ian Rogers, 2019-10-25
On Fri, Oct 25, 2019 at 09:08:34AM -0700, Ian Rogers wrote:
On Fri, Oct 25, 2019 at 1:27 AM Jiri Olsa [off-list ref] wrote:
quoted
On Thu, Oct 24, 2019 at 12:01:59PM -0700, Ian Rogers wrote:
quoted
If parsing fails then destructors are ran to clean the up the stack.
Rename the head union member to make the term and evlist use cases more
distinct, this simplifies matching the correct destructor.
nice did not know about this.. looks like it's been in bison for some time, right?
Looks like it wasn't in Bison 1 but in Bison 2, we're at Bison 3 and
Bison 2 is > 14 years old:
https://web.archive.org/web/20050924004158/http://www.gnu.org/software/bison/manual/html_mono/bison.html#Destructor-Decl
sounds safe ;-)

thanks,
jirka
Thread (101 messages) 101 messages, 4 authors, last reply 2019-11-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help