A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change path for win32 ucontext files.
[simgrid.git]
/
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
f95aada
..
3051d05
100644
(file)
--- 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)
\r
{
\r
int ret;
\r
int setcontext(const ucontext_t *ucp)
\r
{
\r
int ret;
\r
-
\r
+
\r
/* Restore the full machine context (already set) */
\r
ret = SetThreadContext(GetCurrentThread(), &ucp->uc_mcontext);
\r
\r
/* Restore the full machine context (already set) */
\r
ret = SetThreadContext(GetCurrentThread(), &ucp->uc_mcontext);
\r
\r
@@
-50,7
+50,7
@@
int makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
char *sp;
\r
\r
/* Stack grows down */
\r
char *sp;
\r
\r
/* Stack grows down */
\r
- sp = (char *) (size_t) ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size;
\r
+ sp = (char *) (size_t) ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size;
\r
\r
/* Reserve stack space for the arguments (maximum possible: argc*(8 bytes per argument)) */
\r
sp -= argc*8;
\r
\r
/* Reserve stack space for the arguments (maximum possible: argc*(8 bytes per argument)) */
\r
sp -= argc*8;
\r
@@
-93,4
+93,4
@@
int swapcontext(ucontext_t *oucp, const ucontext_t *ucp)
ret = setcontext(ucp);
\r
}
\r
return ret;
\r
ret = setcontext(ucp);
\r
}
\r
return ret;
\r
-}
\ No newline at end of file
+}
\r