summaryrefslogtreecommitdiff
path: root/bin/ksh/table.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-06-25 19:02:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-06-25 19:02:48 +0000
commitf7502f1aee86c9a3ebb4d6814e47a52727bc2d42 (patch)
tree0bd2bbab7d507d7dab286df7970c0101a3cb1807 /bin/ksh/table.h
parentcc7df4d09ccd66ffca19799a357c049e1b5bf030 (diff)
pdksh-5.2.13 + local changes
Diffstat (limited to 'bin/ksh/table.h')
-rw-r--r--bin/ksh/table.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/ksh/table.h b/bin/ksh/table.h
index 75215719c22..cdadbb9b6bd 100644
--- a/bin/ksh/table.h
+++ b/bin/ksh/table.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: table.h,v 1.3 1996/11/21 07:59:35 downsj Exp $ */
+/* $OpenBSD: table.h,v 1.4 1998/06/25 19:02:22 millert Exp $ */
/* $From: table.h,v 1.3 1994/05/31 13:34:34 michael Exp $ */
@@ -112,8 +112,10 @@ struct block {
/*struct arg_info argi;*/
char **argv;
int argc;
+ int flags; /* see BF_* */
struct table vars; /* local variables */
struct table funs; /* local functions */
+ Getopt getopts_state;
#if 1
char * error; /* error handler */
char * exit; /* exit handler */
@@ -123,6 +125,9 @@ struct block {
struct block *next; /* enclosing block */
};
+/* Values for struct block.flags */
+#define BF_DOGETOPTS BIT(0) /* save/restore getopts state */
+
/*
* Used by twalk() and tnext() routines.
*/
@@ -169,8 +174,8 @@ extern const struct builtin shbuiltins [], kshbuiltins [];
#define PS1 0 /* command */
#define PS2 1 /* command continuation */
-EXTERN const char *path; /* PATH value */
-EXTERN const char *def_path; /* path to use if PATH not set */
-EXTERN char *tmpdir; /* TMPDIR value */
-EXTERN const char *prompt;
-EXTERN int cur_prompt; /* PS1 or PS2 */
+EXTERN char *path; /* copy of either PATH or def_path */
+EXTERN const char *def_path; /* path to use if PATH not set */
+EXTERN char *tmpdir; /* TMPDIR value */
+EXTERN const char *prompt;
+EXTERN int cur_prompt; /* PS1 or PS2 */