Article View: gnu.gcc.bug
Article #1869Re: gcc -E never works
From: cmf
Date: Fri, 21 Oct 1988 22:03
Date: Fri, 21 Oct 1988 22:03
27 lines
1251 bytes
1251 bytes
Fortunately, that's an easy problem to solve. I've enclosed a diff for
cccp.c (version 1.30).
Carl Fongheiser
University of Pittsburgh
cmf@unix.cis.pittsburgh.edu
*** cccp.c.orig Fri Oct 21 18:00:06 1988
--- cccp.c Fri Oct 21 17:55:48 1988
***************
*** 967,973 ****
/* Now that we know the input file is valid, open the output. */
! if (out_fname && !strcmp (out_fname, ""))
out_fname = "stdout";
else if (! freopen (out_fname, "w", stdout))
pfatal_with_name (out_fname);
--- 967,973 ----
/* Now that we know the input file is valid, open the output. */
! if (!out_fname || (out_fname && !strcmp (out_fname, "")))
out_fname = "stdout";
else if (! freopen (out_fname, "w", stdout))
pfatal_with_name (out_fname);
Technical Details
Message-ID:
<8810212203.AA29616@unix.cis.pittsburgh.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!UNIX.CIS.PITTSBURGH.EDU!cmfReferences:
<8810211631.AA03190@typo.umb.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!UNIX.CIS.PITTSBURGH.EDU!cmf From: cmf@UNIX.CIS.PITTSBURGH.EDU Newsgroups: gnu.gcc.bug Subject: Re: gcc -E never works Message-ID: <8810212203.AA29616@unix.cis.pittsburgh.edu> Date: 21 Oct 88 22:03:32 GMT References: <8810211631.AA03190@typo.umb.edu> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 26