From 1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 4 Nov 2005 16:34:19 +0000 Subject: use macro for getcontext (setjmp) --- src/libthread/386-ucontext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libthread/386-ucontext.h') diff --git a/src/libthread/386-ucontext.h b/src/libthread/386-ucontext.h index 35e99ca5..57fd1bd8 100644 --- a/src/libthread/386-ucontext.h +++ b/src/libthread/386-ucontext.h @@ -1,8 +1,8 @@ +#define setcontext(u) setmcontext(&(u)->uc_mcontext) +#define getcontext(u) getmcontext(&(u)->uc_mcontext) typedef struct mcontext mcontext_t; typedef struct ucontext ucontext_t; -extern int getcontext(ucontext_t*); -extern void setcontext(ucontext_t*); extern int swapcontext(ucontext_t*, ucontext_t*); extern void makecontext(ucontext_t*, void(*)(), int, ...); -- cgit v1.2.3