From: Brian Aker Date: Tue, 16 Oct 2007 09:27:57 +0000 (-0700) Subject: Cleaning up #include headers so that we don't export much X-Git-Tag: 0_7~32 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c63f3c2633dbda43dd4cf151edd586a279fc8cbf;p=m6w6%2Flibmemcached Cleaning up #include headers so that we don't export much --- diff --git a/include/memcached.h b/include/memcached.h index f5378d9a..313266aa 100644 --- a/include/memcached.h +++ b/include/memcached.h @@ -10,19 +10,8 @@ #ifndef __MEMCACHED_H__ #define __MEMCACHED_H__ -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #ifdef __cplusplus extern "C" { @@ -234,9 +223,9 @@ char ** memcached_stat_get_keys(memcached_st *ptr, memcached_stat_st *stat, /* Some personal debugging functions */ #define WATCHPOINT printf("\nWATCHPOINT %s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout); #define WATCHPOINT_ERROR(A) printf("\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, memcached_strerror(NULL, A));fflush(stdout); -#define WATCHPOINT_STRING(A) printf("\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, A);fflush(stdout); -#define WATCHPOINT_NUMBER(A) printf("\nWATCHPOINT %s:%d %d\n", __FILE__, __LINE__, A);fflush(stdout); -#define WATCHPOINT_ERRNO(A) printf("\nWATCHPOINT %s:%d %s\n", __FILE__, __LINE__, strerror(A));A= 0;fflush(stdout); +#define WATCHPOINT_STRING(A) printf("\nWATCHPOINT %s:%d (%s) %s\n", __FILE__, __LINE__,__func__,A);fflush(stdout); +#define WATCHPOINT_NUMBER(A) printf("\nWATCHPOINT %s:%d (%s) %d\n", __FILE__, __LINE__,__func__,A);fflush(stdout); +#define WATCHPOINT_ERRNO(A) printf("\nWATCHPOINT %s:%d (%s) %s\n", __FILE__, __LINE__,__func__, strerror(A));A= 0;fflush(stdout); #ifdef __cplusplus diff --git a/lib/common.h b/lib/common.h index f8565be7..12f9efe1 100644 --- a/lib/common.h +++ b/lib/common.h @@ -5,6 +5,22 @@ #ifndef __COMMON_H__ #define __COMMON_H__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + #include #include diff --git a/lib/memcached_parse.c b/lib/memcached_parse.c index 2a58d535..d3b1827e 100644 --- a/lib/memcached_parse.c +++ b/lib/memcached_parse.c @@ -6,6 +6,7 @@ */ #include +#include memcached_server_st *memcached_servers_parse(char *server_strings) { diff --git a/src/execute.c b/src/execute.c index 11588ad9..8ff6167e 100644 --- a/src/execute.c +++ b/src/execute.c @@ -3,6 +3,7 @@ Return the number of rows set. */ +#include #include "execute.h" unsigned int execute_set(memcached_st *memc, pairs_st *pairs, unsigned int number_of) diff --git a/src/memcat.c b/src/memcat.c index 88018e19..59d4a871 100644 --- a/src/memcat.c +++ b/src/memcat.c @@ -1,4 +1,6 @@ #include +#include +#include #include #include #include diff --git a/src/memcp.c b/src/memcp.c index f51c93cb..8f505eb3 100644 --- a/src/memcp.c +++ b/src/memcp.c @@ -1,4 +1,6 @@ #include +#include +#include #include #include #include @@ -7,6 +9,8 @@ #include #include #include +#include +#include #include #include "client_options.h" diff --git a/src/memflush.c b/src/memflush.c index 84db8b42..657a782d 100644 --- a/src/memflush.c +++ b/src/memflush.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include "client_options.h" diff --git a/src/memrm.c b/src/memrm.c index b8d07ba4..77416c95 100644 --- a/src/memrm.c +++ b/src/memrm.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "client_options.h" #include "utilities.h" diff --git a/src/memslap.c b/src/memslap.c index 3de38f30..58150159 100644 --- a/src/memslap.c +++ b/src/memslap.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include diff --git a/src/memstat.c b/src/memstat.c index 6b7f0ae5..6f3c55d8 100644 --- a/src/memstat.c +++ b/src/memstat.c @@ -4,6 +4,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/utilities.c b/src/utilities.c index de11ee2d..1dfd60b2 100644 --- a/src/utilities.c +++ b/src/utilities.c @@ -1,5 +1,6 @@ +#include #include -#include +#include #include "utilities.h" diff --git a/tests/test.c b/tests/test.c index 4e5369d6..ba1aee37 100644 --- a/tests/test.c +++ b/tests/test.c @@ -7,6 +7,7 @@ #include #include #include +#include long int timedif(struct timeval a, struct timeval b) {