From owner-freebsd-current Tue Nov 30 8:31:47 1999 Delivered-To: freebsd-current@freebsd.org Received: from gatekeeper.isltd.insignia.com (gatekeeper.isltd.insignia.com [195.153.60.130]) by hub.freebsd.org (Postfix) with ESMTP id BBB2A14DD6 for ; Tue, 30 Nov 1999 08:31:32 -0800 (PST) (envelope-from martin.hopkins@insignia.com) Received: from luggage.isltd.insignia.com (luggage.isltd.insignia.com [193.112.17.47]) by gatekeeper.isltd.insignia.com (8.9.3/8.9.3) with ESMTP id QAA11715 for ; Tue, 30 Nov 1999 16:31:31 GMT Received: (from martin@localhost) by luggage.isltd.insignia.com (8.9.3/BSCF-1.2) id QAA09758; Tue, 30 Nov 1999 16:31:30 GMT From: Martin Hopkins MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14403.64482.529697.106840@luggage.isltd.insignia.com> Date: Tue, 30 Nov 1999 16:31:30 +0000 (GMT) To: current@FreeBSD.ORG Subject: Re: trigraph in IPV6? In-Reply-To: <199911301515.HAA18242@pau-amma.whistle.com> References: <5140.943970541@coconut.itojun.org> <199911301515.HAA18242@pau-amma.whistle.com> X-Mailer: VM 6.75 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "David" == David Wolfskill writes: >> From: itojun@iijlab.net >> Date: Tue, 30 Nov 1999 23:02:21 +0900 >>> ../../netinet6/in6.c: warning: 1 trigraph(s) encountered >>> haven't seen one of THOSE for a while.... >> Could you tell me which line was that? I don't see any... David> Indeed. The only line I see (as of the 1.1 version of the file, dated David> 1999/11/22 02:44:59) that has 2 consecutive '?' characters at all (which David> sequence introduces all trigraphs) is line 892, which reads David> * SIOCGLIFADDR: get first address. (???) David> And my copy of the May 13, 1988 DpANS C states (section 2.2.1.1): David> 2.2.1.1 Trigraph sequences David> All occurrences in a source file of the following sequences of David> three characters (called trigraph sequences(5)) are replaced David> with the corresponding single charcacter. David> ??= # David> ??( [ David> ??/ \ David> ??) ] David> ??' ^ David> ??< { David> ??! | David> ??> } David> ??- ~ David> No other trigraph sequences exist. Each ? that does not begin David> one of the trigraphs listed above is not changed. [Example David> & footnote elided -- dhw] David> K&R, 2nd ed., p. 229 appears to agree with the above. David> I suspect a bogus warning from gcc's lexical analyzer. Why is the ??) not a trigraph? ie. (???) => (?] Martin -- Martin Hopkins | martin.hopkins@insignia.com Insignia Solutions Plc, | martin@uk.freebsd.org The Mercury Centre, Wycombe Lane | Tel: (+44) 1628 539537 Wooburn Green, Bucks, HP10 0HH, UK. | Fax: (+44) 1628 539501 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message