diff options
author | rsc <devnull@localhost> | 2005-11-04 16:34:19 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-11-04 16:34:19 +0000 |
commit | 1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a (patch) | |
tree | 2df6702fe73590dbf26e59a854d903481362574a /src/libthread/power-ucontext.h | |
parent | b4d5d19438106b3904185eb9ba7d6e1b8b0cfdf7 (diff) | |
download | plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.tar.gz plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.tar.bz2 plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.zip |
use macro for getcontext (setjmp)
Diffstat (limited to 'src/libthread/power-ucontext.h')
-rw-r--r-- | src/libthread/power-ucontext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libthread/power-ucontext.h b/src/libthread/power-ucontext.h index a39be28a..a25d480a 100644 --- a/src/libthread/power-ucontext.h +++ b/src/libthread/power-ucontext.h @@ -1,3 +1,5 @@ +#define setcontext(u) _setmcontext(&(u)->uc_mcontext) +#define getcontext(u) _getmcontext(&(u)->uc_mcontext) typedef struct mcontext mcontext_t; typedef struct ucontext ucontext_t; struct mcontext @@ -27,8 +29,6 @@ struct ucontext }; void makecontext(ucontext_t*, void(*)(void), int, ...); -int getcontext(ucontext_t*); -int setcontext(ucontext_t*); int swapcontext(ucontext_t*, ucontext_t*); int _getmcontext(mcontext_t*); void _setmcontext(mcontext_t*); |