forked from fbmarc/facebook-memcached-old
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: - added -Wall to compile flags and squashed most warnings. - updated header files with #ifdef ... #endif Reviewed By: sgrimm Test Plan: test/stats.py passes libmcc/test/test.py -a passes with --enable-threads and without --enable-threads Revert: OK
- Loading branch information
ttung
committed
Oct 31, 2007
1 parent
cdaee72
commit 273d051
Showing
10 changed files
with
64 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ | ||
#if !defined(_assoc_h_) | ||
#define _assoc_h_ | ||
/* associative array */ | ||
void assoc_init(void); | ||
item *assoc_find(const char *key, const size_t nkey); | ||
int assoc_insert(item *item); | ||
void assoc_delete(const char *key, const size_t nkey); | ||
void do_assoc_move_next_bucket(void); | ||
uint32_t hash( const void *key, size_t length, const uint32_t initval); | ||
int do_assoc_expire_regex(char *pattern); | ||
#endif /* #if !defined(_assoc_h_) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ | ||
|
||
#if !defined(_facebook_binary_sm_h_) | ||
#define _facebook_binary_sm_h_ | ||
#if !defined(_binary_sm_h_) | ||
#define _binary_sm_h_ | ||
|
||
#include "memcached.h" | ||
|
||
extern void process_binary_protocol(conn* c); | ||
extern bp_hdr_pool_t* bp_allocate_hdr_pool(bp_hdr_pool_t* next); | ||
|
||
#endif /* #if !defined(_facebook_binary_sm_h_) */ | ||
#endif /* #if !defined(_binary_sm_h_) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ | ||
|
||
#if !defined(_stats_h_) | ||
#define _stats_h | ||
|
||
/* stats */ | ||
void stats_prefix_init(void); | ||
void stats_prefix_clear(void); | ||
void stats_prefix_record_get(const char *key, const bool is_hit); | ||
void stats_prefix_record_delete(const char *key); | ||
void stats_prefix_record_set(const char *key); | ||
extern void stats_prefix_init(void); | ||
extern void stats_prefix_clear(void); | ||
extern void stats_prefix_record_get(const char *key, const bool is_hit); | ||
extern void stats_prefix_record_delete(const char *key); | ||
extern void stats_prefix_record_set(const char *key); | ||
extern void stats_prefix_record_byte_total_change(char *key, long bytes); | ||
extern void stats_prefix_record_removal(char *key, size_t bytes, rel_time_t time, long flags); | ||
|
||
/*@null@*/ | ||
char *stats_prefix_dump(int *length); | ||
extern char *stats_prefix_dump(int *length); | ||
#endif /* #if !defined(_stats_h_) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters