Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / include / R.h @ 2486

History | View | Annotate | Download (2 kB)

1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 2000-2013 The R Core Team.
4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU Lesser General Public License as published by
7
 *  the Free Software Foundation; either version 2.1 of the License, or
8
 *  (at your option) any later version.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU Lesser General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU Lesser General Public License
16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
18
 */
19

    
20
#ifndef R_R_H
21
#define R_R_H
22

    
23
#ifndef USING_R
24
# define USING_R
25
#endif
26

    
27
#ifndef NO_C_HEADERS
28
#include <stdlib.h>
29
#include <stdio.h>  /* Used by several packages, remove in due course */
30
#include <limits.h> /* for INT_MAX */
31
#include <math.h>
32
# if defined(__sun)
33
# undef DO
34
# undef DS
35
# undef SO
36
# undef SS
37
# endif
38
#endif
39

    
40
#include <Rconfig.h>
41
#include <R_ext/Arith.h>      /* R_FINITE, ISNAN, ... */
42
#include <R_ext/Boolean.h>    /* Rboolean type */
43
#include <R_ext/Complex.h>    /* Rcomplex type */
44
#include <R_ext/Constants.h>  /* PI, DOUBLE_EPS, etc */
45
#include <R_ext/Error.h>      /* error and warning */
46
#include <R_ext/Memory.h>     /* R_alloc and S_alloc */
47
#include <R_ext/Print.h>      /* Rprintf etc */
48
#include <R_ext/Random.h>     /* RNG interface */
49
#include <R_ext/Utils.h>      /* sort routines et al */
50
#include <R_ext/RS.h>
51
/* for PROBLEM ... Calloc, Realloc, Free, Memcpy, F77_xxxx */
52

    
53

    
54
typedef double Sfloat;
55
typedef int Sint;
56
#define SINT_MAX INT_MAX
57
#define SINT_MIN INT_MIN
58

    
59
#ifdef __cplusplus
60
extern "C" {
61
#endif
62

    
63
void R_FlushConsole(void);
64
/* always declared, but only usable under Win32 and Aqua */
65
void R_ProcessEvents(void);
66
#ifdef Win32
67
void R_WaitEvent(void);
68
#endif
69

    
70
#ifdef __cplusplus
71
}
72
#endif
73

    
74
#endif /* !R_R_H */