Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,268
Issues
4,268
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
412
Merge Requests
412
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
fe3740bd
Commit
fe3740bd
authored
Jan 19, 2014
by
Herbert Valerio Riedel
🕺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make `#include "Rts.h"` C++-compatible again (re
#8676
)
Signed-off-by:
Herbert Valerio Riedel
<
hvr@gnu.org
>
parent
1ad599ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
includes/rts/Threads.h
includes/rts/Threads.h
+1
-1
includes/rts/storage/Block.h
includes/rts/storage/Block.h
+6
-6
includes/rts/storage/ClosureMacros.h
includes/rts/storage/ClosureMacros.h
+2
-2
No files found.
includes/rts/Threads.h
View file @
fe3740bd
...
@@ -68,6 +68,6 @@ extern Capability MainCapability;
...
@@ -68,6 +68,6 @@ extern Capability MainCapability;
// Change the number of capabilities (only supports increasing the
// Change the number of capabilities (only supports increasing the
// current value at the moment).
// current value at the moment).
//
//
extern
void
setNumCapabilities
(
nat
new
);
extern
void
setNumCapabilities
(
nat
new
_
);
#endif
/* RTS_THREADS_H */
#endif
/* RTS_THREADS_H */
includes/rts/storage/Block.h
View file @
fe3740bd
...
@@ -248,17 +248,17 @@ dbl_link_insert_after(bdescr *bd, bdescr *after)
...
@@ -248,17 +248,17 @@ dbl_link_insert_after(bdescr *bd, bdescr *after)
}
}
INLINE_HEADER
void
INLINE_HEADER
void
dbl_link_replace
(
bdescr
*
new
,
bdescr
*
old
,
bdescr
**
list
)
dbl_link_replace
(
bdescr
*
new
_
,
bdescr
*
old
,
bdescr
**
list
)
{
{
new
->
link
=
old
->
link
;
new
_
->
link
=
old
->
link
;
new
->
u
.
back
=
old
->
u
.
back
;
new
_
->
u
.
back
=
old
->
u
.
back
;
if
(
old
->
link
)
{
if
(
old
->
link
)
{
old
->
link
->
u
.
back
=
new
;
old
->
link
->
u
.
back
=
new
_
;
}
}
if
(
old
->
u
.
back
)
{
if
(
old
->
u
.
back
)
{
old
->
u
.
back
->
link
=
new
;
old
->
u
.
back
->
link
=
new
_
;
}
else
{
}
else
{
*
list
=
new
;
*
list
=
new
_
;
}
}
}
}
...
...
includes/rts/storage/ClosureMacros.h
View file @
fe3740bd
...
@@ -245,12 +245,12 @@ TAG_CLOSURE(StgWord tag,StgClosure * p)
...
@@ -245,12 +245,12 @@ TAG_CLOSURE(StgWord tag,StgClosure * p)
INLINE_HEADER
rtsBool
LOOKS_LIKE_INFO_PTR_NOT_NULL
(
StgWord
p
)
INLINE_HEADER
rtsBool
LOOKS_LIKE_INFO_PTR_NOT_NULL
(
StgWord
p
)
{
{
StgInfoTable
*
info
=
INFO_PTR_TO_STRUCT
((
StgInfoTable
*
)
p
);
StgInfoTable
*
info
=
INFO_PTR_TO_STRUCT
((
StgInfoTable
*
)
p
);
return
info
->
type
!=
INVALID_OBJECT
&&
info
->
type
<
N_CLOSURE_TYPES
;
return
(
info
->
type
!=
INVALID_OBJECT
&&
info
->
type
<
N_CLOSURE_TYPES
)
?
rtsTrue
:
rtsFalse
;
}
}
INLINE_HEADER
rtsBool
LOOKS_LIKE_INFO_PTR
(
StgWord
p
)
INLINE_HEADER
rtsBool
LOOKS_LIKE_INFO_PTR
(
StgWord
p
)
{
{
return
p
&&
(
IS_FORWARDING_PTR
(
p
)
||
LOOKS_LIKE_INFO_PTR_NOT_NULL
(
p
))
;
return
(
p
&&
(
IS_FORWARDING_PTR
(
p
)
||
LOOKS_LIKE_INFO_PTR_NOT_NULL
(
p
)))
?
rtsTrue
:
rtsFalse
;
}
}
INLINE_HEADER
rtsBool
LOOKS_LIKE_CLOSURE_PTR
(
void
*
p
)
INLINE_HEADER
rtsBool
LOOKS_LIKE_CLOSURE_PTR
(
void
*
p
)
...
...
Write
Preview
Markdown
is supported
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