From mboxrd@z Thu Jan 1 00:00:00 1970 From: Latchesar Ionkov To: 9fans@cse.psu.edu Subject: Re: [9fans] calling function with (variable number of) parameters Message-ID: <20010621094858.A2471@gmx.net> References: <20010620194218.96D3D199DD@mail.cse.psu.edu>, <20010620155421.A1669@gmx.net> <3B31E39D.F4C8AFF8@null.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3B31E39D.F4C8AFF8@null.net>; from DAGwyn@null.net on Thu, Jun 21, 2001 at 12:39:50PM +0000 Date: Thu, 21 Jun 2001 09:48:58 -0400 Topicbox-Message-UUID: be7d6d5c-eac9-11e9-9e20-41e7f4b1d025 On Thu, Jun 21, 2001 at 12:39:50PM +0000, Douglas A. Gwyn said: > Latchesar Ionkov wrote: > > function returns, I don't know how many args I have to pop from the stack. > > And I can't get the number from a local variable, because I don't know the > > frame pointer anymore > > So use a global variable. It's already a crock anyway.. the function has to be reentrant. thanks for all the suggestions. obviously i'll reserve constant space in the stack for the arguments. Lucho