🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1624

Re: setjmp as macro

#1624
From: Doug Gwyn
Date: Tue, 28 Aug 1990 01:22
10 lines
978 bytes
In article <12516@paperboy.OSF.ORG> rabin@osf.org (Paul Rabin) writes:
>	Does ANSI C require that a macro implementation of setjmp
>	evaluate its arguments exactly once?  If so, do you have a
>	suggestion for handling the jmp_buf argument?  

Since 4.1.6 does not require it, I would say, no, the setjmp implementation
may evaluate its argument more than once.  This is also compatible with the
intention of the setjmp/longjmp specification, for which I collected
information about existing practice on an extremely wide variety of
implementations.
Technical Details
Message-ID: <13667@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!cmcl2!adm!smoke!gwyn
References: <12516@paperboy.OSF.ORG>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: setjmp as macro
Message-ID: <13667@smoke.BRL.MIL>
Date: 28 Aug 90 01:22:10 GMT
References: <12516@paperboy.OSF.ORG>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 10