Issue92

Title Reading input from a file (instead of stdin) doesn't work
Priority wish Status resolved
Superseder Nosy List erez, malte
Assigned To malte Keywords
Optional summary

Created on 2010-07-20.10:38:08 by erez, last changed by malte.

Messages
msg356 (view) Author: malte Date: 2010-07-20.16:55:43
Fixed in r4437.
msg353 (view) Author: erez Date: 2010-07-20.11:10:41
Just replace line 49  
    istream &in = cin; 
with
    ifstream in("output");
msg352 (view) Author: malte Date: 2010-07-20.10:59:12
As long as it isn't too tough, I'd rather keep support for the old format around
because it allows us to make regression tests against the old translator code.
I'll try to fix peek_magic; shouldn't be too hard.

Do you have some code I can use to reproduce the problem?
msg351 (view) Author: erez Date: 2010-07-20.10:38:08
This is because of the peek_magic function, which for some reason does not work 
for ifstream objects.
I think we can get rid of this with the "official release", since it was only 
meant for backward compatibility with old versions of the translator.
History
Date User Action Args
2010-07-20 16:55:43maltesetstatus: chatting -> resolved
messages: + msg356
2010-07-20 11:10:41erezsetmessages: + msg353
2010-07-20 10:59:12maltesetassignedto: malte
messages: + msg352
2010-07-20 10:38:08erezcreate