Mercurial > ecos
comparison packages/language/c/libc/setjmp/current/include/setjmp.h @ 115:6ed91473a1cd ecos-sw-2000-08-21
Merge from eCos master repository on 2000-08-21-22:40:54-BST
| author | jlarmour |
|---|---|
| date | Fri, 25 Aug 2000 17:32:38 +0000 |
| parents | |
| children | e0c0827131d1 |
comparison
equal
deleted
inserted
replaced
| 114:5ad2b71d525e | 115:6ed91473a1cd |
|---|---|
| 1 #ifndef CYGONCE_LIBC_SETJMP_H | |
| 2 #define CYGONCE_LIBC_SETJMP_H | |
| 3 /*=========================================================================== | |
| 4 // | |
| 5 // setjmp.h | |
| 6 // | |
| 7 // ISO C standard non-local jumps | |
| 8 // | |
| 9 //=========================================================================== | |
| 10 //####COPYRIGHTBEGIN#### | |
| 11 // | |
| 12 // ------------------------------------------- | |
| 13 // The contents of this file are subject to the Red Hat eCos Public License | |
| 14 // Version 1.1 (the "License"); you may not use this file except in | |
| 15 // compliance with the License. You may obtain a copy of the License at | |
| 16 // http://www.redhat.com/ | |
| 17 // | |
| 18 // Software distributed under the License is distributed on an "AS IS" | |
| 19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 20 // License for the specific language governing rights and limitations under | |
| 21 // the License. | |
| 22 // | |
| 23 // The Original Code is eCos - Embedded Configurable Operating System, | |
| 24 // released September 30, 1998. | |
| 25 // | |
| 26 // The Initial Developer of the Original Code is Red Hat. | |
| 27 // Portions created by Red Hat are | |
| 28 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. | |
| 29 // All Rights Reserved. | |
| 30 // ------------------------------------------- | |
| 31 // | |
| 32 //####COPYRIGHTEND#### | |
| 33 //=========================================================================== | |
| 34 //#####DESCRIPTIONBEGIN#### | |
| 35 // | |
| 36 // Author(s): jlarmour | |
| 37 // Contributors: | |
| 38 // Date: 2000-04-30 | |
| 39 // Purpose: | |
| 40 // Description: Header file to implement ISO C standard non-local jumps as | |
| 41 // per ISO C para 7.6 | |
| 42 // Usage: #include <setjmp.h> | |
| 43 // | |
| 44 //####DESCRIPTIONEND#### | |
| 45 // | |
| 46 //=========================================================================*/ | |
| 47 | |
| 48 /* CONFIGURATION */ | |
| 49 | |
| 50 #include <pkgconf/libc_setjmp.h> /* Configuration header */ | |
| 51 | |
| 52 /* INCLUDES */ | |
| 53 | |
| 54 #include <cyg/hal/hal_arch.h> /* HAL architecture specific implementation */ | |
| 55 | |
| 56 /* TYPE DEFINITIONS */ | |
| 57 | |
| 58 /* jmp_buf as per ANSI 7.6. This is simply the underlying HAL buffer */ | |
| 59 | |
| 60 typedef hal_jmp_buf jmp_buf; | |
| 61 | |
| 62 /* MACROS */ | |
| 63 | |
| 64 /* setjmp() function, as described in ANSI para 7.6.1.1 */ | |
| 65 #define setjmp( __env__ ) hal_setjmp( __env__ ) | |
| 66 | |
| 67 /* FUNCTION PROTOTYPES */ | |
| 68 | |
| 69 #ifdef __cplusplus | |
| 70 extern "C" { | |
| 71 #endif | |
| 72 | |
| 73 /* longjmp() function, as described in ANSI para 7.6.2.1 */ | |
| 74 extern void | |
| 75 longjmp( jmp_buf, int ) __attribute__((__noreturn__)); | |
| 76 | |
| 77 #ifdef __cplusplus | |
| 78 } /* extern "C" */ | |
| 79 #endif | |
| 80 | |
| 81 #endif /* CYGONCE_LIBC_SETJMP_H multiple inclusion protection */ | |
| 82 | |
| 83 /* EOF setjmp.h */ |
