Skip to content

Commit 225fe21

Browse files
ing-eokingjhpark816
authored andcommitted
INTERNAL: Remove whitespace in libmemcached files
1 parent 33738eb commit 225fe21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+248
-248
lines changed

libmemcached/allocators.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/analyze.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* LibMemcached
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* LibMemcached
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/assert.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
18-
*
18+
*
1919
* libmcachedd client library.
2020
*
2121
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/auto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
18-
*
18+
*
1919
* Libmemcached library
2020
*
2121
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/backtrace.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* libmcachedd client library.
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
@@ -59,7 +59,7 @@ void custom_backtrace(void)
5959

6060
fprintf(stderr, "Number of stack frames obtained: %lu\n", (unsigned long)size);
6161

62-
for (size_t x= 1; x < size; x++)
62+
for (size_t x= 1; x < size; x++)
6363
{
6464
size_t sz= 200;
6565
char *function= (char *)malloc(sz);
@@ -82,7 +82,7 @@ void custom_backtrace(void)
8282

8383
int status;
8484
char *ret = abi::__cxa_demangle(begin, function, &sz, &status);
85-
if (ret)
85+
if (ret)
8686
{
8787
function= ret;
8888
}

libmemcached/backtrace.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* libmcachedd client library.
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/basic_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/behavior.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/byteorder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/byteorder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/callback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/configure.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
18-
*
18+
*
1919
* Libmemcached library
2020
*
2121
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/continuum.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* LibMemcached
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/delete.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
18-
*
18+
*
1919
* Libmemcached library
2020
*
2121
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/delete.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/do.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ memcached_return_t memcached_vdo(memcached_server_write_instance_st ptr,
8484
if (memcached_failed(rc= memcached_connect(ptr)))
8585
{
8686
WATCHPOINT_ERROR(rc);
87-
assert_msg(ptr->error_messages,
87+
assert_msg(ptr->error_messages,
8888
"memcached_connect() returned an error but the memcached_server_write_instance_st showed none.");
8989
return rc;
9090
}
@@ -95,7 +95,7 @@ memcached_return_t memcached_vdo(memcached_server_write_instance_st ptr,
9595
** otherwise we might get a partial write.
9696
**/
9797
if (ptr->type == MEMCACHED_CONNECTION_UDP
98-
&& with_flush
98+
&& with_flush
9999
&& ptr->write_buffer_offset > UDP_DATAGRAM_HEADER_LENGTH)
100100
{
101101
memcached_io_write(ptr, NULL, 0, true);

libmemcached/dump.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static memcached_return_t ascii_dump(memcached_st *ptr, memcached_dump_fn *callb
4646

4747
if ((size_t)write_length >= buffer_length || write_length < 0)
4848
{
49-
return memcached_set_error(*ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT,
49+
return memcached_set_error(*ptr, MEMCACHED_MEMORY_ALLOCATION_FAILURE, MEMCACHED_AT,
5050
memcached_literal_param("snprintf(MEMCACHED_DEFAULT_COMMAND_SIZE)"));
5151
}
5252

@@ -127,7 +127,7 @@ memcached_return_t memcached_dump(memcached_st *ptr, memcached_dump_fn *callback
127127
return rc;
128128
}
129129

130-
/*
130+
/*
131131
No support for Binary protocol yet
132132
@todo Fix this so that we just flush, switch to ascii, and then go back to binary.
133133
*/

libmemcached/dump.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/error.cc

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* LibMemcached
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
@@ -152,15 +152,15 @@ static void _set(memcached_st& memc, memcached_string_t *str, memcached_return_t
152152
{
153153
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s %s(%s), %.*s -> %s",
154154
errmsg_header,
155-
memcached_strerror(&memc, rc),
155+
memcached_strerror(&memc, rc),
156156
errmsg_ptr,
157157
memcached_string_printf(*str), at);
158158
}
159159
else if (local_errno)
160160
{
161161
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s %s(%s) -> %s",
162162
errmsg_header,
163-
memcached_strerror(&memc, rc),
163+
memcached_strerror(&memc, rc),
164164
errmsg_ptr,
165165
at);
166166
}
@@ -171,45 +171,45 @@ static void _set(memcached_st& memc, memcached_string_t *str, memcached_return_t
171171
}
172172
else if (str and str->size)
173173
{
174-
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s %s, %.*s -> %s",
174+
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s %s, %.*s -> %s",
175175
errmsg_header,
176-
memcached_strerror(&memc, rc),
176+
memcached_strerror(&memc, rc),
177177
int(str->size), str->c_str, at);
178178
}
179179
else
180180
{
181-
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s %s -> %s",
181+
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s %s -> %s",
182182
errmsg_header, memcached_strerror(&memc, rc), at);
183183
}
184184
#else
185185
if (str and str->size and local_errno)
186186
{
187-
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s(%s), %.*s -> %s",
188-
memcached_strerror(&memc, rc),
187+
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s(%s), %.*s -> %s",
188+
memcached_strerror(&memc, rc),
189189
errmsg_ptr,
190190
memcached_string_printf(*str), at);
191191
}
192192
else if (local_errno)
193193
{
194-
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s(%s) -> %s",
195-
memcached_strerror(&memc, rc),
194+
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s(%s) -> %s",
195+
memcached_strerror(&memc, rc),
196196
errmsg_ptr,
197197
at);
198198
}
199199
else if (rc == MEMCACHED_PARSE_ERROR and str and str->size)
200200
{
201-
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%.*s -> %s",
201+
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%.*s -> %s",
202202
int(str->size), str->c_str, at);
203203
}
204204
else if (str and str->size)
205205
{
206-
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s, %.*s -> %s",
207-
memcached_strerror(&memc, rc),
206+
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s, %.*s -> %s",
207+
memcached_strerror(&memc, rc),
208208
int(str->size), str->c_str, at);
209209
}
210210
else
211211
{
212-
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s -> %s",
212+
error->size= (int)snprintf(error->message, MAX_ERROR_LENGTH, "%s -> %s",
213213
memcached_strerror(&memc, rc), at);
214214
}
215215
#endif
@@ -595,7 +595,7 @@ const char *memcached_last_error_message(memcached_st *memc)
595595

