Rev 87798 | Rev 87842 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
/** R : A Computer Language for Statistical Data Analysis* Copyright (C) 2000, 2025 The R Core Team.** This header file is free software; you can redistribute it and/or modify* it under the terms of the GNU Lesser General Public License as published by* the Free Software Foundation; either version 2.1 of the License, or* (at your option) any later version.** This file is part of R. R is distributed under the terms of the* GNU General Public License, either Version 2, June 1991 or Version 3,* June 2007. See doc/COPYRIGHTS for details of the copyright status of R.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the* GNU Lesser General Public License for more details.** You should have received a copy of the GNU Lesser General Public License* along with this program; if not, a copy is available at* https://www.R-project.org/Licenses/*//* Included by R.h: API */#ifndef R_EXT_BOOLEAN_H_#define R_EXT_BOOLEAN_H_#undef FALSE#undef TRUE#include <Rconfig.h> /* for HAVE_ENUM_BASE_TYPE *//*Setting the underlying aka base type is supported in C23, C++11and some C compilers based on clang and some versions of GCC.What matters here is the C compiler used to build R.*/#ifdef __cplusplusextern "C" {#endif#ifdef HAVE_ENUM_BASE_TYPE// Apple clang warns even in C23 mode: gcc warns about #pragma clang// LLVM clang no longer warns: we have no good way to filter Apple clang.# if defined __APPLE__ && defined __clang__# pragma clang diagnostic push# pragma clang diagnostic ignored "-Wfixed-enum-extension"# endiftypedef enum :int { FALSE = 0, TRUE } Rboolean; // so NOT NA# if defined __APPLE__ && defined __clang__# pragma clang diagnostic pop# endif#elsetypedef enum { FALSE = 0, TRUE } Rboolean; // so NOT NA#endif#ifdef __cplusplus}#endif#endif /* R_EXT_BOOLEAN_H_ */