~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/hash.h

  • Committer: Brian Aker
  • Date: 2008-07-29 07:47:38 UTC
  • mfrom: (212.6.1 bzero-memset)
  • Revision ID: brian@tangent.org-20080729074738-lfzim6htapm42f2o
MergeĀ fromĀ Mats

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
bool hash_update(HASH *hash,uchar *record,uchar *old_key,size_t old_key_length);
67
67
void hash_replace(HASH *hash, HASH_SEARCH_STATE *state, uchar *new_row);
68
68
 
69
 
#define hash_clear(H) bzero((char*) (H),sizeof(*(H)))
 
69
#define hash_clear(H) memset((char*) (H), 0, sizeof(*(H)))
70
70
#define hash_inited(H) ((H)->array.buffer != 0)
71
71
#define hash_init_opt(A,B,C,D,E,F,G,H) \
72
72
          (!hash_inited(A) && _hash_init(A,0,B,C,D,E,F,G, H CALLER_INFO))