gobo-eiffel / gobo

The Gobo Eiffel Project provides the Eiffel community with free and portable Eiffel tools and libraries.
https://sourceforge.net/projects/gobo-eiffel/
Other
59 stars 24 forks source link

Allow redefinition of file in YY_FILE_BUFFER #30

Closed berenddeboer closed 6 years ago

berenddeboer commented 6 years ago

It's impossible to redefine file' in YY_FILE_BUFFER as inset_string' file is set to KL_SHARED_STREAMS.null_input_stream. This returns KL_STRING_INPUT_STREAM. As far as I can see there is absolutely no need for this, so I redefined it as returning a KI_CHARACTER_INPUT_STREAM.

That way I can override YY_FILE_BUFFER and redefine both file and null_input_stream to be compatible.