* PATCH: module setup() fix
@ 1998-12-16 9:17 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 1998-12-16 9:17 UTC (permalink / raw)
To: zsh-workers
Hello
On my way home yesterday I remembered that we have to make sure that a
setup_foo() function defined by a module is called if the module is
linked statically into zsh.
The patch below changes mkbltnmlst.sh to ensure this. But this works
*only* if the `.mdd' file for the module contains the line
`hassetup=1', this isn't fully automated (should it be?).
Bye
Sven
*** os/mkbltnmlst.sh Wed Dec 16 10:07:35 1998
--- Src/mkbltnmlst.sh Wed Dec 16 10:10:19 1998
***************
*** 45,50 ****
--- 45,51 ----
echo "/* linked-in module \`$bin_mod' */"
eval "loc=\$loc_$bin_mod"
unset moddeps
+ hassetup=0
. $srcdir/../$loc/${bin_mod}.mdd
for dep in $moddeps; do
case $done_mods in
***************
*** 55,60 ****
exit 1 ;;
esac
done
! echo " mod.nam = \"$bin_mod\"; boot_$bin_mod(&mod);"
done_mods="$done_mods$bin_mod "
done
--- 56,65 ----
exit 1 ;;
esac
done
! if [ $hassetup != 0 ]; then
! echo " mod.nam = \"$bin_mod\"; setup_$bin_mod(&mod); boot_$bin_mod(&mod);"
! else
! echo " mod.nam = \"$bin_mod\"; boot_$bin_mod(&mod);"
! fi
done_mods="$done_mods$bin_mod "
done
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-12-16 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-16 9:17 PATCH: module setup() fix Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).