------- Comment #19 from jvdelisle at gcc dot gnu dot org 2007-12-12 01:05 ------- We have a mechanism already in list_read.c to allow transparently reading ahead and buffering as far as we need to. I wish I had been able to respond to this report sooner and could have saved some time.
Its called lpush_char and uses line_buffer. Tobias, if you would like, I can work up a patch using this. You can see how it is used in read_logical. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34427