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

fix native copyrights

parent 27c3682b
Branches
No related tags found
No related merge requests found
......@@ -146,3 +146,142 @@ SEXP SETCAD4R(SEXP e, SEXP y) {
return NULL;
}
SEXP FORMALS(SEXP x) {
return unimplemented("FORMALS");
}
SEXP BODY(SEXP x) {
return unimplemented("BODY");
}
SEXP CLOENV(SEXP x) {
return unimplemented("CLOENV");
}
int RDEBUG(SEXP x) {
return (int) unimplemented("RDEBUG");
}
int RSTEP(SEXP x) {
return (int) unimplemented("RSTEP");
}
int RTRACE(SEXP x) {
return (int) unimplemented("RTRACE");
}
void SET_RDEBUG(SEXP x, int v) {
unimplemented("SET_RDEBUG");
}
void SET_RSTEP(SEXP x, int v) {
unimplemented("SET_RSTEP");
}
void SET_RTRACE(SEXP x, int v) {
unimplemented("SET_RTRACE");
}
void SET_FORMALS(SEXP x, SEXP v) {
unimplemented("SET_FORMALS");
}
void SET_BODY(SEXP x, SEXP v) {
unimplemented("SET_BODY");
}
void SET_CLOENV(SEXP x, SEXP v) {
unimplemented("SET_CLOENV");
}
SEXP SYMVALUE(SEXP x) {
return unimplemented("SYMVALUE");
}
SEXP INTERNAL(SEXP x) {
return unimplemented("INTERNAL");
}
int DDVAL(SEXP x) {
return (int) unimplemented("DDVAL");
}
void SET_DDVAL(SEXP x, int v) {
unimplemented("SET_DDVAL");
}
void SET_SYMVALUE(SEXP x, SEXP v) {
unimplemented("SET_SYMVALUE");
}
void SET_INTERNAL(SEXP x, SEXP v) {
unimplemented("SET_INTERNAL");
}
SEXP FRAME(SEXP x) {
return unimplemented("FRAME");
}
SEXP ENCLOS(SEXP x) {
return unimplemented("ENCLOS");
}
SEXP HASHTAB(SEXP x) {
return unimplemented("HASHTAB");
}
int ENVFLAGS(SEXP x) {
return (int) unimplemented("ENVFLAGS");
}
void SET_ENVFLAGS(SEXP x, int v) {
unimplemented("SET_ENVFLAGS");
}
void SET_FRAME(SEXP x, SEXP v) {
unimplemented("SET_FRAME");
}
void SET_ENCLOS(SEXP x, SEXP v) {
unimplemented("SET_ENCLOS");
}
void SET_HASHTAB(SEXP x, SEXP v) {
unimplemented("SET_HASHTAB");
}
SEXP PRCODE(SEXP x) {
return unimplemented("PRCODE");
}
SEXP PRENV(SEXP x) {
return unimplemented("PRENV");
}
SEXP PRVALUE(SEXP x) {
return unimplemented("PRVALUE");
}
int PRSEEN(SEXP x) {
return (int) unimplemented("PRSEEN");
}
void SET_PRSEEN(SEXP x, int v) {
unimplemented("SET_PRSEEN");
}
void SET_PRENV(SEXP x, SEXP v) {
unimplemented("SET_PRENV");
}
void SET_PRVALUE(SEXP x, SEXP v) {
unimplemented("SET_PRVALUE");
}
void SET_PRCODE(SEXP x, SEXP v) {
unimplemented("SET_PRCODE");
}
/*
* Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This material is distributed under the GNU General Public License
* Version 2. You may review the terms of this license at
* http://www.gnu.org/licenses/gpl-2.0.html
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* Copyright (c) 1995-2015, The R Core Team
* Copyright (c) 2003, The R Foundation
* Copyright (c) 2015, Oracle and/or its affiliates
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
* All rights reserved.
*/
#include "rffiutils.h"
......
/*
* Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This material is distributed under the GNU General Public License
* Version 2. You may review the terms of this license at
* http://www.gnu.org/licenses/gpl-2.0.html
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* Copyright (c) 1995-2015, The R Core Team
* Copyright (c) 2003, The R Foundation
* Copyright (c) 2015, Oracle and/or its affiliates
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
* All rights reserved.
*/
#include "rffiutils.h"
......
......@@ -65,7 +65,7 @@ void R_CheckUserInterrupt() {
}
R_len_t R_BadLongVector(SEXP x, const char *y, int z) {
unimplemented("R_BadLongVector");
return (R_len_t) unimplemented("R_BadLongVector");
}
int IS_S4_OBJECT(SEXP x) {
......@@ -81,53 +81,59 @@ void UNSET_S4_OBJECT(SEXP x) {
}
Rboolean R_ToplevelExec(void (*fun)(void *), void *data) {
unimplemented("R_ToplevelExec");
return (Rboolean) unimplemented("R_ToplevelExec");
}
SEXP R_ExecWithCleanup(SEXP (*fun)(void *), void *data,
void (*cleanfun)(void *), void *cleandata) {
unimplemented("R_ExecWithCleanup");
return unimplemented("R_ExecWithCleanup");
}
#include <R_ext/Connections.h>
SEXP R_new_custom_connection(const char *description, const char *mode, const char *class_name, Rconnection *ptr) {
unimplemented("R_new_custom_connection");
return unimplemented("R_new_custom_connection");
}
size_t R_ReadConnection(Rconnection con, void *buf, size_t n) {
unimplemented("R_ReadConnection");
return (size_t) unimplemented("R_ReadConnection");
}
size_t R_WriteConnection(Rconnection con, void *buf, size_t n) {
unimplemented("R_WriteConnection");
return (size_t) unimplemented("R_WriteConnection");
}
SEXP R_tryEval(SEXP x, SEXP y, int *z) {
unimplemented("R_tryEval");
return unimplemented("R_tryEval");
}
SEXP R_tryEvalSilent(SEXP x, SEXP y, int *z) {
unimplemented("R_tryEvalSilent");
return unimplemented("R_tryEvalSilent");
}
size_t Riconv (void *cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft) {
unimplemented("Riconv");
return 0;
return (size_t) unimplemented("Riconv");
}
int Riconv_close (void *cd) {
unimplemented("Riconv_close");
return (int) unimplemented("Riconv_close");
return 0;
}
void * Riconv_open (const char* tocode, const char* fromcode) {
unimplemented("Riconv_open");
return NULL;
return unimplemented("Riconv_open");
}
const char *reEnc(const char *x, cetype_t ce_in, cetype_t ce_out, int subst) {
// TODO: proper implementation of reEnc
return x;
}
SEXP R_PromiseExpr(SEXP x) {
return unimplemented("R_PromiseExpr");
}
SEXP R_ClosureExpr(SEXP x) {
return unimplemented("R_ClosureExpr");
}
/*
* Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This material is distributed under the GNU General Public License
* Version 2. You may review the terms of this license at
* http://www.gnu.org/licenses/gpl-2.0.html
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* Copyright (c) 1995-2015, The R Core Team
* Copyright (c) 2003, The R Foundation
* Copyright (c) 2015, Oracle and/or its affiliates
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
* All rights reserved.
*/
#include "rffiutils.h"
// selected functions copied from sys-unix.c and sysutils.c:
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995-1996 Robert Gentleman and Ross Ihaka
* Copyright (C) 1997-2014 The R Core Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, a copy is available at
* http://www.r-project.org/Licenses/
*/
#include <sys/stat.h>
static char newFileName[PATH_MAX];
......
/*
* Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This material is distributed under the GNU General Public License
* Version 2. You may review the terms of this license at
* http://www.gnu.org/licenses/gpl-2.0.html
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* Copyright (c) 1995-2015, The R Core Team
* Copyright (c) 2003, The R Foundation
* Copyright (c) 2015, Oracle and/or its affiliates
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
* All rights reserved.
*/
#include "rffiutils.h"
......
/*
* Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This material is distributed under the GNU General Public License
* Version 2. You may review the terms of this license at
* http://www.gnu.org/licenses/gpl-2.0.html
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* Copyright (c) 1995-2015, The R Core Team
* Copyright (c) 2003, The R Foundation
* Copyright (c) 2015, Oracle and/or its affiliates
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
* All rights reserved.
*/
#include "rffiutils.h"
......@@ -28,26 +17,6 @@
// selected functions from util.c:
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995, 1996 Robert Gentleman and Ross Ihaka
* Copyright (C) 1997--2014 The R Core Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, a copy is available at
* http://www.r-project.org/Licenses/
*/
size_t
Rf_utf8towcs(wchar_t *wc, const char *s, size_t n)
{
......
......@@ -39,6 +39,11 @@ com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/utils/Menu.java,gn
com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/utils/WriteTable.java,gnu_r.copyright
com.oracle.truffle.r.native/builtinlibs/src/xerbla.c,gnu_r.copyright
com.oracle.truffle.r.native/fficall/jni/src/register.c,gnu_r.copyright
com.oracle.truffle.r.native/fficall/jni/src/main_engine.c,gnu_r.copyright
com.oracle.truffle.r.native/fficall/jni/src/main_print.c,gnu_r.copyright
com.oracle.truffle.r.native/fficall/jni/src/sys.c,gnu_r.copyright
com.oracle.truffle.r.native/fficall/jni/src/unimplemented.c,gnu_r.copyright
com.oracle.truffle.r.native/fficall/jni/src/util.c,gnu_r.copyright
com.oracle.truffle.r.native/fficall/jni/src/alloc.c,gnu_r.copyright
com.oracle.truffle.r.native/include/jni/src/libintl.h,no.copyright
com.oracle.truffle.r.native/library/base/src/registration.c,no.copyright
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment