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

2008-03-31 Thread grischka
From: Hanzac Chen: I made some changes, to accept the '-' as a filename ... Thanks, I think that works. I added some words to the manual. --- grischka Seen that? http://landley.net/hg/tinycc/rev/8595fe33590f http://landley.net/hg/tinycc/rev/8e2f9e376489

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

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

2008-03-29 Thread grischka
From: Hanzac Chen: Can you make a patch? Yes. Fine, then I'll wait with the final release for your patch, since that is a good feature to go in the one-liner announcement, like TCC version 0.9.24 now supports the arm eabi and compilation from standard input. Other suggestions