Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
sched as a module
- X-seq: zsh-workers 3037
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: sched as a module
- Date: Thu, 27 Mar 1997 16:54:30 GMT
-----BEGIN PGP SIGNED MESSAGE-----
This patch moves the sched builtin into a new module. The interesting
part of this is that this entails the creation of another hook for
module functions: a list of functions to be called by preprompt().
A couple of features are also added to the linked list code, to make it
easy for code to insert a node into a list and later remove the same node.
I put the module into Src/Modules/. If we are to have a Src/Builtins/
directory, it is trivial to move. Also, for the record, the code of the
bin_sched() function is not changed at all by this patch. (Moving it
takes up about a third of the size of the patch.)
-zefram
begin 644 sched_module.gz
M'XL("`/2.3,"`W-C:&5D7VUO9'5L90#5/&MWVS:RYWYT?P7L-(DHT+*HEVVY
MR3V)X[3>Z]>-G;W=[N[)4A1DL:%(+1^VY=3__<X,`!*4*$7.NGNZJF-3P&`X
MF!G,`QBT7J^S=Y&W\TLRWKG._*%HS*(-9W]_=Z?9WG%V6;/3;[7Z3GO#:?2^
MV][>7@[<`F"G[_3Z[=WOZN4/?F=.<]]VG`ZC!L0D&[H,GK>_8VPBPJQV-19L
M*((T\L9NS$ZC818(R^P4=^YD&HBJKI$?B"3OX$5'XHW%L&I$DKII5?M]Z04B
M'%*/1=/0\Y]$PT_TQFJ&=8!A3HEAE0-RICF=:J;9BF&;+!5W?A@-Q>)<%^92
MQ:D:T*">$YQ5(KRT@FV,>7XX%'<U:K;9Q`W]:1:XJ1]>8R^.2%/9:[$)C0*@
MSX`BB29$1CATXR'SH@F,'2;,O7']P!T`F)NP0>8'@"KI2PV`V9'TOSX[4X3_
M"=-#X>T,Q<U.F`5!H_39N!IG[%),&=MEK68?%*;=9*`0W05UH5FCNN"(4U@0
M2EWV^JT>CJA>:$UCB=F[DL&\S.!%=BZH3UD&)>[R@KOEI<4U_ZAYCG\%HZ)0
M:$YI/MK%J`8#Y@C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