Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.pc » need longjmp for microsoft c
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
need longjmp for microsoft c [message #112632] Mon, 16 September 2013 13:48 Go to next message
grayson is currently offline  grayson
Messages: 17
Registered: June 2013
Karma: 0
Junior Member
Message-ID: <21900008@uiucuxc.UUCP>
Date: Thu, 10-Jan-85 13:07:00 EST
Article-I.D.: uiucuxc.21900008
Posted: Thu Jan 10 13:07:00 1985
Date-Received: Tue, 22-Jan-85 05:46:48 EST
Lines: 6
Nf-ID: #N:uiucuxc:21900008:000:203
Nf-From: uiucuxc!grayson    Jan 10 12:07:00 1985

Does anyone have longjmp/setjmp written for microsoft lattice C?
I'd sure appreciate geting a version - there doesn't appear to 
be one provided with the package.

{ihnp4,pur-ee}!uiucdcs!uiucuxc!grayson
Re: need longjmp for microsoft c [message #112687 is a reply to message #112632] Mon, 16 September 2013 13:50 Go to previous message
geller is currently offline  geller
Messages: 87
Registered: May 2013
Karma: 0
Member
Message-ID: <384@rlgvax.UUCP>
Date: Wed, 23-Jan-85 12:56:17 EST
Article-I.D.: rlgvax.384
Posted: Wed Jan 23 12:56:17 1985
Date-Received: Mon, 28-Jan-85 05:46:20 EST
References: <21900008@uiucuxc.UUCP>
Organization: CCI Office Systems Group, Reston, VA
Lines: 32

 >  Does anyone have longjmp/setjmp written for microsoft lattice C?
 >  I'd sure appreciate geting a version - there doesn't appear to 
 >  be one provided with the package.
 >  
 >  {ihnp4,pur-ee}!uiucdcs!uiucuxc!grayson

LATTICE C release 2.13 has the function setjmp and longjmp.

ret = setjmp (save);
longjmp (save,value);

int	ret;		return code
int	value;		return value
jmp_buf	save;

The setjmp function saves the current stack mark in the buffer area specified
by save and returns a value of 0. Then a later call to longjmp will return to
the next statement after the original setjmp call with value as the return
code. If value is 0, it is forced to 1 by longjmp.

The jmp_buf descriptor is defined in the header file called setjmp.h.

This mechanism is useful for quickly popping back up through multiple layers
of function calls under exceptional circumstances.

(All text taken from page 33 of Lattice's supplement for version 2.10)

I'd recommend you pick up the latest release (2.14) so you can take
advantage of their new features.

						David P. Geller
						{seismo}!rlgvax!geller
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Unix for the PC,AT --- abstract
Next Topic: Anyone using Opus' 16032 co-processor for IBM-PC?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Apr 16 00:19:58 EDT 2024

Total time taken to generate the page: 0.15669 seconds