Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
1c21d12e
Unverified
Commit
1c21d12e
authored
Jul 12, 2020
by
James Lamb
Committed by
GitHub
Jul 12, 2020
Browse files
removing custom R-to-C++ interface (#3223)
parent
2792923d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
R-package/src/R_object_helper.h
R-package/src/R_object_helper.h
+5
-11
No files found.
R-package/src/R_object_helper.h
View file @
1c21d12e
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment