summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-10 15:24:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-10 15:24:26 +0000
commitb726ead94e911e1ce3e8b582c315b3d6f83a6eb7 (patch)
tree6298d1215ba8a55aa8cac4fd536de3af91bbb4b2 /Src/zsh.h
parent638b0da9704add12fff91868efdfbb2dd35f0b54 (diff)
downloadzsh-b726ead94e911e1ce3e8b582c315b3d6f83a6eb7.tar.gz
zsh-b726ead94e911e1ce3e8b582c315b3d6f83a6eb7.zip
22676, 22678: extend sched and make it able to run events when waiting for
input
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h72
1 files changed, 46 insertions, 26 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 3c455b939..19d8a368f 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -333,40 +333,38 @@ enum {
/* Abstract types for zsh */
/**************************/
-typedef struct linknode *LinkNode;
-typedef union linkroot *LinkList;
-typedef struct hashnode *HashNode;
-typedef struct hashtable *HashTable;
-
-typedef struct optname *Optname;
-typedef struct reswd *Reswd;
typedef struct alias *Alias;
-typedef struct param *Param;
-typedef struct paramdef *Paramdef;
+typedef struct asgment *Asgment;
+typedef struct builtin *Builtin;
typedef struct cmdnam *Cmdnam;
-typedef struct shfunc *Shfunc;
+typedef struct complist *Complist;
+typedef struct conddef *Conddef;
typedef struct funcstack *Funcstack;
typedef struct funcwrap *FuncWrap;
-typedef struct options *Options;
-typedef struct builtin *Builtin;
-typedef struct nameddir *Nameddir;
-typedef struct module *Module;
-typedef struct linkedmod *Linkedmod;
-
-typedef struct patprog *Patprog;
-typedef struct process *Process;
-typedef struct job *Job;
-typedef struct value *Value;
-typedef struct conddef *Conddef;
-typedef struct redir *Redir;
-typedef struct complist *Complist;
+typedef struct hashnode *HashNode;
+typedef struct hashtable *HashTable;
typedef struct heap *Heap;
typedef struct heapstack *Heapstack;
typedef struct histent *Histent;
typedef struct hookdef *Hookdef;
-
-typedef struct asgment *Asgment;
-
+typedef struct job *Job;
+typedef struct linkedmod *Linkedmod;
+typedef struct linknode *LinkNode;
+typedef union linkroot *LinkList;
+typedef struct module *Module;
+typedef struct nameddir *Nameddir;
+typedef struct options *Options;
+typedef struct optname *Optname;
+typedef struct param *Param;
+typedef struct paramdef *Paramdef;
+typedef struct patprog *Patprog;
+typedef struct prepromptfn *Prepromptfn;
+typedef struct process *Process;
+typedef struct redir *Redir;
+typedef struct reswd *Reswd;
+typedef struct shfunc *Shfunc;
+typedef struct timedfn *Timedfn;
+typedef struct value *Value;
/********************************/
/* Definitions for linked lists */
@@ -432,6 +430,28 @@ union linkroot {
__n0.dat = (void *) (V0); \
} while (0)
+/*************************************/
+/* Specific elements of linked lists */
+/*************************************/
+
+typedef void (*voidvoidfnptr_t) _((void));
+
+/*
+ * Element of the prepromptfns list.
+ */
+struct prepromptfn {
+ voidvoidfnptr_t func;
+};
+
+
+/*
+ * Element of the timedfns list.
+ */
+struct timedfn {
+ voidvoidfnptr_t func;
+ time_t when;
+};
+
/********************************/
/* Definitions for syntax trees */
/********************************/