11/*
22 * R : A Computer Language for Statistical Data Analysis
3- * Copyright (C) 2001-2020 The R Core Team.
3+ * Copyright (C) 2001-2025 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
4343 visible - a logical value indicating whether the result was printed to the R ``console''/stdout.
4444 data - user-level data passed to the registration routine.
4545 */
46- typedef Rboolean (* R_ToplevelCallback )(SEXP expr , SEXP value , Rboolean succeeded , Rboolean visible , void * );
46+ typedef bool (* R_ToplevelCallback )(SEXP expr , SEXP value , bool succeeded , bool visible , void * );
4747
4848typedef struct _ToplevelCallback R_ToplevelCallbackEl ;
4949/**
@@ -63,8 +63,8 @@ struct _ToplevelCallback {
6363extern "C" {
6464#endif
6565
66- Rboolean Rf_removeTaskCallbackByIndex (int id );
67- Rboolean Rf_removeTaskCallbackByName (const char * name );
66+ bool Rf_removeTaskCallbackByIndex (int id );
67+ bool Rf_removeTaskCallbackByName (const char * name );
6868SEXP R_removeTaskCallback (SEXP which );
6969R_ToplevelCallbackEl * Rf_addTaskCallback (R_ToplevelCallback cb , void * data , void (* finalizer )(void * ), const char * name , int * pos );
7070
@@ -83,20 +83,20 @@ typedef struct _R_ObjectTable R_ObjectTable;
8383
8484/* Do we actually need the exists() since it is never called but R
8585 uses get to see if the symbol is bound to anything? */
86- typedef Rboolean (* Rdb_exists )(const char * const name , Rboolean * canCache , R_ObjectTable * );
87- typedef SEXP (* Rdb_get )(const char * const name , Rboolean * canCache , R_ObjectTable * );
86+ typedef bool (* Rdb_exists )(const char * const name , bool * canCache , R_ObjectTable * );
87+ typedef SEXP (* Rdb_get )(const char * const name , bool * canCache , R_ObjectTable * );
8888typedef int (* Rdb_remove )(const char * const name , R_ObjectTable * );
8989typedef SEXP (* Rdb_assign )(const char * const name , SEXP value , R_ObjectTable * );
9090typedef SEXP (* Rdb_objects )(R_ObjectTable * );
91- typedef Rboolean (* Rdb_canCache )(const char * const name , R_ObjectTable * );
91+ typedef bool (* Rdb_canCache )(const char * const name , R_ObjectTable * );
9292
9393typedef void (* Rdb_onDetach )(R_ObjectTable * );
9494typedef void (* Rdb_onAttach )(R_ObjectTable * );
9595
9696struct _R_ObjectTable {
9797 int type ;
9898 char * * cachedNames ;
99- Rboolean active ;
99+ bool active ;
100100
101101 Rdb_exists exists ;
102102 Rdb_get get ;
0 commit comments