~flier-lu/libmemcached/win32-vs2008

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* HashKit
 * Copyright (C) 2009 Brian Aker
 * All rights reserved.
 *
 * Use and distribution licensed under the BSD license.  See
 * the COPYING file in the parent directory for full text.
 */

#include "common.h"

const char *hashkit_strerror(hashkit_st *ptr __attribute__((unused)), hashkit_return_t rc)
{
  switch (rc)
  {
  case HASHKIT_SUCCESS:
    return "SUCCESS";
  case HASHKIT_FAILURE:
    return "FAILURE";
  case HASHKIT_MEMORY_ALLOCATION_FAILURE:
    return "MEMORY ALLOCATION FAILURE";
  case HASHKIT_MAXIMUM_RETURN:
    return "Gibberish returned!";
  default:
    return "Gibberish returned!";
  }
}