Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!oxtrap!teemc!mibte!gamma!thumper!sdh From: sdh@thumper.bellcore.com (Retief of the CDT) Newsgroups: comp.sys.mac.programmer Subject: Re: C/LSC question Message-ID: <1771@thumper.bellcore.com> Date: 7 Nov 89 20:48:58 GMT Reply-To: sdh@thumper.UUCP (Steve Hawley) Distribution: na Organization: Bellcore MRE Lines: 16 Ok, what you want is inline expansion of your functions. I think that's an ANSIism that is not in lightspeed C, but that's ok, because you can fake it: #define fastfunc(arg1, arg2, arg3) {\ int local1, local2, local3;\ /* do whatever your function needs to do\ * but beware that the paramters are no longer\ * pass by value! */\ } Note that any local variables you create will generate their own stack frame -this is overhead. Steve Hawley sdh@flash.bellcore.com