aboutsummaryrefslogtreecommitdiff
path: root/mpiosh/global.c
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-10-29 20:03:33 +0000
committercrunchy <crunchy>2002-10-29 20:03:33 +0000
commitc7351455575348d9d9847604069ee15132f2d8e0 (patch)
tree042afb35dc47c212456af5a5543c2c4e65763463 /mpiosh/global.c
parent037e02905b802686be908d4f8cd989f0c5002b99 (diff)
downloadmpiosh-c7351455575348d9d9847604069ee15132f2d8e0.tar.gz
mpiosh-c7351455575348d9d9847604069ee15132f2d8e0.tar.bz2
mpiosh-c7351455575348d9d9847604069ee15132f2d8e0.zip
a special crunchy checkin: no testing;-)
Diffstat (limited to 'mpiosh/global.c')
-rw-r--r--mpiosh/global.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/mpiosh/global.c b/mpiosh/global.c
index d300f62..554652e 100644
--- a/mpiosh/global.c
+++ b/mpiosh/global.c
@@ -2,7 +2,7 @@
*
* Author: Andreas Buesching <crunchy@tzi.de>
*
- * $Id: global.c,v 1.4 2002/10/27 02:45:28 germeier Exp $
+ * $Id: global.c,v 1.5 2002/10/29 20:03:35 crunchy Exp $
*
* Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de>
*
@@ -26,17 +26,24 @@
#include "readline.h"
/* structure containing current state */
-mpiosh_t mpiosh;
+struct mpiosh_t mpiosh;
+struct mpiosh_config_t config;
/* flag indicating a user-interrupt of the current command */
-int mpiosh_cancel = 0;
-int mpiosh_cancel_ack = 0;
+int mpiosh_cancel = 0;
+int mpiosh_cancel_ack = 0;
+
+/* configuration filenames */
+const char *CONFIG_GLOBAL = SYSCONFDIR "/mpio/";
+const char *CONFIG_USER = "~/.mpio/";
+const char *CONFIG_FILE = "mpioshrc";
+const char *CONFIG_HISTORY = "~/.mpio/mpiosh_history";
/* prompt strings */
-const char *PROMPT_INT = "\033[;1mmpio <i>\033[m ";
-const char *PROMPT_EXT = "\033[;1mmpio <e>\033[m ";
+const char *PROMPT_INT = "\033[;1mmpio <i>\033[m ";
+const char *PROMPT_EXT = "\033[;1mmpio <e>\033[m ";
-mpiosh_cmd_t commands[] = {
+struct mpiosh_cmd_t commands[] = {
{ "debug", NULL , "[level|file|on|off] <value>",
" modify debugging options",
mpiosh_cmd_debug, NULL },