DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦d67f171cf⟧ TextFile

    Length: 1536 (0x600)
    Types: TextFile
    Names: »SETJMP.H«

Derivation

└─⟦93c4d868c⟧ Bits:30005869 SW1609 Digital Research C v. 1.11 - May 84
    └─ ⟦this⟧ »SETJMP.H« 
└─⟦b85731168⟧ Bits:30002664 Digital Research C - CCP/M - May 84
    └─ ⟦this⟧ »SETJMP.H« 

TextFile

/****************************************************************************/
/*									    */
/*		    L o n g j u m p   H e a d e r   F i l e		    */
/*		    ---------------------------------------		    */
/*									    */
/*	Copyright 1982,83 by Digital Research.  All rights reserved.	    */
/*									    */
/*	Long jumps are implemented as follows:  			    */
/*									    */
/*		1).	Routine "setjmp" is called to setup a special 	    */
/*			buffer for return.  The return address, stack 	    */
/*			pointer and frame pointer are saved.  This allows   */
/*			the calling program to do the proper number of 	    */
/*			"pops".		    				    */
/*									    */
/*		2).	At some later time, the procedure "longjmp" is	    */
/*			called.  The programmer sees a return from the	    */
/*			previous "setjmp" as the result.		    */
/*									    */
/*	Calling sequence:						    */
/*									    */
/*		#include	<setjmp.h>	(definitions)		    */
/*		jmp_buf	 env;	(define a buffer for saved stuff)	    */
/*									    */
/*		setjmp(env);						    */
/*	a:								    */
/*									    */
/*		longjmp(env,val);					    */
/*									    */
/*	Setjmp returns a WORD of 0 on first call, and "val" on the 	    */
/*	subsequent "longjmp" call.  The longjmp call causes execution to    */
/*	resume at "a:" above.						    */
/*									    */
/****************************************************************************/
typedef	long	jmp_bufÆ13Å;
«eof»