Re: [Tinycc-devel] How about the source code accepted as a inputstream

2008-03-30 Thread Hanzac Chen
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.

Re: [Tinycc-devel] How about the source code accepted as a inputstream

2008-03-30 Thread grischka
From: Hanzac Chen: 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

Re: [Tinycc-devel] How about the source code accepted as a inputstream

2008-03-30 Thread Hanzac Chen
On Mon, Mar 31, 2008 at 11:13 AM, grischka wrote: From: Hanzac Chen: 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