🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2860

suggestion

#2860
From: Karl Berry
Date: Fri, 09 Feb 1990 02:16
17 lines
1182 bytes
One of the error messages that I most hate to see
is ``unterminated string or character constant''.  I guess
(I haven't looked it up) that ANSI C requires that strings
can contain newlines, which makes reasonable error
detection impossible.

But how about adding a warning for strings that do
not end on the same line as they began? It would be
even better if the warning only happened if that line
did not end with a \.  Then we could put a \ on
the eols that occur in strings whether we intend,
and the compiler would catch the places where we flubbed.

Or am I missing an easy way to find the unmatched string
constants in the first place? I suppose it is not too
painful to search for first exactly one " on a line, then exactly
3, then 5; that's what I'm doing now.
Technical Details
Message-ID: <9002090216.AA02162@claude.>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!uunet!bu.edu!bu-cs!lll-winken!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!claude.umb.edu!karl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!uunet!bu.edu!bu-cs!lll-winken!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!claude.umb.edu!karl
From: karl@claude.umb.edu (Karl Berry)
Newsgroups: gnu.gcc.bug
Subject: suggestion
Message-ID: <9002090216.AA02162@claude.>
Date: 9 Feb 90 02:16:08 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 17