The R Project SVN R

Rev

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

Rev Author Line No. Line
38856 ripley 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
59039 ripley 3
 *  Copyright (C) 2006-8  The R Core Team.
38856 ripley 4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 2 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 General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
42308 ripley 16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
38856 ripley 18
 */
19
 
60253 ripley 20
/* A header for use with alternative front-ends. Not formally part of
21
 * the API so subject to change without notice. */
38856 ripley 22
 
23
#ifndef REMBEDDED_H_
24
#define REMBEDDED_H_
25
 
26
#ifdef __cplusplus
27
extern "C" {
28
#endif
29
 
30
#include <R_ext/Boolean.h>
31
 
32
extern int Rf_initEmbeddedR(int argc, char *argv[]);
33
extern void Rf_endEmbeddedR(int fatal);
34
 
35
/* From here on down can be helpful in writing tailored startup and
36
   termination code */
37
 
38
#ifndef LibExtern
39
# define LibExtern extern
40
#endif
41
 
42
int Rf_initialize_R(int ac, char **av);
43
void setup_Rmainloop(void);
44
extern void R_ReplDLLinit(void);
44217 ripley 45
extern int R_ReplDLLdo1(void);
38856 ripley 46
 
47
void R_setStartTime(void);
44217 ripley 48
extern void R_RunExitFinalizers(void);
49
extern void CleanEd(void);
50
extern void Rf_KillAllDevices(void);
38856 ripley 51
LibExtern int R_DirtyImage;
44217 ripley 52
extern void R_CleanTempDir(void);
41862 ripley 53
LibExtern char *R_TempDir;    
38856 ripley 54
extern void R_SaveGlobalEnv(void);
55
 
56
 
57
#ifdef unix
58
void fpu_setup(Rboolean start);
59
#endif
60
 
61
#ifdef Win32
44217 ripley 62
extern char *getDLLVersion(void), *getRUser(void), *get_R_HOME(void);
38856 ripley 63
extern void setup_term_ui(void);
64
LibExtern int UserBreak;
65
extern Rboolean AllDevicesKilled;
44217 ripley 66
extern void editorcleanall(void);
38856 ripley 67
extern int GA_initapp(int, char **);
44217 ripley 68
extern void GA_appcleanup(void);
69
extern void readconsolecfg(void);
38856 ripley 70
#endif
71
 
72
#ifdef __cplusplus
73
}
74
#endif
75
 
76
#endif /* REMBEDDED_H_ */