~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

Replacing all bzero() calls with memset() calls and removing the bzero.c file.
Also removing check for bzero from the 'configure.ac' autoconf file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6175
6175
 
6176
6176
  free_replace();
6177
6177
 
6178
 
  bzero((char*) &to_array,sizeof(to_array));
6179
 
  bzero((char*) &from_array,sizeof(from_array));
 
6178
  memset((char*) &to_array, 0, sizeof(to_array));
 
6179
  memset((char*) &from_array, 0, sizeof(from_array));
6180
6180
  if (!*from)
6181
6181
    die("Missing argument in %s", command->query);
6182
6182
  start= buff= (char *)my_malloc(strlen(from)+1,MYF(MY_WME | MY_FAE));
6372
6372
  /* for each regexp substitution statement */
6373
6373
  while (p < expr_end)
6374
6374
  {
6375
 
    bzero(&reg,sizeof(reg));
 
6375
    memset(&reg, 0, sizeof(reg));
6376
6376
    /* find the start of the statement */
6377
6377
    while (p < expr_end)
6378
6378
    {
6682
6682
    if (len > max_length)
6683
6683
      max_length=len;
6684
6684
  }
6685
 
  bzero((char*) is_word_end,sizeof(is_word_end));
 
6685
  memset((char*) is_word_end, 0, sizeof(is_word_end));
6686
6686
  for (i=0 ; word_end_chars[i] ; i++)
6687
6687
    is_word_end[(uchar) word_end_chars[i]]=1;
6688
6688
 
6801
6801
      or_bits(sets.set+used_sets,sets.set);  /* Can restart from start */
6802
6802
 
6803
6803
    /* Find all chars that follows current sets */
6804
 
    bzero((char*) used_chars,sizeof(used_chars));
 
6804
    memset((char*) used_chars, 0, sizeof(used_chars));
6805
6805
    for (i= (uint) ~0; (i=get_next_bit(sets.set+used_sets,i)) ;)
6806
6806
    {
6807
6807
      used_chars[follow[i].chr]=1;
6935
6935
 
6936
6936
int init_sets(REP_SETS *sets,uint states)
6937
6937
{
6938
 
  bzero((char*) sets,sizeof(*sets));
 
6938
  memset((char*) sets, 0, sizeof(*sets));
6939
6939
  sets->size_of_bits=((states+7)/8);
6940
6940
  if (!(sets->set_buffer=(REP_SET*) my_malloc(sizeof(REP_SET)*SET_MALLOC_HUNC,
6941
6941
                MYF(MY_WME))))
6966
6966
  {
6967
6967
    sets->extra--;
6968
6968
    set=sets->set+ sets->count++;
6969
 
    bzero((char*) set->bits,sizeof(uint)*sets->size_of_bits);
6970
 
    bzero((char*) &set->next[0],sizeof(set->next[0])*LAST_CHAR_CODE);
 
6969
    memset((char*) set->bits, 0, sizeof(uint)*sets->size_of_bits);
 
6970
    memset((char*) &set->next[0], 0, sizeof(set->next[0])*LAST_CHAR_CODE);
6971
6971
    set->found_offset=0;
6972
6972
    set->found_len=0;
6973
6973
    set->table_offset= (uint) ~0;