zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: PATCH: module setup() fix
Date: Wed, 16 Dec 1998 10:17:56 +0100 (MET)	[thread overview]
Message-ID: <199812160917.KAA00829@beta.informatik.hu-berlin.de> (raw)


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


                 reply	other threads:[~1998-12-16  9:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199812160917.KAA00829@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).