/*--------------------------------------------------------------------------
SETJMP.H

Prototypes for longjmp facility.
Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
All rights reserved.
--------------------------------------------------------------------------*/

/* define the buffer type for holding the state information */
#ifdef __CX51__
#ifndef _JMP_BUF_DEFINED
#define _JBLEN	9  /* SP, SPE, ?C_XBP, ?C_IBP, ?C_PBP, RET-ADDR */
#else
#ifndef _JMP_BUF_DEFINED
#define _JBLEN	7  /* RET-ADDR, ?C_XBP, ?C_IBP, ?C_PBP, SP */
#endif

typedef  char jmp_buf[_JBLEN];
#define _JMP_BUF_DEFINED

/* function prototypes */
int  setjmp  (jmp_buf);
void longjmp (jmp_buf, int);

