File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed
Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 11/*
22 * R : A Computer Language for Statistical Data Analysis
3- * Copyright (C) 2000, 2025 The R Core Team.
3+ * Copyright (C) 2000, 2001 The R Core Team.
44 *
55 * This header file is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU Lesser General Public License as published by
2929#undef FALSE
3030#undef TRUE
3131
32- // Fer now, only when the compiler claims to be a C23 compiler.
33-
34- #if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
35- typedef bool Rboolean ;
36- # define FALSE false
37- # define TRUE true
38- # define _R_RBOOLEAN_IS_BOOL_ 1
39- #else
40- # ifdef __cplusplus
32+ #ifdef __cplusplus
4133extern "C" {
42- # endif
34+ #endif
4335typedef enum { FALSE = 0 , TRUE /*, MAYBE */ } Rboolean ;
4436
45- # ifdef __cplusplus
37+ #ifdef __cplusplus
4638}
47- # endif
4839#endif
4940
5041#endif /* R_EXT_BOOLEAN_H_ */
Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ typedef struct
7373 R_SIZE_T max_vsize;
7474 R_SIZE_T max_nsize;
7575 R_SIZE_T ppsize;
76- // This used to be Rboolean, but that is not guaraneteed to have >= 16 bits
77- int NoRenviron : 16 ;
76+ Rboolean NoRenviron : 16 ;
7877 /* RstartVersion has been added in R 4.2.0. Earlier, NoRenviron was an
7978 int (normally 32-bit like Rboolean), so on most machines the
8079 version would become 0 when setting NoRenviron to FALSE in
You can’t perform that action at this time.
0 commit comments