Path: 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 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.