596596
bool memcached_has_current_error(memcached_st &memc)
597597
{
598-
if (memc.error_messages
598+
if (memc.error_messages
599599
and memc.error_messages->query_id == memc.query_id
600600
and memcached_failed(memc.error_messages->rc))
601601
{

libmemcached/error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* LibMemcached
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/error.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* LibMemcached
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/exception.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@
1616
#include <stdexcept>
1717
#include <string>
1818

19-
namespace memcache
19+
namespace memcache
2020
{
2121
class Exception : public std::runtime_error
2222
{
2323
public:
2424
Exception(const std::string& msg, int in_errno)
25-
:
26-
std::runtime_error(msg),
27-
_errno(in_errno)
25+
:
26+
std::runtime_error(msg),
27+
_errno(in_errno)
2828
{}
2929

3030
Exception(const char *msg, int in_errno)
31-
:
32-
std::runtime_error(std::string(msg)),
31+
:
32+
std::runtime_error(std::string(msg)),
3333
_errno(in_errno) {}
3434

3535
virtual ~Exception() throw() {}
3636

37-
int getErrno() const
38-
{
39-
return _errno;
37+
int getErrno() const
38+
{
39+
return _errno;
4040
}
4141

4242
private:

libmemcached/exist.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
18-
*
18+
*
1919
* Libmemcached library
2020
*
2121
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
@@ -130,7 +130,7 @@ static memcached_return_t binary_exist(memcached_st *memc,
130130
request.message.body.flags= 0;
131131
request.message.body.expiration= htonl(2678400);
132132

133-
request.message.header.request.bodylen= htonl((uint32_t) (key_length
133+
request.message.header.request.bodylen= htonl((uint32_t) (key_length
134134
+memcached_array_size(memc->_namespace)
135135
+request.message.header.request.extlen));
136136

libmemcached/exist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

libmemcached/fetch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2-
*
2+
*
33
* Libmemcached library
44
*
55
* Copyright (C) 2011 Data Differential, http://datadifferential.com/

0 commit comments

Comments
 (0)