ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libmemcached-1.0 / basic_string.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 // No assumptions of NULL should be made
19
20 struct memcached_string_t {
21 const char *c_str;
22 size_t size;
23 };
24
25 #define memcached_size(X) (X).size;
26 #define memcached_c_str(X) (X).c_str;
27 #define memcached_string_param(X) (X).c_str, (X).size
28
29 #ifdef __cplusplus
30 # define memcached_string_printf(X) int((X).size), (X).c_str
31 #else
32 # define memcached_string_printf(X) (int) ((X).size), (X).c_str
33 #endif