From owner-cvs-gnu Thu Sep 18 19:17:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA29517 for cvs-gnu-outgoing; Thu, 18 Sep 1997 19:17:28 -0700 (PDT) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA29511; Thu, 18 Sep 1997 19:17:19 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id LAA03946; Fri, 19 Sep 1997 11:44:59 +0930 (CST) Message-Id: <199709190214.LAA03946@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Joao Carlos Mendes Luis cc: phk@freebsd.org (Poul-Henning Kamp), cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-gnu@freebsd.org Subject: Re: cvs commit: src/gnu/usr.bin/as/config atof-ieee.c src/gnu/usr.bin/ld/rtld rtld.c src/gnu/usr.bin/man/man man.c In-reply-to: Your message of "Thu, 18 Sep 1997 23:05:54 -0300." <199709190205.XAA04697@gaia.coppe.ufrj.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Sep 1997 11:44:57 +0930 From: Mike Smith Sender: owner-cvs-gnu@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > #define quoting(Poul-Henning Kamp) > // Many places in the code NULL is used in integer context, where > // plain 0 should be used. This happens to work because we #define > // NULL to 0, but is stylistically wrong and can cause problems > // for people trying to port bits of code to other environments. > > Is there any problem in defining NULL to ((void *)0) ? > > Sorry if I'm forgetting something stupid... Only that this list is inhabited by countless C lawyers. 8) The standard defines NULL quite explicitly. Deviating from the standard is Bad. 0 -> NULL, but NULL !-> 0. mike