You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/11/18 19:46:19 UTC

[lucy-commits] [19/23] git commit: refs/heads/c99-types - Remove unneeded checks for SIZE_MAX

Remove unneeded checks for SIZE_MAX


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/0e6b745c
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/0e6b745c
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/0e6b745c

Branch: refs/heads/c99-types
Commit: 0e6b745cad64647db57b4e29b81c97af8355d59c
Parents: 2c25c38
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat Nov 17 23:08:45 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Nov 18 16:36:31 2012 +0100

----------------------------------------------------------------------
 .../runtime/core/Clownfish/Test/Util/TestMemory.c  |    4 ----
 clownfish/runtime/core/Clownfish/Util/Memory.c     |    4 ----
 core/Clownfish/Util/Memory.c                       |    4 ----
 core/Lucy/Analysis/Inversion.c                     |    4 ----
 core/Lucy/Search/QueryParser.c                     |    4 ----
 core/Lucy/Store/Folder.c                           |    4 ----
 core/Lucy/Test/Util/TestMemory.c                   |    4 ----
 7 files changed, 0 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/0e6b745c/clownfish/runtime/core/Clownfish/Test/Util/TestMemory.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/Test/Util/TestMemory.c b/clownfish/runtime/core/Clownfish/Test/Util/TestMemory.c
index 642c420..f06ddbc 100644
--- a/clownfish/runtime/core/Clownfish/Test/Util/TestMemory.c
+++ b/clownfish/runtime/core/Clownfish/Test/Util/TestMemory.c
@@ -21,10 +21,6 @@
 #include "Clownfish/Test/Util/TestMemory.h"
 #include "Clownfish/Util/Memory.h"
 
-#ifndef SIZE_MAX
-  #define SIZE_MAX ((size_t)-1)
-#endif
-
 static void
 test_oversize__growth_rate(TestBatch *batch) {
     bool_t   success             = true;

http://git-wip-us.apache.org/repos/asf/lucy/blob/0e6b745c/clownfish/runtime/core/Clownfish/Util/Memory.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/Util/Memory.c b/clownfish/runtime/core/Clownfish/Util/Memory.c
index c2a9086..486d0e1 100644
--- a/clownfish/runtime/core/Clownfish/Util/Memory.c
+++ b/clownfish/runtime/core/Clownfish/Util/Memory.c
@@ -57,10 +57,6 @@ Memory_wrapped_free(void *ptr) {
     free(ptr);
 }
 
-#ifndef SIZE_MAX
-#define SIZE_MAX ((size_t)-1)
-#endif
-
 size_t
 Memory_oversize(size_t minimum, size_t width) {
     // For larger arrays, grow by an excess of 1/8; grow faster when the array

http://git-wip-us.apache.org/repos/asf/lucy/blob/0e6b745c/core/Clownfish/Util/Memory.c
----------------------------------------------------------------------
diff --git a/core/Clownfish/Util/Memory.c b/core/Clownfish/Util/Memory.c
index c2a9086..486d0e1 100644
--- a/core/Clownfish/Util/Memory.c
+++ b/core/Clownfish/Util/Memory.c
@@ -57,10 +57,6 @@ Memory_wrapped_free(void *ptr) {
     free(ptr);
 }
 
-#ifndef SIZE_MAX
-#define SIZE_MAX ((size_t)-1)
-#endif
-
 size_t
 Memory_oversize(size_t minimum, size_t width) {
     // For larger arrays, grow by an excess of 1/8; grow faster when the array

http://git-wip-us.apache.org/repos/asf/lucy/blob/0e6b745c/core/Lucy/Analysis/Inversion.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Analysis/Inversion.c b/core/Lucy/Analysis/Inversion.c
index 31ad48a..abfede2 100644
--- a/core/Lucy/Analysis/Inversion.c
+++ b/core/Lucy/Analysis/Inversion.c
@@ -22,10 +22,6 @@
 #include "Lucy/Analysis/Token.h"
 #include "Clownfish/Util/SortUtils.h"
 
-#ifndef SIZE_MAX
-  #define SIZE_MAX ((size_t)-1)
-#endif
-
 // After inversion, record how many like tokens occur in each group.
 static void
 S_count_clusters(Inversion *self);

http://git-wip-us.apache.org/repos/asf/lucy/blob/0e6b745c/core/Lucy/Search/QueryParser.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/QueryParser.c b/core/Lucy/Search/QueryParser.c
index 56152e6..de2fc70 100644
--- a/core/Lucy/Search/QueryParser.c
+++ b/core/Lucy/Search/QueryParser.c
@@ -37,10 +37,6 @@
 #include "Lucy/Search/TermQuery.h"
 #include "Lucy/Search/Query.h"
 
-#ifndef SIZE_MAX
-  #define SIZE_MAX ((size_t)-1)
-#endif
-
 #define SHOULD            LUCY_QPARSER_SHOULD
 #define MUST              LUCY_QPARSER_MUST
 #define MUST_NOT          LUCY_QPARSER_MUST_NOT

http://git-wip-us.apache.org/repos/asf/lucy/blob/0e6b745c/core/Lucy/Store/Folder.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/Folder.c b/core/Lucy/Store/Folder.c
index f92f59f..b7d2796 100644
--- a/core/Lucy/Store/Folder.c
+++ b/core/Lucy/Store/Folder.c
@@ -19,10 +19,6 @@
 #include <ctype.h>
 #include <limits.h>
 
-#ifndef SIZE_MAX
-  #define SIZE_MAX ((size_t)-1)
-#endif
-
 #include "Lucy/Store/Folder.h"
 #include "Lucy/Store/CompoundFileReader.h"
 #include "Lucy/Store/CompoundFileWriter.h"

http://git-wip-us.apache.org/repos/asf/lucy/blob/0e6b745c/core/Lucy/Test/Util/TestMemory.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Test/Util/TestMemory.c b/core/Lucy/Test/Util/TestMemory.c
index 8ee03ef..a8c3bb7 100644
--- a/core/Lucy/Test/Util/TestMemory.c
+++ b/core/Lucy/Test/Util/TestMemory.c
@@ -21,10 +21,6 @@
 #include "Lucy/Test.h"
 #include "Lucy/Test/Util/TestMemory.h"
 
-#ifndef SIZE_MAX
-  #define SIZE_MAX ((size_t)-1)
-#endif
-
 static void
 test_oversize__growth_rate(TestBatch *batch) {
     bool_t   success             = true;