~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/opt_range.h

Removing deprecated functions from code and replacing them with C99 equivalents:
- replacing bcmp() calls with memcmp() calls
- replacing bfill() with memset()
- replacing bmove() and bcopy() with memcpy() or memmove()

The function memcpy_fixed() was apparantly introduced to fix a problem in gcc on
Alpha, but since it is not used consistently, it is likely not necessary any more.
It was replaced with memcpy().

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
  /* Used only by QUICK_SELECT_DESC */
336
336
  QUICK_RANGE_SELECT(const QUICK_RANGE_SELECT& org) : QUICK_SELECT_I()
337
337
  {
338
 
    bcopy(&org, this, sizeof(*this));
 
338
    memmove(this, &org, sizeof(*this));
339
339
    /* 
340
340
      Use default MRR implementation for reverse scans. No table engine
341
341
      currently can do an MRR scan with output in reverse index order.