Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
c6903c16
Commit
c6903c16
authored
Aug 19, 2004
by
simonmar
Browse files
[project @ 2004-08-19 14:00:48 by simonmar]
Windows fixes.
parent
048304d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
ghc/rts/Makefile
View file @
c6903c16
...
...
@@ -302,6 +302,10 @@ SRC_HC_OPTS += \
-
\#
include Profiling.h
\
-
\#
include Apply.h
ifeq
"$(Windows)" "YES"
PrimOps_HC_OPTS
+=
-
\#
include
'<windows.h>'
-
\#
include win32/AsyncIO.h
endif
# Cmm must be compiled via-C for now, because the NCG can't handle loops
SRC_HC_OPTS
+=
-fvia-C
...
...
ghc/rts/PrimOps.cmm
View file @
c6903c16
...
...
@@ -1438,7 +1438,7 @@ asyncReadzh_fast
/* could probably allocate this on the heap instead */
"ptr" ares = foreign "C" stgMallocBytes(SIZEOF_StgAsyncIOResult,
stg_asyncReadzh_malloc_str);
reqID = foreign "C" addIORequest(R1,FALSE,R2,R3,R4);
reqID = foreign "C" addIORequest(R1,
0/*
FALSE
*/
,R2,R3,R4
"ptr"
);
StgAsyncIOResult_reqID(ares) = reqID;
StgAsyncIOResult_len(ares) = 0;
StgAsyncIOResult_errCode(ares) = 0;
...
...
@@ -1447,7 +1447,7 @@ asyncReadzh_fast
jump stg_block_async;
}
STRING(asyncWritezh_malloc_str, "asyncWritezh_fast")
STRING(
stg_
asyncWritezh_malloc_str, "asyncWritezh_fast")
asyncWritezh_fast
{
W_ ares;
...
...
@@ -1458,8 +1458,8 @@ asyncWritezh_fast
StgTSO_why_blocked(CurrentTSO) = BlockedOnWrite::I16;
"ptr" ares = foreign "C" stgMallocBytes(SIZEOF_StgAsyncIOResult,
asyncWritezh_malloc_str);
reqID = foreign "C" addIORequest(R1,TRUE,R2,R3,R4);
stg_
asyncWritezh_malloc_str);
reqID = foreign "C" addIORequest(R1,
1/*
TRUE
*/
,R2,R3,R4
"ptr"
);
StgAsyncIOResult_reqID(ares) = reqID;
StgAsyncIOResult_len(ares) = 0;
...
...
@@ -1469,7 +1469,7 @@ asyncWritezh_fast
jump stg_block_async;
}
STRING(asyncDoProczh_malloc_str, "asyncDoProczh_fast")
STRING(
stg_
asyncDoProczh_malloc_str, "asyncDoProczh_fast")
asyncDoProczh_fast
{
W_ ares;
...
...
@@ -1481,8 +1481,8 @@ asyncDoProczh_fast
/* could probably allocate this on the heap instead */
"ptr" ares = foreign "C" stgMallocBytes(SIZEOF_StgAsyncIOResult,
asyncDoProczh_malloc_str);
reqID = foreign "C" addDoProcRequest(R1
,R2
);
stg_
asyncDoProczh_malloc_str);
reqID = foreign "C" addDoProcRequest(R1
"ptr",R2 "ptr"
);
StgAsyncIOResult_reqID(ares) = reqID;
StgAsyncIOResult_len(ares) = 0;
StgAsyncIOResult_errCode(ares) = 0;
...
...
ghc/rts/win32/ConsoleHandler.c
View file @
c6903c16
...
...
@@ -9,7 +9,6 @@
#include "Schedule.h"
#include "RtsUtils.h"
#include "RtsFlags.h"
#include "StablePriv.h"
extern
int
stg_InstallConsoleEvent
(
int
action
,
StgStablePtr
*
handler
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment