Skip to content
Snippets Groups Projects
Commit 8f95a707 authored by Zbynek Slajchrt's avatar Zbynek Slajchrt
Browse files

Enabling shiny/httpuv

parent 2f0a98ce
Branches
No related tags found
No related merge requests found
...@@ -111,6 +111,8 @@ void *DATAPTR(SEXP x) { ...@@ -111,6 +111,8 @@ void *DATAPTR(SEXP x) {
return REAL(x); return REAL(x);
} else if (type == LGLSXP) { } else if (type == LGLSXP) {
return LOGICAL(x); return LOGICAL(x);
} else if (type == RAWSXP) {
return RAW(x);
} else { } else {
printf("DATAPTR %d\n", type); printf("DATAPTR %d\n", type);
unimplemented("R_DATAPTR"); unimplemented("R_DATAPTR");
......
...@@ -75,6 +75,13 @@ addInputHandler(InputHandler *handlers, int fd, InputHandlerProc handler, ...@@ -75,6 +75,13 @@ addInputHandler(InputHandler *handlers, int fd, InputHandlerProc handler,
return NULL; return NULL;
} }
int
removeInputHandler(InputHandler **handlers, InputHandler *it)
{
unimplemented("removeInputHandler");
return NULL;
}
void setup_RdotApp(void) { void setup_RdotApp(void) {
unimplemented("setup_RdotApp"); unimplemented("setup_RdotApp");
} }
......
...@@ -129,7 +129,7 @@ public abstract class AsFunction extends RBuiltinNode.Arg2 { ...@@ -129,7 +129,7 @@ public abstract class AsFunction extends RBuiltinNode.Arg2 {
RBaseNode body; RBaseNode body;
Object bodyObject = x.getDataAtAsObject(x.getLength() - 1); Object bodyObject = x.getDataAtAsObject(x.getLength() - 1);
if (bodyObject instanceof RLanguage) { if (bodyObject instanceof RLanguage) {
body = ((RLanguage) x.getDataAtAsObject(x.getLength() - 1)).getRep(); body = (RBaseNode) RContext.getASTBuilder().process(((RLanguage) x.getDataAtAsObject(x.getLength() - 1)).getRep().asRSyntaxNode());
} else if (bodyObject instanceof RSymbol) { } else if (bodyObject instanceof RSymbol) {
body = RContext.getASTBuilder().lookup(RSyntaxNode.LAZY_DEPARSE, ((RSymbol) bodyObject).getName(), false).asRNode(); body = RContext.getASTBuilder().lookup(RSyntaxNode.LAZY_DEPARSE, ((RSymbol) bodyObject).getName(), false).asRNode();
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment