X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9d85ead7a4eb80631f931e45d894a446c7e73bb6:/src/win32/win32_ucontext_src/ucontext.c..1c10206dfec917be0f5b3f4964f82b0c959436e2:/src/xbt/win32_ucontext.c diff --git a/src/win32/win32_ucontext_src/ucontext.c b/src/xbt/win32_ucontext.c similarity index 95% rename from src/win32/win32_ucontext_src/ucontext.c rename to src/xbt/win32_ucontext.c index f95aadab02..3051d05d6a 100644 --- a/src/win32/win32_ucontext_src/ucontext.c +++ b/src/xbt/win32_ucontext.c @@ -36,7 +36,7 @@ int getcontext(ucontext_t *ucp) int setcontext(const ucontext_t *ucp) { int ret; - + /* Restore the full machine context (already set) */ ret = SetThreadContext(GetCurrentThread(), &ucp->uc_mcontext); @@ -50,7 +50,7 @@ int makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) char *sp; /* Stack grows down */ - sp = (char *) (size_t) ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size; + sp = (char *) (size_t) ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size; /* Reserve stack space for the arguments (maximum possible: argc*(8 bytes per argument)) */ sp -= argc*8; @@ -93,4 +93,4 @@ int swapcontext(ucontext_t *oucp, const ucontext_t *ucp) ret = setcontext(ucp); } return ret; -} \ No newline at end of file +}