[comp.lang.c] multiple exit points. was: Re: Coding Standards. was: a style question

fjb@metaware.metaware.com (Fred Bourgeois) (11/20/90)

In article <i7NRs3w163w@phoenix.com> stanley@phoenix.com (John Stanley) writes:
>imp@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@metaware.com                                        ...!uunet!metaware!fjb
	     Colorless Green Ideas Sleep Furiously, and so do I.