use macro for getcontext (setjmp)

This commit is contained in:
rsc 2005-11-04 16:34:19 +00:00
parent b4d5d19438
commit 1e05fdf92c
8 changed files with 25 additions and 56 deletions

View file

@ -15,19 +15,6 @@ makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
va_end(arg);
}
int
getcontext(ucontext_t *uc)
{
return _getmcontext(&uc->mc);
}
int
setcontext(ucontext_t *uc)
{
_setmcontext(&uc->mc);
return 0;
}
int
swapcontext(ucontext_t *oucp, ucontext_t *ucp)
{