~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/ctype-uca.c

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:
7758
7758
  
7759
7759
  /* Init all variables */
7760
7760
  errstr[0]= '\0';
7761
 
  bzero(&item, sizeof(item));
 
7761
  memset(&item, 0, sizeof(item));
7762
7762
  my_coll_lexem_init(&lexem, str, str_end);
7763
7763
  
7764
7764
  while ((lexnum= my_coll_lexem_next(&lexem)))
7900
7900
  
7901
7901
  if (!(newweights= (uint16_t**) (*alloc)(256*sizeof(uint16_t*))))
7902
7902
    return 1;
7903
 
  bzero(newweights, 256*sizeof(uint16_t*));
 
7903
  memset(newweights, 0, 256*sizeof(uint16_t*));
7904
7904
  
7905
7905
  if (!(newlengths= (uchar*) (*alloc)(256)))
7906
7906
    return 1;
7941
7941
      
7942
7942
      if (!(newweights[pagec]= (uint16_t*) (*alloc)(size)))
7943
7943
        return 1;
7944
 
      bzero((void*) newweights[pagec], size);
 
7944
      memset((void*) newweights[pagec], 0, size);
7945
7945
      
7946
7946
      for (chc=0 ; chc < 256; chc++)
7947
7947
      {
7986
7986
    char *contraction_flags;
7987
7987
    if (!(cs->contractions= (uint16_t*) (*alloc)(size)))
7988
7988
        return 1;
7989
 
    bzero((void*)cs->contractions, size);
 
7989
    memset((void*)cs->contractions, 0, size);
7990
7990
    contraction_flags= ((char*) cs->contractions) + 0x40*0x40;
7991
7991
    for (i=0; i < rc; i++)
7992
7992
    {