Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mimsy!oddjob!gargoyle!ihnp4!vax135!cjp From: cjp@vax135.UUCP (Charles Poirier) Newsgroups: comp.sys.amiga Subject: Re: Manx C Message-ID: <1836@vax135.UUCP> Date: Mon, 3-Aug-87 19:01:27 EDT Article-I.D.: vax135.1836 Posted: Mon Aug 3 19:01:27 1987 Date-Received: Tue, 4-Aug-87 06:30:18 EDT References: <4028@spool.WISC.EDU> <4540@jade.BERKELEY.EDU> Reply-To: cjp@vax135.UUCP (Charles Poirier) Distribution: comp Organization: AT&T Bell Labs, Holmdel, NJ Lines: 19 Summary: Redefine NULL This has been posted before but it may need to be said again. The problem Mike Meyer mentioned, about Manx C claiming illegal pointer-to-int comparison in if (ptr == NULL) can be fixed by redefining NULL. As in: #undef NULL #define NULL ((void *) 0L) The cast of "pointer to void" tells the compiler to "ignore pointer type". You might want to go and change the include file which (mis)defined NULL in the first place. I misrecall which file that is, sorry. -- Charles Poirier (decvax,ucbvax,ihnp4,attmail)!vax135!cjp "Docking complete... Docking complete... Docking complete..."