multiple exit points. was: Re: Coding Standards. was: a style question

Fred Bourgeois fjb at metaware.metaware.com
Tue Nov 20 11:53:13 AEST 1990


In article <i7NRs3w163w at phoenix.com> stanley at phoenix.com (John Stanley) writes:
>imp at marvin.Solbourne.COM (Warner Losh) writes:
>>one, IHO, of them all.  Comments....
>   Ooh, an invitation for comments!

No need for gotos to accomplish cleanup.  Just try this:
    #define Return(x,y) {cleanup(x); return(y);}

---
Fred Bourgeois, MetaWare Inc., 2161 Delaware Avenue, Santa Cruz, CA 95060-2806
fjb at metaware.com                                        ...!uunet!metaware!fjb
	     Colorless Green Ideas Sleep Furiously, and so do I.



More information about the Comp.lang.c mailing list