Article View: news.software.readers
Article #2635Re: Tin 1.17 assert macro syntax error on HP-UX
From: Iain Lea
Date: Thu, 03 Dec 1992 07:10
Date: Thu, 03 Dec 1992 07:10
38 lines
1933 bytes
1933 bytes
Hiroto Shibuya (shibuya@bl.applicon.slb.com) wrote: : : The use of macro "assert" defined in "tin.h" fails with syntax error : with the following configuration. : HP 9000/710 : HP-UX 08.07 : #if __STDC__ || defined(SVR4) : # ifndef apollo : # define assert(p) if(! (p)) asfail(__FILE__, __LINE__, #p); else : # else : # define assert(p) if(! (p)) asfail(__FILE__, __LINE__, "p"); else : # endif : #else : # define assert(p) if(! (p)) asfail(__FILE__, __LINE__, "p"); else : #endif This has been fixed in the upcoming PL8 release. A quick fix for PL7 would be the following: #if __STDC__ || defined(SVR4) # if !defined(apollo) && !defined(__hpux) # define assert(p) if(! (p)) asfail(__FILE__, __LINE__, #p); else # else # define assert(p) if(! (p)) asfail(__FILE__, __LINE__, "p"); else # endif #else # define assert(p) if(! (p)) asfail(__FILE__, __LINE__, "p"); else #endif Iain -- NAMES Iain Lea Iain.Lea%anl433.uucp@Germany.EU.net SNAIL Siemens AG, ANL A433SZ, Gruendlacher Str. 248, 8510 Fuerth, Germany. PHONE +49-911-3089-407 (work) +49-911-331963 (home) +49-911-3089-290 (FAX)
Technical Details
Message-ID:
<1992Dec3.071048.19980@anl433.uucp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!mcsun!Germany.EU.net!anl433!Iain.LeaReferences:
<SHIBUYA.92Nov23175847@chute.bl.applicon.slb.com>Show Full Headers
Complete Article Headers
Message-ID: <1992Dec3.071048.19980@anl433.uucp> Subject: Re: Tin 1.17 assert macro syntax error on HP-UX Date: Thu, 3 Dec 1992 07:10:48 GMT From: Iain.Lea%anl433.uucp@Germany.EU.net (Iain Lea) References: <SHIBUYA.92Nov23175847@chute.bl.applicon.slb.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!mcsun!Germany.EU.net!anl433!Iain.Lea Newsgroups: news.software.readers Followup-To: news.software.readers Sender: news@anl433.uucp (Netnews Administrator) Reply-To: Iain.Lea%anl433.uucp@Germany.EU.net Organization: TIN Support X-Newsreader: TIN [version 1.1 BETA PL8] Lines: 38