diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-03-24 18:00:22 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-03-24 18:00:22 +0000 |
commit | 2256310fae2a2c24e5d062a51b4de574b148c738 (patch) | |
tree | 86c8326f77d1a6e08ec4cc53fd836912388bf7bf /Build/source/texk/bibtexu/bibtex-4.c | |
parent | b43a81e1ba916e7daaf0559ae06791e720533e7e (diff) |
bibtex8/bibtexu: reallocate arrays when needed, same as in bibtex
git-svn-id: svn://tug.org/texlive/trunk@17548 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/bibtexu/bibtex-4.c')
-rw-r--r-- | Build/source/texk/bibtexu/bibtex-4.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/bibtexu/bibtex-4.c b/Build/source/texk/bibtexu/bibtex-4.c index 3131d287c12..6257b5b7a3a 100644 --- a/Build/source/texk/bibtexu/bibtex-4.c +++ b/Build/source/texk/bibtexu/bibtex-4.c @@ -1450,10 +1450,10 @@ BEGIN ent_chr_ptr = 0; sp_ptr = str_start[pop_lit2]; sp_xptr1 = str_start[pop_lit2 + 1]; - if ((sp_xptr1 - sp_ptr) > ENT_STR_SIZE) + if ((sp_xptr1 - sp_ptr) > Ent_Str_Size) BEGIN - BST_STRING_SIZE_EXCEEDED (ENT_STR_SIZE, ", the entry"); - sp_xptr1 = sp_ptr + ENT_STR_SIZE; + BST_STRING_SIZE_EXCEEDED (Ent_Str_Size, ", the entry"); + sp_xptr1 = sp_ptr + Ent_Str_Size; END while (sp_ptr < sp_xptr1) BEGIN @@ -1516,14 +1516,14 @@ BEGIN glob_chr_ptr = 0; sp_ptr = str_start[pop_lit2]; sp_end = str_start[pop_lit2 + 1]; - if ((sp_end - sp_ptr) > GLOB_STR_SIZE) + if ((sp_end - sp_ptr) > Glob_Str_Size) BEGIN - BST_STRING_SIZE_EXCEEDED (GLOB_STR_SIZE, ", the global"); - sp_end = sp_ptr + GLOB_STR_SIZE; + BST_STRING_SIZE_EXCEEDED (Glob_Str_Size, ", the global"); + sp_end = sp_ptr + Glob_Str_Size; END while (sp_ptr < sp_end) BEGIN - global_strs[str_glb_ptr][glob_chr_ptr] = str_pool[sp_ptr]; + GLOBAL_STRS(str_glb_ptr, glob_chr_ptr) = str_pool[sp_ptr]; INCR (glob_chr_ptr); INCR (sp_ptr); END |