Non-local goto as specified in ANSI C. More...
#include <config.h>
Go to the source code of this file.
Typedefs | |
| typedef int | jmp_buf[6] |
| Information stored for non-local jumps. More... | |
Functions | |
| int | setjmp (jmp_buf env) |
| Save execution context for non-local goto. More... | |
| void | longjmp (jmp_buf env, int val) |
| Non-local jump to saved machine context. More... | |
Non-local goto as specified in ANSI C.
Definition in file setjmp.h.
| typedef int jmp_buf[6] |
Information stored for non-local jumps.
Stores the machine status for non-local jumps. The H8/300 CPU has the following state information:
| void longjmp | ( | jmp_buf | env, |
| int | val | ||
| ) |
Non-local jump to saved machine context.
Restores a machine context as saved via setjmp.
| env | the buffer of the saved machine status |
| val | the value to return from the setjmp function |
| int setjmp | ( | jmp_buf | env | ) |
Save execution context for non-local goto.
Records the current machine status for a non-local goto. The saved status will be invalidated when returning from the stack frame where it was set.
| env | buffer for saved machine status |
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |
1.8.9.1