From: Berend de B. <be...@po...> - 2009-06-13 05:11:39
|
>>>>> "Emmanuel" == Emmanuel Stapf [ES] <ma...@ei...> writes: >> So the goal is to run the scanner/parser straight from a malloc >> buffer, which used to work. Emmanuel> Having done many C/Eiffel interfaces I consider this as Emmanuel> being dangerous to do. And why when using SPECIAL do you Emmanuel> want to pass this to the C side? Is the C code doing to Emmanuel> do some processing over the data? Nah, it's just the other way around. The data is in a malloc buffer, and needs to be parsed by YY_PARSER. Previously one could write a wrapper where data was picked up from such buffer. Now Gobo requires that it is in a SPECIAL or descendant. So I'm just trying to see if I can skip this copy or make it faster. -- Cheers, Berend de Boer |