Re: How can I plug-in my own memory management in Bison?

2012-08-22 Thread Ashish Mahamuni
Anybody ? On Mon, Aug 13, 2012 at 3:02 PM, Ashish Mahamuni wrote: > I have got my own "my_malloc" and "my_free" methods. > I would like Bison to invoke those for memory allocation and to free the > memory. > > Basically, something similar to lex, where I ca

How can I plug-in my own memory management in Bison?

2012-08-13 Thread Ashish Mahamuni
I have got my own "my_malloc" and "my_free" methods. I would like Bison to invoke those for memory allocation and to free the memory. Basically, something similar to lex, where I can specify noyyalloc, noyyfree and provide my own definitions. I tried #define YYMALLOC, but it did not work. is thi