Last change
on this file since 0170798 was 5fa506d, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Include file cleanup.
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /*
|
---|
2 | =============================================================================
|
---|
3 | setjmp.h -- header for setjmp() and longjmp() functions
|
---|
4 | Version 1 -- 1987-06-11 -- D.N. Lynx Crowe
|
---|
5 |
|
---|
6 | Registers a0 and d0 are assumed to be scratch registers,
|
---|
7 | and are not saved by these functions.
|
---|
8 |
|
---|
9 | Register d0 is usually used as the return value register.
|
---|
10 | Exception: Motorola C uses a0 for the return value if it's a pointer.
|
---|
11 |
|
---|
12 | This is true of most C compilers for the 68000, including:
|
---|
13 | Digital Research / Alcyon, Lattice, Aztec / Manx, Greenhills, Motorola.
|
---|
14 | =============================================================================
|
---|
15 | */
|
---|
16 |
|
---|
17 | #pragma once
|
---|
18 |
|
---|
19 | #include "stdint.h"
|
---|
20 |
|
---|
21 | struct JMP_BUF { /* setjmp() / longjmp() environment structure */
|
---|
22 |
|
---|
23 | int32_t jmpret; /* return address */
|
---|
24 |
|
---|
25 | int32_t jmp_d1; /* data registers */
|
---|
26 | int32_t jmp_d2;
|
---|
27 | int32_t jmp_d3;
|
---|
28 | int32_t jmp_d4;
|
---|
29 | int32_t jmp_d5;
|
---|
30 | int32_t jmp_d6;
|
---|
31 | int32_t jmp_d7;
|
---|
32 |
|
---|
33 | int32_t jmp_a1; /* address registers */
|
---|
34 | int32_t jmp_a2;
|
---|
35 | int32_t jmp_a3;
|
---|
36 | int32_t jmp_a4;
|
---|
37 | int32_t jmp_a5;
|
---|
38 | int32_t jmp_a6;
|
---|
39 | int32_t jmp_a7;
|
---|
40 | };
|
---|
41 |
|
---|
42 | typedef struct JMP_BUF jmp_buf;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.