Merge in ability for memcapable to handle ascii/binary as flags to the
[m6w6/libmemcached] / libmemcached / string.h
index d517a4b649b116bcbf5d688fa9ae6af67650208f..ca2c1220943a60ae93f9c8b77aaddccd31eb2bf5 100644 (file)
@@ -28,8 +28,8 @@ struct memcached_string_st {
   size_t current_size;
   const memcached_st *root;
   struct {
-    bool is_allocated MEMCACHED_BITFIELD;
-    bool is_initialized MEMCACHED_BITFIELD;
+    bool is_allocated:1;
+    bool is_initialized:1;
   } options;
 };
 
@@ -71,7 +71,8 @@ const char *memcached_string_value(const memcached_string_st *self);
 LIBMEMCACHED_LOCAL
 char *memcached_string_value_mutable(const memcached_string_st *self);
 
-#define memcached_string_set_length(A, B) (A)->end= (A)->string + B
+LIBMEMCACHED_LOCAL
+void memcached_string_set_length(memcached_string_st *self, size_t length);
 
 #ifdef __cplusplus
 }