52 #include <R_ext/Boolean.h>
53 #include <R_ext/RStartup.h>
58 extern Rboolean R_Interactive;
59 extern Rboolean R_Slave;
61 extern void R_RestoreGlobalEnv(
void);
62 extern void R_RestoreGlobalEnvFromFile(
const char *, Rboolean);
63 extern void R_SaveGlobalEnv(
void);
64 extern void R_SaveGlobalEnvToFile(
const char *);
65 extern void R_FlushConsole(
void);
66 extern void R_ClearerrConsole(
void);
67 extern void R_Suicide(
const char *);
68 extern char *R_HomeDir(
void);
69 extern int R_DirtyImage;
70 extern const char *R_GUIType;
71 extern void R_setupHistory(
void);
72 extern char *R_HistoryFile;
73 extern int R_HistorySize;
74 extern int R_RestoreHistory;
77 # define jump_to_toplevel Rf_jump_to_toplevel
78 # define mainloop Rf_mainloop
79 # define onintr Rf_onintr
80 void jump_to_toplevel(
void);
84 void process_site_Renviron(
void);
85 void process_system_Renviron(
void);
86 void process_user_Renviron(
void);
88 extern FILE * R_Consolefile;
89 extern FILE * R_Outputfile;
93 void R_setStartTime(
void);
94 void fpu_setup(Rboolean);
98 #if !defined(HAVE_UINTPTR_T) && !defined(uintptr_t)
99 typedef unsigned long uintptr_t;
102 extern uintptr_t R_CStackLimit;
103 extern uintptr_t R_CStackStart;
108 #ifdef R_INTERFACE_PTRS
125 extern void (*ptr_R_Suicide)(
const char *);
126 extern void (*ptr_R_ShowMessage)(
const char *);
127 extern int (*ptr_R_ReadConsole)(
const char *,
unsigned char *, int, int);
128 extern void (*ptr_R_WriteConsole)(
const char *, int);
129 extern void (*ptr_R_WriteConsoleEx)(
const char *, int, int);
130 extern void (*ptr_R_ResetConsole)(void);
131 extern void (*ptr_R_FlushConsole)(void);
132 extern void (*ptr_R_ClearerrConsole)(void);
133 extern void (*ptr_R_Busy)(int);
134 extern void (*ptr_R_CleanUp)(SA_TYPE, int, int);
135 extern int (*ptr_R_ShowFiles)(int,
const char **,
const char **,
136 const char *, Rboolean,
const char *);
137 extern int (*ptr_R_ChooseFile)(int,
char *, int);
138 extern int (*ptr_R_EditFile)(
const char *);
144 extern int (*ptr_R_EditFiles)(int,
const char **,
const char **,
const char *);
149 extern int (*R_timeout_handler)(void);
150 extern long R_timeout_val;
158 extern int R_SignalHandlers;