summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-12-15 22:45:27 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-12-15 22:45:27 +0000
commit6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd (patch)
tree1b1a681b89fe613b3405da6ee630bbb86d15b17f /Src/zsh.h
parentff1feb920f80f58581a79dc6256cc25364b8fe7d (diff)
downloadzsh-6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd.tar.gz
zsh-6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd.zip
19295: $CONTEXT zle parameter
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index f60fa5f45..cf470f001 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -28,7 +28,7 @@
*/
#define trashzle() trashzleptr()
-#define zleread(X,Y,H) zlereadptr(X,Y,H)
+#define zleread(X,Y,H,C) zlereadptr(X,Y,H,C)
#define spaceinline(X) spaceinlineptr(X)
#define zrefresh() refreshptr()
@@ -1761,6 +1761,17 @@ struct heap {
#define ZLRF_NOSETTY 0x02 /* Don't set tty before return */
#define ZLRF_IGNOREEOF 0x04 /* Ignore an EOF from the keyboard */
+/***************************/
+/* Context of zleread call */
+/***************************/
+
+enum {
+ ZLCON_LINE_START, /* Command line at PS1 */
+ ZLCON_LINE_CONT, /* Command line at PS2 */
+ ZLCON_SELECT, /* Select loop */
+ ZLCON_VARED /* Vared command */
+};
+
/****************/
/* Entry points */
/****************/
@@ -1773,7 +1784,7 @@ typedef int (*CompctlReadFn) _((char *, char **, Options, char *));
typedef void (*ZleVoidFn) _((void));
typedef void (*ZleVoidIntFn) _((int));
-typedef unsigned char * (*ZleReadFn) _((char *, char *, int));
+typedef unsigned char * (*ZleReadFn) _((char *, char *, int, int));
/***************************************/
/* Hooks in core. */