Commit 996872c5 authored by Martin Maechler's avatar Martin Maechler
Browse files

no longer define USE_RINTERNALS (and move to Rgmp.h)

parent 4a32fe95
^make_
DESCRIPTION_
\.diff$
\.grep$
\.out$
\ No newline at end of file
Package: gmp
Version: 0.6-3
Date: 2021-03-29
Date: 2021-08-12
Title: Multiple Precision Arithmetic
Author: Antoine Lucas, Immanuel Scholz, Rainer Boehme <rb-gmp@reflex-studio.de>,
Sylvain Jasson <Sylvain.Jasson@inrae.fr>,
......
......@@ -9,11 +9,14 @@
#include <gmp.h>
#include <R.h>
#define R_NO_REMAP // avoid collisions with stl definitions such as length()
#include <Rinternals.h>
#ifndef AS_INTEGER
// the only thing we use from <Rdefines.h> :
#define AS_INTEGER(x) coerceVector(x,INTSXP)
#define AS_INTEGER(x) Rf_coerceVector(x,INTSXP)
#endif
#define class_P(_x_) CHAR(Rf_asChar(Rf_getAttrib(_x_, R_ClassSymbol)))
......
......@@ -11,11 +11,7 @@
* \note Licence: GPL (>= 2)
*/
#define USE_RINTERNALS
#define R_NO_REMAP // avoid collisions with stl definitions
#include "biginteger.h"
#include <Rinternals.h>
#include <stdio.h>
#include <iostream>
......
......@@ -12,12 +12,8 @@
* \note Licence: GPL (>= 2)
*/
#define USE_RINTERNALS
#define R_NO_REMAP // avoid collisions with stl definitions
#include "bigrational.h"
#include "bigrationalR.h"
#include <Rinternals.h>
#include <stdio.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment