Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mandrill!hal!ncoast!allbery
From: allbery@ncoast.UUCP (Brandon S. Allbery)
Newsgroups: comp.unix.wizards
Subject: Re: /dev/stdin
Message-ID: <8220@ncoast.UUCP>
Date: 5 Jul 88 17:47:29 GMT
References: <16305@brl-adm.ARPA>
Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery)
Followup-To: comp.unix.wizards
Organization: Cleveland Public Access UN*X, Cleveland, Oh
Lines: 15

As quoted from <16305@brl-adm.ARPA> by rbj@cmr.icst.nbs.gov (Root Boy Jim):
+---------------
| Another (mis?)use is to compile programs from stdin. First, we do
| `ln -s /dev/stdin x.c', then `cc -c x.c'. I'm sure one can find really
+---------------

Would this work?  I was under the impression that the C compiler made
multiple passes over the source -- not useful if you build a pipe with

ln -s /dev/stdin x.c; (CProgramGenerator | cc -c x.c); rm x.c

++Brandon
-- 
Brandon S. Allbery, uunet!marque!ncoast!allbery			DELPHI: ALLBERY
	    For comp.sources.misc send mail to ncoast!sources-misc