summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-04-12 12:34:30 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-04-12 12:34:30 +0000
commitf6166921da0f6fb93100cc0135c4a5246bc1ebe6 (patch)
tree1720a6779ebfd901d64cd85ca0b6995ab284e7a9 /Build/source
parentb11ae4d9645241e1f06831443519ab05f0599745 (diff)
remove unnecessary tests
git-svn-id: svn://tug.org/texlive/trunk@25936 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/bibtexu/ChangeLog7
-rw-r--r--Build/source/texk/bibtexu/bibtex-2.c17
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 <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/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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/