Skip to content
Snippets Groups Projects
Commit 55f1a2f8 authored by Mick Jordan's avatar Mick Jordan
Browse files

add missing files

parent 0e1bd47c
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
/com.oracle.truffle.r.native/builtinlibs/lib/*
/com.oracle.truffle.r.native/library/*/lib/*
/com.oracle.truffle.r.native/library/stats/src/fft.c
/com.oracle.truffle.r.native/library/tools/src/gramRd.c
/com.oracle.truffle.r.native/platform.mk
/com.oracle.truffle.r.native/gnur/Makeconf.done
/com.oracle.truffle.r.native/gnur/platform.mk.temp*
......@@ -26,6 +27,8 @@
/com.oracle.truffle.r.test.native/packages/*/lib/*
/com.oracle.truffle.r.test/rpackages/testrlibs_user
/com.oracle.truffle.r.test.native/urand/lib/liburand.so
/com.oracle.truffle.r.release/lib/
/com.oracle.truffle.r.release/library/
/DEPARSE_ERROR
/Rpkgsource/*
/install.cran.logs/
......
#ifndef GRAMRD_FASTR_H
#define GRAMRD_FASTR_H
int callGetCMethod(void *conn);
#endif //GRAMRD_FASTR_H
#include "gramRd_fastr.h"
#include <jni.h>
extern JNIEnv *getEnv();
static jmethodID getcMethodID = NULL;
static void findGetCMethod(JNIEnv *env) {
jclass klass = (*env)->FindClass(env, "com/oracle/truffle/r/runtime/conn/RConnection");
getcMethodID = (*env)->GetMethodID(env, klass, "getc", "()I");
}
int callGetCMethod(void *conn) {
JNIEnv *env = getEnv();
if (getcMethodID == NULL) {
findGetCMethod(env);
}
int c = (*env)->CallIntMethod(env, conn, getcMethodID, conn);
return c;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment