Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
5fe86713
Commit
5fe86713
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-10-08 18:14:23 by sof]
Use __PARALLEL_HASKELL__ rather than PAR when -cpp'ing Haskell source
parent
e3122c9e
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ghc/lib/ghc/IOBase.lhs
+1
-1
1 addition, 1 deletion
ghc/lib/ghc/IOBase.lhs
ghc/lib/required/IO.lhs
+7
-7
7 additions, 7 deletions
ghc/lib/required/IO.lhs
with
8 additions
and
8 deletions
ghc/lib/ghc/IOBase.lhs
+
1
−
1
View file @
5fe86713
...
...
@@ -396,7 +396,7 @@ type Handle = MutableVar RealWorld Handle__
data Handle__
= ErrorHandle IOError
| ClosedHandle
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
| SemiClosedHandle ForeignObj (Addr, Int)
| ReadHandle ForeignObj (Maybe BufferMode) Bool
| WriteHandle ForeignObj (Maybe BufferMode) Bool
...
...
This diff is collapsed.
Click to expand it.
ghc/lib/required/IO.lhs
+
7
−
7
View file @
5fe86713
...
...
@@ -343,7 +343,7 @@ lazyReadBlock handle =
if bytes < 0 then
_ccall_ free buf >>= \ () ->
_ccall_ closeFile fp >>
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
writeForeignObj fp ``NULL'' >>
ioToST (writeHandle handle (SemiClosedHandle fp (``NULL'', 0))) >>
#else
...
...
@@ -371,7 +371,7 @@ lazyReadLine handle =
if bytes < 0 then
_ccall_ free buf >>= \ () ->
_ccall_ closeFile fp >>
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
writeForeignObj fp ``NULL'' >>
ioToST (writeHandle handle (SemiClosedHandle fp (``NULL'', 0))) >>
#else
...
...
@@ -395,7 +395,7 @@ lazyReadChar handle =
_ccall_ readChar fp >>= \ char ->
if char == ``EOF'' then
_ccall_ closeFile fp >>
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
writeForeignObj fp ``NULL'' >>
ioToST (writeHandle handle (SemiClosedHandle fp (``NULL'', 0))) >>
#else
...
...
@@ -498,14 +498,14 @@ hPutStr handle str =
else
constructErrorAndFail "hPutStr"
where
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
writeLines :: ForeignObj -> String -> PrimIO Bool
#else
writeLines :: Addr -> String -> PrimIO Bool
#endif
writeLines = writeChunks ``BUFSIZ'' True
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
writeBlocks :: ForeignObj -> Int -> String -> PrimIO Bool
#else
writeBlocks :: Addr -> Int -> String -> PrimIO Bool
...
...
@@ -524,7 +524,7 @@ hPutStr handle str =
a whole lot quicker. -- SOF 3/96
-}
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
writeChunks :: Int -> Bool -> ForeignObj -> String -> PrimIO Bool
#else
writeChunks :: Int -> Bool -> Addr -> String -> PrimIO Bool
...
...
@@ -562,7 +562,7 @@ hPutStr handle str =
in
shoveString 0# s
#ifndef PAR
#ifndef
__
PAR
ALLEL_HASKELL__
writeChars :: ForeignObj -> String -> PrimIO Bool
#else
writeChars :: Addr -> String -> PrimIO Bool
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment