~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/hash.h

  • Committer: Brian Aker
  • Date: 2008-11-22 00:57:28 UTC
  • Revision ID: brian@tangent.org-20081122005728-iratrqrj5o6jbf6d
Fix, partial, for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
/* A search iterator state */
57
57
typedef uint32_t HASH_SEARCH_STATE;
58
58
 
59
 
#define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,0,B,C,D,E,F,G,H)
60
 
#define hash_init2(A,B,C,D,E,F,G,H,I) _hash_init(A,B,C,D,E,F,G,H,I)
61
59
bool _hash_init(HASH *hash, uint32_t growth_size,
62
60
                const CHARSET_INFO * const charset,
63
61
                uint32_t default_array_elements, size_t key_offset,
64
62
                size_t key_length, hash_get_key get_key,
65
63
                void (*free_element)(void*), uint32_t flags);
 
64
#define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,0,B,C,D,E,F,G,H)
 
65
#define hash_init2(A,B,C,D,E,F,G,H,I) _hash_init(A,B,C,D,E,F,G,H,I)
66
66
void hash_free(HASH *tree);
67
67
void my_hash_reset(HASH *hash);
68
68
unsigned char *hash_element(HASH *hash,uint32_t idx);