Skip to content

Commit 348edd7

Browse files
committed
Patch package source: remove reference to usupported R_Interactive, R_isForkedChild, Rf_KillAllDevices
1 parent 97c1e1c commit 348edd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/context/PackagePatching.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public class PackagePatching {
6464
new Patch("reinterpret_cast<.*>\\((.*)\\)->gp &= (\\w+|\\(.*\\))", "SETLEVELS($1, LEVELS($1) & ($2))"),
6565
new Patch("reinterpret_cast<.*>\\((.*)\\)->gp \\|= (\\w+|\\(.*\\))", "SETLEVELS($1, LEVELS($1) | ($2))"),
6666
new Patch("reinterpret_cast<.*>\\((.*)\\)->gp \\^= (\\w+|\\(.*\\))", "SETLEVELS($1, LEVELS($1) ^ ($2))"),
67+
// FastR does not support these global variables:
68+
new Patch("R_Interactive\\s*=\\s*[01]", ""),
69+
new Patch("R_isForkedChild\\s*=\\s*[01]", ""),
70+
new Patch("Rf_KillAllDevices\\s*\\(\\s*\\)", ""),
6771
};
6872

6973
@TruffleBoundary

0 commit comments

Comments
 (0)