X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached-1.0%2Freturn.h;h=e2b4104cda6c526249cb88abab790e35392bd611;hb=0246c3f543a3aff173a68db275ad64852410cc2d;hp=b63953a5ce52c78bce880caaa8598047dd479e0a;hpb=387c65c94bec4333da574771fc82a40deabbc3e2;p=awesomized%2Flibmemcached diff --git a/libmemcached-1.0/return.h b/libmemcached-1.0/return.h index b63953a5..e2b4104c 100644 --- a/libmemcached-1.0/return.h +++ b/libmemcached-1.0/return.h @@ -50,24 +50,28 @@ static inline bool memcached_success(memcached_return_t rc) static inline bool memcached_failed(memcached_return_t rc) { - return (rc != MEMCACHED_SUCCESS && + return (rc != MEMCACHED_AUTH_CONTINUE && + rc != MEMCACHED_BUFFERED && + rc != MEMCACHED_DELETED && rc != MEMCACHED_END && + rc != MEMCACHED_ITEM && + rc != MEMCACHED_STAT && rc != MEMCACHED_STORED && - rc != MEMCACHED_STAT && - rc != MEMCACHED_DELETED && - rc != MEMCACHED_BUFFERED && + rc != MEMCACHED_SUCCESS && rc != MEMCACHED_VALUE); } static inline bool memcached_fatal(memcached_return_t rc) { - return ( + return (rc != MEMCACHED_AUTH_CONTINUE && rc != MEMCACHED_BUFFERED && + rc != MEMCACHED_CLIENT_ERROR && rc != MEMCACHED_DATA_EXISTS && rc != MEMCACHED_DELETED && rc != MEMCACHED_E2BIG && rc != MEMCACHED_END && rc != MEMCACHED_ITEM && + rc != MEMCACHED_ERROR && rc != MEMCACHED_NOTFOUND && rc != MEMCACHED_NOTSTORED && rc != MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE &&