dce@smsc.sony.com (David Elliott) (08/01/90)
In X11R4, the util/scripts stuff uses "$(PREPROCESSCMD) < filename" to generate scripts. PREPROCESSCMD defaults to the C compiler (e.g., cc) with the -E option. When I ported X11R4 to a system using MIPS compilers, I found that this didn't work, so I just assumed that the compiler driver was lacking, and got our compiler person to "fix" it. Now, I find that the Sony BSD compilers don't handle this, either. Is it common for cc to read from stdin, or is this a more general flaw in X11R4? -- ...David Elliott ...dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce ...(408)944-4073 ..."Damn! I'm running out of integers!"
john@acorn.co.uk (John Bowler) (08/02/90)
In article <1990Jul31.225117.4362@smsc.sony.com> dce@smsc.sony.com (David Elliott) writes: >In X11R4, the util/scripts stuff uses "$(PREPROCESSCMD) < filename" to >generate scripts. PREPROCESSCMD defaults to the C compiler (e.g., cc) >with the -E option. > >... >Is it common for cc to read from stdin, or is this a more general >flaw in X11R4? No - the ``standard'', the pcc front end (BSD 4.3), expects ``cc -E -''; ie it interprets the filename ``-'' as meaning ``read from stdin''. On the other hand cpp (ie the preprocessor bit of pcc) acts as a filter and reads from stdin (but it will also take a file name, including ``-''. John Bowler (jbowler@acorn.co.uk)