Additional cleanup for config.h
authorBrian Aker <brian@gaz>
Tue, 29 Jun 2010 06:49:58 +0000 (23:49 -0700)
committerBrian Aker <brian@gaz>
Tue, 29 Jun 2010 06:49:58 +0000 (23:49 -0700)
tests/atomsmasher.c
tests/hashkit_functions.c
tests/mem_functions.c
tests/mem_udp.c
tests/start.c
tests/test.c

index b7e5924e0d2a364041e061c124bc9930c22b3710..a7e49c91c119259ff98359b4e3736835442a6c9c 100644 (file)
 /*
   Sample test application.
 */
-#include "libmemcached/common.h"
+#include "config.h"
+
+#include "libmemcached/memcached.h"
+#include "libmemcached/watchpoint.h"
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <string.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include "../clients/generator.h"
 #include "../clients/execute.h"
 
-#ifndef INT64_MAX
-#define INT64_MAX LONG_MAX
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX INT_MAX
-#endif
-
-
 #include "test.h"
 
 /* Number of items generated for tests */
index 842f511f0f34db0a21426f8d4f0bef69adb562c0..46f53934d7d48fc71ff9f646847c1370aa5ef7ed 100644 (file)
@@ -6,6 +6,8 @@
  * the COPYING file in the parent directory for full text.
  */
 
+#include "config.h"
+
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
index d5b4b2d063c369fd2dcf00b1877bf911295bc87c..ba555111134fa4fd97b847bee43f98318419eb10 100644 (file)
   Sample test application.
 */
 
-#include "libmemcached/common.h"
+#include "config.h"
 
 #include <assert.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/time.h>
 #include <signal.h>
 #include <unistd.h>
 #include <time.h>
+
+#include "libmemcached/common.h"
+
 #include "server.h"
 #include "clients/generator.h"
 #include "clients/execute.h"
 
-#ifndef INT64_MAX
-#define INT64_MAX LONG_MAX
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX INT_MAX
-#endif
-
+#define SMALL_STRING_LEN 1024
 
 #include "test.h"
 
+
 #ifdef HAVE_LIBMEMCACHEDUTIL
 #include <pthread.h>
 #include "libmemcached/memcached_util.h"
index 5a41c53a58d3065e3676e598764cb83f34855da2..76aab981a3e21f90198bd83251ca47032154c001 100644 (file)
   Sample test application.
 */
 
+#include "config.h"
+
 #include "libmemcached/common.h"
 
 #include <assert.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/time.h>
 
 #include "server.h"
 
-#ifndef INT64_MAX
-#define INT64_MAX LONG_MAX
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX INT_MAX
-#endif
-
-
 #include "test.h"
 
 #define SERVERS_TO_CREATE 5
index eb37357d6b5b43e1b1d7a8f4bff8fafaa848c76f..e3f2a64c874dd4a3df0e0984eeaf59eebc8e2a6f 100644 (file)
@@ -9,6 +9,8 @@
  *
  */
 
+#include "config.h"
+
 #include <stdio.h>
 #include <string.h>
 #include "server.h"
index 45ee3ab46e9f07454d68384f78fdd9117470018d..215218c5f068e5a3f9bfc26c26a419d03bf9cd72 100644 (file)
@@ -9,6 +9,9 @@
 /*
   Sample test application.
 */
+
+#include "config.h"
+
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>