CXXR (C++ R)
R.h
Go to the documentation of this file.
1 /*CXXR $Id: R.h 1348 2013-02-25 17:49:03Z arr $
2  *CXXR
3  *CXXR This file is part of CXXR, a project to refactor the R interpreter
4  *CXXR into C++. It may consist in whole or in part of program code and
5  *CXXR documentation taken from the R project itself, incorporated into
6  *CXXR CXXR (and possibly MODIFIED) under the terms of the GNU General Public
7  *CXXR Licence.
8  *CXXR
9  *CXXR CXXR is Copyright (C) 2008-13 Andrew R. Runnalls, subject to such other
10  *CXXR copyrights and copyright restrictions as may be stated below.
11  *CXXR
12  *CXXR CXXR is not part of the R project, and bugs and other issues should
13  *CXXR not be reported via r-bugs or other R project channels; instead refer
14  *CXXR to the CXXR website.
15  *CXXR */
16 
17 /*
18  * R : A Computer Language for Statistical Data Analysis
19  * Copyright (C) 2000-2010 The R Core Team.
20  *
21  * This program is free software; you can redistribute it and/or modify
22  * it under the terms of the GNU Lesser General Public License as published by
23  * the Free Software Foundation; either version 2.1 of the License, or
24  * (at your option) any later version.
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29  * GNU Lesser General Public License for more details.
30  *
31  * You should have received a copy of the GNU Lesser General Public License
32  * along with this program; if not, a copy is available at
33  * http://www.r-project.org/Licenses/
34  */
35 
41 #ifndef R_R_H
42 #define R_R_H
43 
44 #ifndef USING_R
45 # define USING_R
46 #endif
47 
48 #ifndef NO_C_HEADERS
49 #include <stdlib.h>
50 #include <stdio.h> /* Used by several packages, remove in due course */
51 #include <limits.h> /* for INT_MAX */
52 #include <math.h>
53 #endif
54 
55 #include <Rconfig.h>
56 #include <R_ext/Arith.h> /* R_FINITE, ISNAN, ... */
57 #include <R_ext/Boolean.h> /* Rboolean type */
58 #include <R_ext/Complex.h> /* Rcomplex type */
59 #include <R_ext/Constants.h> /* PI, DOUBLE_EPS, etc */
60 #include <R_ext/Error.h> /* error and warning */
61 #include <R_ext/Memory.h> /* R_alloc and S_alloc */
62 #include <R_ext/Print.h> /* Rprintf etc */
63 #include <R_ext/Random.h> /* RNG interface */
64 #include <R_ext/Utils.h> /* sort routines et al */
65 #include <R_ext/RS.h>
66 /* for PROBLEM ... Calloc, Realloc, Free, Memcpy, F77_xxxx */
67 
68 
69 typedef double Sfloat;
70 typedef int Sint;
71 #define SINT_MAX INT_MAX
72 #define SINT_MIN INT_MIN
73 
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77 
78 void R_FlushConsole(void);
79 /* always declared, but only usable under Win32 and Aqua */
80 void R_ProcessEvents(void);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif /* !R_R_H */