diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-06-20 20:59:15 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-06-20 20:59:15 +0000 |
commit | 0a1de76213c4012a8b17b30eb08a77c4aa05d4bc (patch) | |
tree | 51b81d095d0ce91d51762d31bb002170b33621dc /Src/mkbltnmlst.sh | |
parent | a197b1173a5e361d899d4902f61c7f21223c01c0 (diff) | |
download | zsh-0a1de76213c4012a8b17b30eb08a77c4aa05d4bc.tar.gz zsh-0a1de76213c4012a8b17b30eb08a77c4aa05d4bc.tar.xz zsh-0a1de76213c4012a8b17b30eb08a77c4aa05d4bc.zip |
23578: make standard features autoloadable,
use feature notation for .mdd autoloads
Diffstat (limited to 'Src/mkbltnmlst.sh')
-rw-r--r-- | Src/mkbltnmlst.sh | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/Src/mkbltnmlst.sh b/Src/mkbltnmlst.sh index a3785cb8c..5bd510add 100644 --- a/Src/mkbltnmlst.sh +++ b/Src/mkbltnmlst.sh @@ -40,23 +40,17 @@ for x_mod in $x_mods; do unset moddeps autobins autoinfixconds autoprefixconds autoparams unset automathfuncs . $srcdir/../$modfile - echo " if (emulation == EMULATE_ZSH) {" - for bin in $autobins; do - echo " add_autobin(\"$bin\", \"$x_mod\");" - done - for cond in $autoinfixconds; do - echo " add_autocond(\"$cond\", 1, \"$x_mod\");" - done - for cond in $autoprefixconds; do - echo " add_autocond(\"$cond\", 0, \"$x_mod\");" - done - for param in $autoparams; do - echo " add_autoparam(\"$param\", \"$x_mod\");" - done - for mfunc in $automathfuncs; do - echo " add_automathfunc(\"$mfunc\", \"$x_mod\");" - done - echo " }" + if test "x$autofeatures" != x; then + echo " if (emulation == EMULATE_ZSH) {" + echo " char *features[] = { " + for feature in $autofeatures; do + echo " \"$feature\"," + done + echo " NULL" + echo " }; " + echo " autofeatures(\"zsh\", features, \"$x_mod\", 1);" + echo " }" + fi for dep in $moddeps; do echo " add_dep(\"$x_mod\", \"$dep\");" done |