From owner-freebsd-hackers Thu May 8 09:52:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA07331 for hackers-outgoing; Thu, 8 May 1997 09:52:29 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id JAA07324 for ; Thu, 8 May 1997 09:52:25 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA12504; Thu, 8 May 1997 12:50:10 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Thu, 8 May 1997 12:50 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id IAA15186; Thu, 8 May 1997 08:24:25 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id IAA05595; Thu, 8 May 1997 08:31:24 -0400 (EDT) Date: Thu, 8 May 1997 08:31:24 -0400 (EDT) From: Thomas David Rivers Message-Id: <199705081231.IAA05595@lakes.water.net> To: ponds!zeta.org.au!bde, bde@zeta.org.au, ponds!gid.co.uk!rb Subject: Re: /usr/include/ftpio.h is not C++ safe Cc: ponds!main.gbdata.com!gclarkii, ponds!FreeBSD.ORG!hackers, ponds!time.cdrom.com!jkh, ponds!barcode.co.il!nadav Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > >I have *shitloads* of old code around (mostly in clients' systems) which > >breaks in subtle and mysterious ways when naively ported to ANSI C. It > >often boils down to ANSI having broken the portability of comparing chars > >with constants [don't get me started, it's a couple of years since I had a > >good rant about that one :-)]. > > > >-traditional is a life-saver. > > gcc -traditional supports prototypes, so this is no argument for __P(()) > :-). It's an argument agains __P(()) - it's reasonable for headers to > only support the compiler(s) shipped with the system. > > Bruce > prototypes, yes - keywords no... - Dave R. -