Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

adding builtins



-----BEGIN PGP SIGNED MESSAGE-----

This patch makes the initialisation of static builtins and the dynamic
addition of builtins from modules use the same mechanism.  It replaces
uses of struct binlist (for dynamic builtins) with struct builtin, making
the `added' flag one of the BINF_* flags.  This avoids some unnecessary
memory allocation when adding dynamic builtins.

 -zefram

begin 644 builtins_patch.gz
M'XL("$?EGS,"`V)U:6QT:6YS7W!A=&-H`.T]:W?CMHZ?,[^"<<]M[8R=6(X=
M)TZG>SR),Y.]SF/SZ//VI+)-Q]J19:\DSR1IL[]]`;Y$290M.3-M]^SF3!M1
M)$`2``&0`)6MK2UR[0]W!@O'#1UO>[AA'1RT=^I[.U:#6/5.H]%I'6Q8V_NM
M5[5:;4E3JV,==*S&JZWX#Y;);J.ZVR:LB$B@:!U8!!YKKPCYRO&&[F)$2>DI
MF&Q/2K%7LJ^Y/\.*5Z_)SA9YRU\&Q/%(.*%D:L,#?:##16@/7$JV=J`=_`M"
M.W2&\,M?#$,B4,G?P2^_DC?0Z'?X#W_>GI[?75[U3DY_+)=JI2J63^Z.N]?O
M*U5#"X%$MGM[>]J_.3TW-AW.IE/;&\FF1Q=G9]WS8V-3G(-LU_NQ=V1LY,WN
MW=E`-CN_>->_>!LUY`,IEWZ!!O4J&3C>74B#D!5J%@.Z>WO5/?IG[Z9*SF_[
M??[_-()MV</E]67OZ+3;Y\A&,\!E<5SUY1@Z9@S`#:J&LP*%[3IV(-&<==^=
M'O7^X[;;O^:86*V.JM2_G_JE3&2+<.;.;,6)FY\N>Q>7-P+9>.$-0V?FQ1&&
MT+BT**61#>XC`H_OX^1]MWQ2`Y_:'\RT854,F6)5K_O/%>@>:324%(+>CZ<K
M&#T<1>##$7ML<-BCXQ60DY'CKPT\\V`!+6A.0AQ=G`/8;6\YTA$=NK9/DQPF
M?Z0D2+Y*R.;CG`8TC,O4U>W/8\?UP\5#IF@!'8*($%B*H?BX!#!`E17!4@_+
M,7DZ/KWN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