libmemcached/libmemcached.la
libmemcached/libmemcached_config.h
libmemcached/libmemcached_config.h.in
+libmemcached/memcached_configure.h
libmemcached/md5.lo
libmemcached/memcached.lo
libmemcached/memcached_analyze.lo
sinclude(m4/setsockopt.m4)
sinclude(m4/hsieh.m4)
sinclude(m4/util.m4)
+sinclude(m4/deprecated.m4)
dnl This is likely subverted by vpath builds. How do we find the original
dnl source dir in the configure step of a vpath build?
tests/Makefile
docs/Makefile
libmemcached/Makefile
+ libmemcached/memcached_configure.h
libmemcachedutil/Makefile
support/Makefile
support/libmemcached.pc
-EXTRA_DIST = libmemcached_probes.d memcached/README.txt libmemcached.ver
+EXTRA_DIST = libmemcached_probes.d memcached/README.txt libmemcached.ver \
+ memcached_configure.h.in
BUILT_SOURCES= @DTRACE_HEADER@
#ifdef MEMCACHED_INTERNAL
#include <libmemcached/libmemcached_config.h>
#endif
+#include <libmemcached/memcached_configure.h>
#include <libmemcached/memcached_constants.h>
#include <libmemcached/memcached_types.h>
#include <libmemcached/memcached_watchpoint.h>
--- /dev/null
+/*
+ * Summary: Preprocessor symbols set from configure we need install-time
+ *
+ * Copy: See Copyright for the status of this software.
+ *
+ * Author: Trond Norbye
+ */
+
+#ifndef MEMCACHED_CONFIGURE_H
+#define MEMCACHED_CONFIGURE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+@DEPRECATED@
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MEMCACHED_CONFIGURE_H */
}
}
- if (success) {
+ if (success)
break;
- }
}
return rc;
{
rc= simple_binary_mget(ptr, master_server_key, is_master_key_set,
keys, key_length, number_of_keys);
- } else {
+ }
+ else
+ {
uint32_t* hash;
bool* dead_servers;
}
if (is_master_key_set)
- for (unsigned int x= 0; x < number_of_keys; ++x)
+ for (unsigned int x= 0; x < number_of_keys; x++)
hash[x]= master_server_key;
else
- for (unsigned int x= 0; x < number_of_keys; ++x)
+ for (unsigned int x= 0; x < number_of_keys; x++)
hash[x]= memcached_generate_hash(ptr, keys[x], key_length[x]);
rc= replication_binary_mget(ptr, hash, dead_servers, keys,
--- /dev/null
+dnl ---------------------------------------------------------------------------
+dnl Macro: deprecated
+dnl ---------------------------------------------------------------------------
+AC_ARG_ENABLE([deprecated],
+ [AS_HELP_STRING([--enable-deprecated],
+ [Enable deprecated interface @<:@default=off@:>@])],
+ [ac_enable_deprecated="$enableval"],
+ [ac_enable_deprecated="no"])
+
+if test "x$ac_enable_deprecated" = "xyes"
+then
+ DEPRECATED="#define MEMCACHED_ENABLE_DEPRECATED 1"
+fi
+
+AC_SUBST(DEPRECATED)
+dnl ---------------------------------------------------------------------------
+dnl End Macro: deprecated
+dnl ---------------------------------------------------------------------------
* This is to verify correct behavior in the library
*/
memcached_result_st result_obj;
- for (int host= 0; host < clone->number_of_hosts; ++host) {
+ for (int host= 0; host < clone->number_of_hosts; ++host)
+ {
memcached_st *clone= memcached_clone(NULL, memc);
clone->hosts[host].port= 0;
int hits= 0;
while ((results= memcached_fetch_result(clone, &result_obj, &rc)) != NULL)
{
- ++hits;
+ hits++;
}
assert(hits == 4);
memcached_result_free(&result_obj);
}
memcached_result_st result_obj;
- for (int host= 0; host < clone->number_of_hosts; ++host) {
+ for (int host= 0; host < clone->number_of_hosts; ++host)
+ {
for (int x= 'a'; x <= 'z'; ++x)
{
char key[2]= { [0]= (char)x };
uint16_t *ids= malloc(sizeof(uint16_t) * memc->number_of_hosts);
assert(ids != NULL);
unsigned int x;
+
for (x= 0; x < memc->number_of_hosts; x++)
ids[x]= get_udp_datagram_request_id((struct udp_datagram_header_st *) memc->hosts[x].write_buffer);
unsigned int x;
memcached_server_st *cur_server = memc->hosts;
uint16_t *cur_req_ids = get_udp_request_ids(memc);
+
for (x= 0; x < memc->number_of_hosts; x++)
{
assert(cur_server[x].cursor_active == 0);
}
free(expected_req_ids);
free(cur_req_ids);
+
return TEST_SUCCESS;
}
memcpy(servers, memc->hosts, sizeof(memcached_server_st) * num_hosts);
for (x= 0; x < num_hosts; x++)
memcached_server_free(&memc->hosts[x]);
+
memc->number_of_hosts= 0;
memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_USE_UDP, 1);
for (x= 0; x < num_hosts; x++)
assert(memcached_server_add_udp(memc, servers[x].hostname, servers[x].port) == MEMCACHED_SUCCESS);
assert(memc->hosts[x].write_buffer_offset == UDP_DATAGRAM_HEADER_LENGTH);
}
+
return MEMCACHED_SUCCESS;
}