From: D M G. <dm...@uv...> - 2009-08-01 09:20:47
|
>From ChangeLog: 2009-08-01 <dm...@uv...> * parser.c: on discussion with Tom Modes I made sure that parser saves and restores the locale. My approach was to modify the parsing functions to have an "error handler" (basically a jump to the end of the function) where the locale is reset. this way we have, in every function, one single place where errors are dealt with (I actually discovered a very simple memory leak by doing this). See the code. Equivalent to the patch by Tom Modes, but with a single place where the locale is saved and restored. -dmg -- -- Daniel M. German http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with . |