[Flex-devel] api change for [yy]input()
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Nate R. <na...@go...> - 2017-05-22 23:10:39
|
I recently discovered that the behavior of input() has changed from returning EOF at end of file to returning 0. Searching around I came across a closed github issue (https://github.com/westes/flex/issues/212), but this really feels like something for the mailing list. So: Why change this return value, potentially breaking callers? Is it simply because Apple chose to do so ( https://opensource.apple.com/source/flex/flex-26/patches/scanEOF.diff.auto.html)? If that's the case, perhaps the man page should be updated to match. I did my best to search for discussion around December 2015 on this mailing list but didn't see any; please feel free to just point me to an existing thread if this has already been covered. Best, --nate |