Date: Fri, 19 Sep 1997 11:44:57 +0930 From: Mike Smith <mike@smith.net.au> To: Joao Carlos Mendes Luis <jonny@coppe.ufrj.br> 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 Message-ID: <199709190214.LAA03946@word.smith.net.au> In-Reply-To: Your message of "Thu, 18 Sep 1997 23:05:54 -0300." <199709190205.XAA04697@gaia.coppe.ufrj.br>
next in thread | previous in thread | raw e-mail | index | archive | help
> #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709190214.LAA03946>