[Mapserver-dev] Unfreed Buffer in Lexer
Steve Lime
steve.lime at dnr.state.mn.us
Thu Apr 8 13:40:52 EDT 2004
We require flex. I have the O'Reilly yacc/lex book at home that I can
check. Otherwise
sounds like a good solution to me.
Steve
>>> Frank Warmerdam <warmerdam at pobox.com> 4/8/2004 10:11:20 AM >>>
Folks,
Sorry to reply to my own post. I have found that I can add the
following
definition to maplexer.l and then call the new function from
msCleanup().
void lexer_cleanup() {
if( yy_current_buffer != NULL )
{
yy_delete_buffer( yy_current_buffer );
yy_current_buffer = 0;
}
}
The yy_current_buffer variable is static to maplexer.c (generated from
maplexer.l). Does anyone know if functions like yy_delete_buffer()
and
the yy_current_buffer variable are general to all lex/flex compatible
parsers? Do we still support use of lex or do we require use of flex?
Any objections to my committing my change?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for
Rent
_______________________________________________
Mapserver-dev mailing list
Mapserver-dev at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
More information about the mapserver-dev
mailing list