noinst_LTLIBRARIES+= clients/libutilities.la
clients_libutilities_la_SOURCES= clients/utilities.cc
-noinst_LTLIBRARIES+= clients/libgenexec.la
-clients_libgenexec_la_SOURCES= clients/generator.cc clients/execute.cc
-
clients_memcat_SOURCES= clients/memcat.cc
clients_memcat_LDADD= $(CLIENTS_LDADDS)
clients_memerror_LDADD= $(CLIENTS_LDADDS)
clients_memslap_SOURCES = clients/memslap.cc
-clients_memslap_LDADD = $(PTHREAD_LIBS) clients/libgenexec.la $(CLIENTS_LDADDS)
+clients_memslap_SOURCES+= clients/generator.cc clients/execute.cc
+clients_memslap_LDADD = $(PTHREAD_LIBS) $(CLIENTS_LDADDS)
clients_memaslap_SOURCES= \
clients/memaslap.c \
clients/ms_stats.c \
clients/ms_task.c \
clients/ms_thread.c
-clients_memaslap_LDADD= $(LTLIBEVENT) clients/libgenexec.la $(CLIENTS_LDADDS)
+clients_memaslap_SOURCES+= clients/generator.cc clients/execute.cc
+clients_memaslap_LDADD= $(LTLIBEVENT) $(CLIENTS_LDADDS)
clients_memcapable_SOURCES= \
clients/memcapable.cc \
string_ptr= buffer;
string_ptr+= 5; /* Move past ITEM */
- for (end_ptr= string_ptr; isgraph(*end_ptr); end_ptr++);
+ for (end_ptr= string_ptr; isgraph(*end_ptr); end_ptr++) {} ;
key= string_ptr;
key[(size_t)(end_ptr-string_ptr)]= 0;
for (callback_counter= 0; callback_counter < number_of_callbacks; callback_counter++)
{
ssize_t nread;
while (memcached_io_read(ptr, buffer, sizeof(buffer)/sizeof(*buffer),
- &nread) == MEMCACHED_SUCCESS);
+ &nread) == MEMCACHED_SUCCESS) {} ;
}
string_ptr++;
if (end_ptr == string_ptr)
goto read_error;
- for (next_ptr= string_ptr; isdigit(*string_ptr); string_ptr++);
+
+ for (next_ptr= string_ptr; isdigit(*string_ptr); string_ptr++) {};
result->item_flags= (uint32_t) strtoul(next_ptr, &string_ptr, 10);
if (end_ptr == string_ptr)
if (end_ptr == string_ptr)
goto read_error;
- for (next_ptr= string_ptr; isdigit(*string_ptr); string_ptr++);
+ for (next_ptr= string_ptr; isdigit(*string_ptr); string_ptr++) {};
value_length= (size_t)strtoull(next_ptr, &string_ptr, 10);
if (end_ptr == string_ptr)
else
{
string_ptr++;
- for (next_ptr= string_ptr; isdigit(*string_ptr); string_ptr++);
+ for (next_ptr= string_ptr; isdigit(*string_ptr); string_ptr++) {};
result->item_cas= strtoull(next_ptr, &string_ptr, 10);
}
else if (!strcmp("rusage_user", key))
{
char *walk_ptr;
- for (walk_ptr= value; (!ispunct(*walk_ptr)); walk_ptr++);
+ for (walk_ptr= value; (!ispunct(*walk_ptr)); walk_ptr++) {};
*walk_ptr= 0;
walk_ptr++;
memc_stat->rusage_user_seconds= (uint32_t) strtol(value, (char **)NULL, 10);
else if (!strcmp("rusage_system", key))
{
char *walk_ptr;
- for (walk_ptr= value; (!ispunct(*walk_ptr)); walk_ptr++);
+ for (walk_ptr= value; (!ispunct(*walk_ptr)); walk_ptr++) {};
*walk_ptr= 0;
walk_ptr++;
memc_stat->rusage_system_seconds= (uint32_t) strtol(value, (char **)NULL, 10);
string_ptr= buffer;
string_ptr+= 5; /* Move past STAT */
- for (end_ptr= string_ptr; isgraph(*end_ptr); end_ptr++);
+ for (end_ptr= string_ptr; isgraph(*end_ptr); end_ptr++) {};
key= string_ptr;
key[(size_t)(end_ptr-string_ptr)]= 0;
string_ptr= end_ptr + 1;
- for (end_ptr= string_ptr; !(isspace(*end_ptr)); end_ptr++);
+ for (end_ptr= string_ptr; !(isspace(*end_ptr)); end_ptr++) {};
value= string_ptr;
value[(size_t)(end_ptr-string_ptr)]= 0;
string_ptr= end_ptr + 2;
}
}
else
+ {
break;
+ }
}
error:
#include <libtest/test.h>
#include "tests/basic.h"
+#include <cstring>
+
test_return_t basic_init_test(memcached_st *junk)
{
(void)junk;
tests/replication.cc \
tests/string.cc \
tests/virtual_buckets.cc
+tests_testapp_SOURCES+= clients/generator.cc clients/execute.cc
tests_testapp_DEPENDENCIES= \
$(BUILT_SOURCES) \
$(TESTS_LDADDS) \
- clients/libgenexec.la \
libhashkit/libhashkit.la \
libmemcached/libmemcachedinternal.la
tests_testapp_LDADD= \
$(LIBSASL) \
$(TESTS_LDADDS) \
- clients/libgenexec.la \
libhashkit/libhashkit.la \
libmemcached/libmemcachedinternal.la
check_PROGRAMS+= tests/testplus
tests_atomsmasher_SOURCES= tests/atomsmasher.c
-tests_atomsmasher_DEPENDENCIES= \
- clients/libgenexec.la \
- $(TESTS_LDADDS)
+tests_atomsmasher_SOURCES+= clients/generator.cc clients/execute.cc
+tests_atomsmasher_DEPENDENCIES= $(TESTS_LDADDS)
tests_atomsmasher_LDADD= $(tests_atomsmasher_DEPENDENCIES) $(LIBSASL)
tests_testudp_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING)
tests_testudp_SOURCES= tests/mem_udp.c
-tests_testudp_DEPENDENCIES= \
- clients/libgenexec.la \
- $(TESTS_LDADDS)
+tests_testudp_DEPENDENCIES= $(TESTS_LDADDS)
tests_testudp_LDADD= $(tests_testudp_DEPENDENCIES) $(LIBSASL)
#include <libmemcached/memcached.h>
+#include <cstring>
+
struct libtest_string_t {
const char *c_str;
size_t size;