Unverified Commit 1c21d12e authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

removing custom R-to-C++ interface (#3223)

parent 2792923d
......@@ -15,8 +15,9 @@
#include <cstdint>
// use .Internal(internalsID()) to uuid
#define R_INTERNALS_UUID "2fdf6c18-697a-4ba7-b8ef-11c0d92f1327"
#define R_NO_REMAP
#define R_USE_C99_IN_CXX
#include <Rinternals.h>
#define NAMED_BITS 16
struct lgbm_sxpinfo {
......@@ -35,13 +36,6 @@ struct lgbm_sxpinfo {
unsigned int extra : 32 - NAMED_BITS;
};
// 64bit pointer
#if INTPTR_MAX == INT64_MAX
typedef int64_t xlen_t;
#else
typedef int xlen_t;
#endif
struct lgbm_primsxp {
int offset;
};
......@@ -91,8 +85,8 @@ typedef struct LGBM_SER {
} LGBM_SER, *LGBM_SE;
struct lgbm_vecsxp {
xlen_t length;
xlen_t truelength;
R_xlen_t length;
R_xlen_t truelength;
};
typedef struct VECTOR_SER {
......
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