-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for R 3.6 and remove dead code (#411)
* Drop support for R 3.6 * NEWS bullet * Remove dead code from tests * Remove dead code from `environment.hpp` * Remove dead code from `protect.hpp` * Simplify `altrep.hpp` as much as possible Likely still need to keep it around for compatibility reasons * NEWS bullet about `altrep.hpp` * Bring back dummy `HAS_UNWIND_PROTECT` and remove all usage of it
- Loading branch information
1 parent
dc93fb8
commit 4b4d780
Showing
15 changed files
with
22 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,6 @@ | ||
#pragma once | ||
|
||
#include "Rversion.h" | ||
|
||
#if defined(R_VERSION) && R_VERSION >= R_Version(3, 5, 0) | ||
// It would be nice to remove this since all supported versions of R have ALTREP, but | ||
// some groups rely on both this `#define` and `altrep.hpp` itself existing, like arrow: | ||
// https://github.com/apache/arrow/blob/50f2d6e04e8323119d4dd31506827ee398d6b8e4/r/src/altrep.cpp#L27-L29 | ||
#define HAS_ALTREP | ||
#endif | ||
|
||
#ifndef HAS_ALTREP | ||
|
||
#define ALTREP(x) false | ||
|
||
#define REAL_ELT(x, i) REAL(x)[i] | ||
#define INTEGER_ELT(x, i) INTEGER(x)[i] | ||
#define LOGICAL_ELT(x, i) LOGICAL(x)[i] | ||
#define RAW_ELT(x, i) RAW(x)[i] | ||
|
||
#define SET_REAL_ELT(x, i, val) REAL(x)[i] = val | ||
#define SET_INTEGER_ELT(x, i, val) INTEGER(x)[i] = val | ||
#define SET_LOGICAL_ELT(x, i, val) LOGICAL(x)[i] = val | ||
#define SET_RAW_ELT(x, i, val) RAW(x)[i] = val | ||
|
||
#define REAL_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
|
||
#define INTEGER_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
#endif | ||
|
||
#if !defined HAS_ALTREP || (defined(R_VERSION) && R_VERSION < R_Version(3, 6, 0)) | ||
|
||
#define LOGICAL_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
|
||
#define RAW_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters