The R Project SVN R

Rev

Rev 51845 | Rev 64404 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7728 ripley 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
59039 ripley 3
 *  Copyright (C) 2000-2010 The R Core Team.
7728 ripley 4
 *
5
 *  This program is free software; you can redistribute it and/or modify
12778 pd 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
7728 ripley 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
12778 pd 13
 *  GNU Lesser General Public License for more details.
7728 ripley 14
 *
12778 pd 15
 *  You should have received a copy of the GNU Lesser General Public License
42308 ripley 16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
7728 ripley 18
 */
19
 
20
#ifndef R_R_H
21
#define R_R_H
22
 
23
#ifndef USING_R
51839 ripley 24
# define USING_R
7728 ripley 25
#endif
26
 
42402 ripley 27
#ifndef NO_C_HEADERS
7728 ripley 28
#include <stdlib.h>
51839 ripley 29
#include <stdio.h>  /* Used by several packages, remove in due course */
30
#include <limits.h> /* for INT_MAX */
24732 ripley 31
#include <math.h>
42402 ripley 32
#endif
7728 ripley 33
 
11497 hornik 34
#include <Rconfig.h>
19500 hornik 35
#include <R_ext/Arith.h>      /* R_FINITE, ISNAN, ... */
36
#include <R_ext/Boolean.h>    /* Rboolean type */
37
#include <R_ext/Complex.h>    /* Rcomplex type */
38
#include <R_ext/Constants.h>  /* PI, DOUBLE_EPS, etc */
39
#include <R_ext/Error.h>      /* error and warning */
40
#include <R_ext/Memory.h>     /* R_alloc and S_alloc */
41
#include <R_ext/Print.h>      /* Rprintf etc */
42
#include <R_ext/Random.h>     /* RNG interface */
43
#include <R_ext/Utils.h>      /* sort routines et al */
51845 ripley 44
#include <R_ext/RS.h>
45
/* for PROBLEM ... Calloc, Realloc, Free, Memcpy, F77_xxxx */
7728 ripley 46
 
47
 
48
typedef double Sfloat;
49
typedef int Sint;
10470 maechler 50
#define SINT_MAX INT_MAX
7728 ripley 51
#define SINT_MIN INT_MIN
52
 
42412 ripley 53
#ifdef __cplusplus
54
extern "C" {
55
#endif
56
 
37376 ripley 57
void R_FlushConsole(void);
58
/* always declared, but only usable under Win32 and Aqua */
59
void R_ProcessEvents(void);
60
 
7728 ripley 61
#ifdef __cplusplus
62
}
63
#endif
64
 
65
#endif /* !R_R_H */