Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
09e176a5
Commit
09e176a5
authored
7 years ago
by
stepan
Browse files
Options
Downloads
Patches
Plain Diff
Add R_MakeExternalPtrFn and R_ExternalPtrAddrFn RAPI functions
parent
494e957f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
com.oracle.truffle.r.native/fficall/src/truffle_common/Rinternals_truffle_common.h
+10
-0
10 additions, 0 deletions
...ve/fficall/src/truffle_common/Rinternals_truffle_common.h
com.oracle.truffle.r.native/version.source
+1
-1
1 addition, 1 deletion
com.oracle.truffle.r.native/version.source
with
11 additions
and
1 deletion
com.oracle.truffle.r.native/fficall/src/truffle_common/Rinternals_truffle_common.h
+
10
−
0
View file @
09e176a5
...
...
@@ -66,6 +66,15 @@
#include
<rffiutils.h>
// these two functions are here just to handle casting void* to void function pointers...
DL_FUNC
R_ExternalPtrAddrFn
(
SEXP
s
)
{
return
(
DL_FUNC
)
R_ExternalPtrAddr
(
s
);
}
SEXP
R_MakeExternalPtrFn
(
DL_FUNC
p
,
SEXP
tag
,
SEXP
prot
)
{
return
R_MakeExternalPtr
((
void
*
)
p
,
tag
,
prot
);
}
// R_GlobalEnv et al are not a variables in FASTR as they are RContext specific
SEXP
FASTR_R_GlobalEnv
()
{
TRACE0
();
...
...
@@ -1391,6 +1400,7 @@ SEXP R_MakeExternalPtr(void *p, SEXP tag, SEXP prot) {
}
void
*
R_ExternalPtrAddr
(
SEXP
s
)
{
TRACE0
();
SEXP
result
=
((
call_R_ExternalPtrAddr
)
callbacks
[
R_ExternalPtrAddr_x
])(
s
);
checkExitCall
();
...
...
This diff is collapsed.
Click to expand it.
com.oracle.truffle.r.native/version.source
+
1
−
1
View file @
09e176a5
4
0
4
1
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