setjmp.h

00001 /*  wcecompat: Windows CE C Runtime Library "compatibility" library.
00002  *
00003  *  Copyright (C) 2001-2002 Essemer Pty Ltd.  All rights reserved.
00004  *  http://www.essemer.com.au/
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Lesser General Public
00017  *  License along with this library; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 
00022 #ifndef __wcecompat__SETJMP_H__
00023 #define __wcecompat__SETJMP_H__
00024 
00025 #include "stddef.h"
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 // Processor-dependent setjmp defns
00032 #ifdef _X86_
00033 
00034 #define setjmp    _setjmp
00035 #define _JBLEN    16
00036 
00037 #elif defined(SHx) || defined(MIPS)
00038 
00039 #define setjmp        _setjmp
00040 #define _JBLEN        32
00041 
00042 #elif defined(PPC)
00043 
00044 #define setjmp        _setjmp
00045 #define _JBLEN        64
00046 
00047 #elif defined(ARM)
00048 
00049 #define setjmp        _setjmp
00050 #define _JBLEN        11
00051 
00052 #elif defined(_M_CEE)
00053 
00054 #define setjmp            _setjmp
00055 #define _JBLEN        64
00056 #endif
00057 
00058 // SETJMP: define the buffer type for holding the state information
00059 typedef  int  jmp_buf[_JBLEN];
00060 
00061 // SETJMP: function prototypes
00062 int __cdecl _setjmp(jmp_buf);
00063 void __cdecl longjmp(jmp_buf, int);
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 #endif /* __wcecompat__SETJMP_H__ */

Generated on Mon Jun 5 10:20:45 2006 for Intelligence.kdevelop by  doxygen 1.4.6