summary refs log tree commit diff
path: root/pkgs/development/compilers/graalvm/007_unimplemented.c.patch
blob: 96cca7ed239b60388da2e86534d5207ee12b6a4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
diff --git a/com.oracle.truffle.r.native/fficall/src/common/unimplemented.c b/com.oracle.truffle.r.native/fficall/src/common/unimplemented.c
index dcf081316..c2cb4879b 100644
--- a/com.oracle.truffle.r.native/fficall/src/common/unimplemented.c
+++ b/com.oracle.truffle.r.native/fficall/src/common/unimplemented.c
@@ -20,8 +20,10 @@
 
 #include <Rinternals.h>
 #include <stdlib.h>
+#include <rlocale.h>
 
 #include <R_ext/eventloop.h>
+#include <R_ext/GraphicsEngine.h>
 #include <Defn.h>
 
 Rboolean known_to_be_latin1 = FALSE;
@@ -166,3 +168,69 @@ int Scollate(SEXP a, SEXP b) {
 void z_prec_r(Rcomplex *r, Rcomplex *x, double digits) {
     unimplemented("z_prec_r");
 }
+
+int Rf_AdobeSymbol2ucs2(int n) {
+  unimplemented("Rf_AdobeSymbol2ucs2");
+  return 0;
+}
+
+size_t Mbrtowc(wchar_t *wc, const char *s, size_t n, mbstate_t *ps) {
+  unimplemented("Mbrtowc");
+  return 0;
+}
+
+double R_GE_VStrHeight(const char *s, cetype_t enc, const pGEcontext gc, pGEDevDesc dd) {
+  unimplemented("R_GE_VStrHeight");
+  return 0;
+}
+
+void R_GE_VText(double x, double y, const char * const s, cetype_t enc,
+		double x_justify, double y_justify, double rotation,
+		const pGEcontext gc, pGEDevDesc dd) {
+  unimplemented("R_GE_VText");
+}
+
+double R_GE_VStrWidth(const char *s, cetype_t enc, const pGEcontext gc, pGEDevDesc dd) {
+  unimplemented("R_GE_VStrWidth");
+}
+
+void setulb(int n, int m, double *x, double *l, double *u, int *nbd,
+	    double *f, double *g, double factr, double *pgtol,
+	    double *wa, int * iwa, char *task, int iprint, int *isave) {
+  unimplemented("setulb");
+}
+
+void genptry(int n, double *p, double *ptry, double scale, void *ex) {
+  unimplemented("genptry");
+}
+
+double EXP(double x) {
+  unimplemented("EXP");
+  return 0;
+}
+
+double LOG(double x) {
+  unimplemented("LOG");
+  return 0;
+}
+
+Rwchar_t Rf_utf8toucs32(wchar_t high, const char *s) {
+  unimplemented("Rf_utf8toucs32");
+  return 0;
+}
+
+size_t mbtoucs(unsigned int *wc, const char *s, size_t n) {
+  unimplemented("mbtoucs");
+  return (size_t) 0;
+}
+
+
+int DispatchOrEval(SEXP call, SEXP op, const char *generic, SEXP args,
+		   SEXP rho, SEXP *ans, int dropmissing, int argsevald) {
+  unimplemented("DispatchOrEval");
+  return 0;
+}
+
+void ENSURE_NAMEDMAX (SEXP x) {
+  unimplemented("ENSURE_NAMEDMAX");
+}