mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 17:24:50 +01:00
23312: fix versioning and initialisation of word code headers
This commit is contained in:
parent
24477a7ff4
commit
e7210e10b0
3 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
2007-04-23 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 23312: Src/parse.c, Src/zsh.mdd: ensure parse.c is updated
|
||||
when version.h changes in order to pick up changes to ZWC
|
||||
files; memset() header of wordcode file to normalise unused words.
|
||||
|
||||
* 23308: Src/text.c: stop tindent becoming negative, which
|
||||
causes infinite use of memory; add debug test to see where
|
||||
it would become negative.
|
||||
|
|
|
@ -2693,6 +2693,8 @@ write_dump(int dfd, LinkList progs, int map, int hlen, int tlen)
|
|||
if (map == 1)
|
||||
map = (tlen >= FD_MINMAP);
|
||||
|
||||
memset(pre, 0, sizeof(wordcode) * FD_PRELEN)
|
||||
|
||||
for (ohlen = hlen; ; hlen = ohlen) {
|
||||
fdmagic(pre) = (other ? FD_OMAGIC : FD_MAGIC);
|
||||
fdsetflags(pre, ((map ? FDF_MAP : 0) | other));
|
||||
|
|
|
@ -31,7 +31,7 @@ sigcount.h: signames.c
|
|||
|
||||
init.o: bltinmods.list zshpaths.h zshxmods.h
|
||||
|
||||
init.o params.o: version.h
|
||||
init.o params.o parse.o: version.h
|
||||
|
||||
version.h: $(sdir_top)/Config/version.mk
|
||||
echo '#define ZSH_VERSION "'$(VERSION)'"' > $@
|
||||
|
|
Loading…
Reference in a new issue