We are using the "C " target of ANTLR 3.1.3 to generate our parsers. We are also using the "Smart Heap" library. "Smart Heap" is a memory manager which needs to redefine the "free" and "malloc".
But when I tried to build my project using both "Smart Heap" and the ANTLR "C" target runtime I have faced the following problem. Some structures into "C" runtime ( and also into generated Lexer/Parser sources) contains member named "free". As I mention the "Smart Heap" library redefines the "free" in order to be able to take control over the memory management. And when we have a invocation like the following one into ANTLR "C" target runtime recognizer->state->ruleMemo->free(recognizer->state->ruleMemo); they are convert to recognizer->state->ruleMemo->dbg_sh_free(recognizer->state->ruleMemo); so an error is rised for missing missing member. To overcome this issue we have renamed the "free" member to "destroy". Do you think it is possible to make this an official change. I think this will easy the usage of "C" target together with some memory management libraries like "Smart Heap". Thanks, Micro Focus Live On-Demand Expert commentary, technical deep-dives, customer case studies and more 100% Online - 100% Free Over 100 assets available at www.microfocuslive.com Please consider the environment before printing this e-mail. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
