Using bison (or bisonc++) to create parser for command completion

2009-02-03 Thread José Alburquerque
Hi. I'm not subscribed to this list, but I'm hoping someone here can still help me. I'm attempting to develop a small front-end to dvdauthor in C++ to logically create DVD's to be played in standard DVD players. I would like to include "command completion" functionality in an area of the GU

Memory Leak due to strdup even after using %destructor

2009-02-03 Thread harish.chaluvadi
hi , I am new to bison. I got a memory leak. Leak is due to the strdup in lex file astr [-a-zA-Z0-9_\.\/\,\<]* {astr} { yylval.text = strdup( (char *)yytext ); return ASTR; } I have added %destructor { free($$); }

Re: Using bison (or bisonc++) to create parser for command completion

2009-02-03 Thread Hans Aberg
On 4 Feb 2009, at 03:40, José Alburquerque wrote: Hi. I'm not subscribed to this list, but I'm hoping someone here can still help me. I'm attempting to develop a small front-end to dvdauthor in C++ to logically create DVD's to be played in standard DVD players. I would like to include "c

Re: Memory Leak due to strdup even after using %destructor

2009-02-03 Thread Hans Aberg
On 4 Feb 2009, at 07:40, > wrote: I am new to bison. I got a memory leak. Leak is due to the strdup in lex file astr [-a-zA-Z0-9_\.\/\,\<]* {astr} { yylval.text = strdup( (char *)yytext ); return ASTR; } I have added %des