about summary refs log tree commit diff
path: root/sourcecodes/localscore/RStartup.h
diff options
context:
space:
mode:
authorziejd22017-09-14 15:39:41 -0500
committerziejd22017-09-14 15:57:50 -0500
commitc4f926438dcb8abe805e910399940f79ff643c4b (patch)
tree3146d05ada5cf4b48d9bdd16c1baa498e8df7192 /sourcecodes/localscore/RStartup.h
parent57ebf49403b75dcf8482d174b59f7fd2a961d98e (diff)
downloadBNW-c4f926438dcb8abe805e910399940f79ff643c4b.tar.gz
Add files via upload
Diffstat (limited to 'sourcecodes/localscore/RStartup.h')
-rw-r--r--sourcecodes/localscore/RStartup.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/sourcecodes/localscore/RStartup.h b/sourcecodes/localscore/RStartup.h
new file mode 100644
index 00000000..5b89e7fe
--- /dev/null
+++ b/sourcecodes/localscore/RStartup.h
@@ -0,0 +1,107 @@
+/*
+ *  R : A Computer Language for Statistical Data Analysis
+ *  Copyright (C) 1999-2010  The R Core Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, a copy is available at
+ *  http://www.r-project.org/Licenses/
+ */
+
+/*
+  C functions to be called from alternative front-ends.
+
+  Part of the API for such front-ends but not for packages.
+*/
+
+#ifndef R_EXT_RSTARTUP_H_
+#define R_EXT_RSTARTUP_H_
+
+#include <R_ext/Boolean.h>	/* TRUE/FALSE */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef Win32
+typedef int (*blah1) (const char *, char *, int, int);
+typedef void (*blah2) (const char *, int);
+typedef void (*blah3) (void);
+typedef void (*blah4) (const char *);
+/* Return value here is expected to be 1 for Yes, -1 for No and 0 for Cancel:
+   symbolic constants in graphapp.h */
+typedef int (*blah5) (const char *);
+typedef void (*blah6) (int);
+typedef void (*blah7) (const char *, int, int);
+typedef enum {RGui, RTerm, LinkDLL} UImode;
+#endif
+
+/* Startup Actions */
+typedef enum {
+    SA_NORESTORE,/* = 0 */
+    SA_RESTORE,
+    SA_DEFAULT,/* was === SA_RESTORE */
+    SA_NOSAVE,
+    SA_SAVE,
+    SA_SAVEASK,
+    SA_SUICIDE
+} SA_TYPE;
+
+typedef struct
+{
+    Rboolean R_Quiet;
+    Rboolean R_Slave;
+    Rboolean R_Interactive;
+    Rboolean R_Verbose;
+    Rboolean LoadSiteFile;
+    Rboolean LoadInitFile;
+    Rboolean DebugInitFile;
+    SA_TYPE RestoreAction;
+    SA_TYPE SaveAction;
+    size_t vsize;
+    size_t nsize;
+    size_t max_vsize;
+    size_t max_nsize;
+    size_t ppsize;
+    int NoRenviron;
+
+#ifdef Win32
+    char *rhome;               /* R_HOME */
+    char *home;                /* HOME  */
+    blah1 ReadConsole;
+    blah2 WriteConsole;
+    blah3 CallBack;
+    blah4 ShowMessage;
+    blah5 YesNoCancel;
+    blah6 Busy;
+    UImode CharacterMode;
+    blah7 WriteConsoleEx; /* used only if WriteConsole is NULL */
+#endif
+} structRstart;
+
+typedef structRstart *Rstart;
+
+void R_DefParams(Rstart);
+void R_SetParams(Rstart);
+void R_SetWin32(Rstart);
+void R_SizeFromEnv(Rstart);
+void R_common_command_line(int *, char **, Rstart);
+
+void R_set_command_line_arguments(int argc, char **argv);
+
+void setup_Rmainloop(void); // also in Rembedded.h
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif