diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-04-12 12:25:27 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-04-12 12:25:27 +0000 |
commit | b11ae4d9645241e1f06831443519ab05f0599745 (patch) | |
tree | 3cd3eda5afc087b3063418292d556c89eb567d8a /Build/source/texk | |
parent | c141474a8b3c59c0cffa924c813683d3939b9efe (diff) |
remove unnecessary tests
git-svn-id: svn://tug.org/texlive/trunk@25935 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/bibtex8/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/bibtex8/bibtex-2.c | 17 |
2 files changed, 16 insertions, 8 deletions
diff --git a/Build/source/texk/bibtex8/ChangeLog b/Build/source/texk/bibtex8/ChangeLog index 26db22e9ac8..4c2d16a0488 100644 --- a/Build/source/texk/bibtex8/ChangeLog +++ b/Build/source/texk/bibtex8/ChangeLog @@ -1,3 +1,10 @@ +2012-04-12 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * 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 <preining@logic.at> * bibtex-2.c: Do not check whether Glob_Str_Size > Buf_Size, diff --git a/Build/source/texk/bibtex8/bibtex-2.c b/Build/source/texk/bibtex8/bibtex-2.c index aae5ce91665..546ae15c64a 100644 --- a/Build/source/texk/bibtex8/bibtex-2.c +++ b/Build/source/texk/bibtex8/bibtex-2.c @@ -2209,16 +2209,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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ |