X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1045ba,ebd8b5998e2f884d X-Google-Attributes: gid1045ba,public X-Google-ArrivalTime: 2001-12-18 10:58:26 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!news.internetia.pl!newsfeed.tpinternet.pl!news.tpi.pl!nnrpd From: Marcin 'Qrczak' Kowalczyk Newsgroups: pl.rec.ascii-art Subject: Re: Czy bycie w niebycie jest mozliwe? Date: Tue, 18 Dec 2001 18:46:05 +0000 (UTC) Organization: Klub Nieszkodliwych =?iso-8859-2?Q?Manjak=F3w?= Lines: 38 Message-ID: References: <9vio4r$t3e$1@news.tpi.pl> <1836123031@p41.f47.n484.z2.FidoNet.ftn> NNTP-Posting-Host: paf87.warszawa.sdi.tpnet.pl Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: news.tpi.pl 1008701913 21839 217.96.225.87 (18 Dec 2001 18:58:33 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Tue, 18 Dec 2001 18:58:33 +0000 (UTC) X-Path-Notice: Path line has been filtered X-Original-Path: localhost!not-for-mail User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com pl.rec.ascii-art:6232 Sun, 16 Dec 01 22:43:26 +0100, Przemek Borys pisze: > #ifndef _LINUX_STDDEF_H > #define _LINUX_STDDEF_H > > #undef NULL > #if defined(__cplusplus) > #define NULL 0 > #else > #define NULL ((void *)0) > #endif W g++ teraz jest inaczej. /* A null pointer constant. */ #if defined (_STDDEF_H) || defined (__need_NULL) #undef NULL /* in case has defined it. */ #ifdef __GNUG__ #define NULL __null #else /* G++ */ #ifndef __cplusplus #define NULL ((void *)0) #else /* C++ */ #define NULL 0 #endif /* C++ */ #endif /* G++ */ #endif /* NULL not defined and or need NULL. */ #undef __need_NULL __null jest s�owem kluczowym (oczywi�cie programista nie powinien go u�ywa�, bo jest niestandardowe; dla programisty s� NULL i 0). -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ QRCZAK