From f6166921da0f6fb93100cc0135c4a5246bc1ebe6 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Thu, 12 Apr 2012 12:34:30 +0000 Subject: remove unnecessary tests git-svn-id: svn://tug.org/texlive/trunk@25936 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/bibtexu/ChangeLog | 7 +++++++ Build/source/texk/bibtexu/bibtex-2.c | 17 +++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Build/source/texk/bibtexu/ChangeLog b/Build/source/texk/bibtexu/ChangeLog index b0f6ef6dae5..b6cff1e0e8b 100644 --- a/Build/source/texk/bibtexu/ChangeLog +++ b/Build/source/texk/bibtexu/ChangeLog @@ -1,3 +1,10 @@ +2012-04-12 Akira Kakuto + + * bibtex-2.c: Do not check whether Glob_Str_Size > Buf_Size, + and Ent_Str_size > Buf_Size, since Buf_Size can be changed + dynamically, whereas Glob_Str_Size and Ent_Str_Size are maximum + values which are constants. + 2012-04-10 Norbert Preining * bibtex-2.c: Do not check whether Glob_Str_Size > Buf_Size, diff --git a/Build/source/texk/bibtexu/bibtex-2.c b/Build/source/texk/bibtexu/bibtex-2.c index 89b03bb9a53..dfa889a7f90 100644 --- a/Build/source/texk/bibtexu/bibtex-2.c +++ b/Build/source/texk/bibtexu/bibtex-2.c @@ -2254,16 +2254,17 @@ BEGIN if (Max_Cites > Max_Strings) bad = 10 * bad + 8; - if (Ent_Str_Size > Buf_Size) - bad = 10 * bad + 9; - /* - ** The following check has been removed because glob_str_size can - ** now dynamically changed, which makes it possible that this test - ** fails without a real problem. + ** The following checks have been removed because + ** Buf_Size can be dynamically changed, whereas + ** Ent_Str_Size and Glob_Str_Size are maximum values + ** which are constants. + ** + ** if (Ent_Str_Size > Buf_Size) + ** bad = 10 * bad + 9; ** - ** if (Glob_Str_Size > Buf_Size) - ** bad = 100 * bad + 11; + ** if (Glob_Str_Size > Buf_Size) + ** bad = 100 * bad + 11; */ /*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ -- cgit v1.2.3