~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/hash.h

  • Committer: Brian Aker
  • Date: 2008-08-10 22:14:13 UTC
  • Revision ID: brian@tangent.org-20080810221413-ablfnyr3wgu6fjaw
ulong conversion. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
typedef struct st_hash {
37
37
  size_t key_offset,key_length;         /* Length of key if const length */
38
38
  size_t blength;
39
 
  ulong records;
 
39
  uint32_t records;
40
40
  uint flags;
41
41
  DYNAMIC_ARRAY array;                          /* Place for hash_keys */
42
42
  hash_get_key get_key;
50
50
#define hash_init(A,B,C,D,E,F,G,H) _hash_init(A,0,B,C,D,E,F,G,H CALLER_INFO)
51
51
#define hash_init2(A,B,C,D,E,F,G,H,I) _hash_init(A,B,C,D,E,F,G,H,I CALLER_INFO)
52
52
bool _hash_init(HASH *hash, uint growth_size, const CHARSET_INFO * const charset,
53
 
                   ulong default_array_elements, size_t key_offset,
 
53
                   uint32_t default_array_elements, size_t key_offset,
54
54
                   size_t key_length, hash_get_key get_key,
55
55
                   void (*free_element)(void*), uint flags CALLER_INFO_PROTO);
56
56
void hash_free(HASH *tree);
57
57
void my_hash_reset(HASH *hash);
58
 
uchar *hash_element(HASH *hash,ulong idx);
 
58
uchar *hash_element(HASH *hash,uint32_t idx);
59
59
uchar *hash_search(const HASH *info, const uchar *key, size_t length);
60
60
uchar *hash_first(const HASH *info, const uchar *key, size_t length,
61
61
                HASH_SEARCH_STATE *state);