Re: [Tinycc-devel] How about the source code accepted as a inputstream
From:
Hanzac Chen
Subject:
Re: [Tinycc-devel] How about the source code accepted as a inputstream
Date:
Sun, 30 Mar 2008 17:17:27 +0800
So, here is the patch, accept the standard input if use command line "-".
It will add a fake filename ":stdin:" in the input files list and when opening ":stdin:", it will just set the file descriptor to be 0 as standard input.
I just tested the Windows port of tcc, it works as expected.