Re: graceful exit
Posted in 1995
> From: Dan Madvig - Bethel College & Sem. <daniel@genesis.admin.bethel.edu> > Subject: Re: graceful exit > To: alan@po.den.mmc.com (Alan Popiel) > Date: Fri, 13 Jan 95 10:48:31 CST > > > I have a 4GL-callable C function that provides this exit capability. For my > > own reasons, at the moment I am only providing it to people who specifically > > ask for it. > > I'm asking - yes please. Pardon my ignorance: we don't have 4GL - is it > necessary for your killer code? > > Ad(thanks)vance. > -- > Dan Madvig e-mail: d-madvig@bethel.edu > Bethel College & Seminary phone: (612) 638-6414 > 3900 Bethel Drive fax: (612) 638-6001 > St. Paul, MN 55112 Hello, Dan, The software follows in a separate e-mail. Because this message might be of general interest, I am also posting it to the net. As for whether 4GL is necessary: yes and no. `timer.c' is independent of the language in which its client is written. All it cares about is signals. `marktime.c' is written using the I4GL-to-C calling conventions. To be used as is, you need I4GL. However, by converting the function entry and exit code, you could convert this to a "vanilla" C routine. For your convenience in doing the above conversion, here are very brief highlights of the Informix C calling conventions: 1. Informix passes parameters to functions on the stack. a. The C parameter `nargs' is the number of parameters on the stack. b. `popint' pops one (integer) parameter off the stack. 2. Informix passes return values from functions on the stack. a. The C return value is the number of Informix return values on the stack. b. `retint' pushes one (integer) return value onto the stack. Regards, Alan +---------------------------+-----------------------------------------------+ | R. Alan Popiel | Internet: alan@den.mmc.com | | Martin Marietta, SLS | Voice: 303-977-9998 | | P.O. Box 179, M/S 3810 | Standard disclaimers apply. Cutesy ones, too. | | Denver, CO 80201-0179 USA | Your mileage may vary. Void where prohibited. | +---------------------------+-----------------------------------------------+