diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-12-13 07:06:29 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-13 07:06:29 +0800 |
commit | c49f88cd8e8cf1cb21308fe89e841255b49e6458 (patch) | |
tree | 81be9f6d0b2d9c45deb41417681abf0e8da8052f /libibex | |
parent | f594c3ec304f3a4b45fddab0b636b9f7967d1162 (diff) | |
download | gsoc2013-evolution-c49f88cd8e8cf1cb21308fe89e841255b49e6458.tar gsoc2013-evolution-c49f88cd8e8cf1cb21308fe89e841255b49e6458.tar.gz gsoc2013-evolution-c49f88cd8e8cf1cb21308fe89e841255b49e6458.tar.bz2 gsoc2013-evolution-c49f88cd8e8cf1cb21308fe89e841255b49e6458.tar.lz gsoc2013-evolution-c49f88cd8e8cf1cb21308fe89e841255b49e6458.tar.xz gsoc2013-evolution-c49f88cd8e8cf1cb21308fe89e841255b49e6458.tar.zst gsoc2013-evolution-c49f88cd8e8cf1cb21308fe89e841255b49e6458.zip |
Made cache_sanity only be included if d(x) is defined as x.
2000-12-12 Christopher James Lahey <clahey@helixcode.com>
* wordindex.c (cache_sanity): Made cache_sanity only be included
if d(x) is defined as x.
* wordindexmem.c: Made node_sanity and cache_sanity only be
included if d(x) is defined as x or if MALLOC_CHECK is defined.
Made sync_value only be included if d(x) is defined as x.
svn path=/trunk/; revision=6947
Diffstat (limited to 'libibex')
-rw-r--r-- | libibex/ChangeLog | 9 | ||||
-rw-r--r-- | libibex/wordindex.c | 2 | ||||
-rw-r--r-- | libibex/wordindexmem.c | 4 |
3 files changed, 14 insertions, 1 deletions
diff --git a/libibex/ChangeLog b/libibex/ChangeLog index fa7e3dc48a..4aa7650b0a 100644 --- a/libibex/ChangeLog +++ b/libibex/ChangeLog @@ -1,3 +1,12 @@ +2000-12-12 Christopher James Lahey <clahey@helixcode.com> + + * wordindex.c (cache_sanity): Made cache_sanity only be included + if d(x) is defined as x. + + * wordindexmem.c: Made node_sanity and cache_sanity only be + included if d(x) is defined as x or if MALLOC_CHECK is defined. + Made sync_value only be included if d(x) is defined as x. + 2000-11-28 Not Zed <NotZed@HelixCode.com> * index.h: Turn off index stats by default. diff --git a/libibex/wordindex.c b/libibex/wordindex.c index 3cee391668..a8592cbcef 100644 --- a/libibex/wordindex.c +++ b/libibex/wordindex.c @@ -131,7 +131,7 @@ ibex_create_word_index(struct _memcache *bc, blockid_t *wordroot, blockid_t *nam return idx; } -#if 1 +#if d(!)0 static void cache_sanity(struct _wordcache *head) { diff --git a/libibex/wordindexmem.c b/libibex/wordindexmem.c index 0959c2be21..479e5b0343 100644 --- a/libibex/wordindexmem.c +++ b/libibex/wordindexmem.c @@ -164,6 +164,7 @@ ibex_create_word_index_mem(struct _memcache *bc, blockid_t *wordroot, blockid_t return idx; } +#if (d(!)0) || defined(MALLOC_CHECK) static void node_sanity(char *key, struct _wordcache *node, void *data) { @@ -184,6 +185,7 @@ cache_sanity(struct _IBEXWord *idx) #endif g_hash_table_foreach(idx->wordcache, (GHFunc)node_sanity, idx); } +#endif static void word_index_pre(struct _IBEXWord *idx) { @@ -237,6 +239,7 @@ sync_free_value(void *key, void *value, void *data) return TRUE; } +#if d(!)0 static void sync_value(void *key, void *value, void *data) { @@ -245,6 +248,7 @@ sync_value(void *key, void *value, void *data) sync_cache_entry(idx, cache); } +#endif static void word_index_post(struct _IBEXWord *idx) { |