~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/myisampack.h

Moved the last of the libdrizzleclient calls into Protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
 
16
#ifndef STORAGE_MYISAM_MYISAMPACK_H
 
17
#define STORAGE_MYISAM_MYISAMPACK_H
 
18
 
16
19
/*
17
20
  Storing of values in high byte first order.
18
21
 
216
219
#endif /* WORDS_BIGENDIAN */
217
220
 
218
221
/* Fix to avoid warnings when sizeof(ha_rows) == sizeof(long) */
219
 
 
220
 
#ifdef BIG_TABLES
221
222
#define mi_rowstore(T,A)    mi_int8store(T, A)
222
223
#define mi_rowkorr(T)       mi_uint8korr(T)
223
 
#else
224
 
#define mi_rowstore(T,A)    { mi_int4store(T, 0);\
225
 
                              mi_int4store(((unsigned char*) (T) + 4), A); }
226
 
#define mi_rowkorr(T)       mi_uint4korr((unsigned char*) (T) + 4)
227
 
#endif
228
224
 
229
 
#if SIZEOF_OFF_T > 4
230
225
#define mi_sizestore(T,A)   mi_int8store(T, A)
231
226
#define mi_sizekorr(T)      mi_uint8korr(T)
232
 
#else
233
 
#define mi_sizestore(T,A)            \
234
 
  do {                               \
235
 
    if ((A) == HA_OFFSET_ERROR)      \
236
 
      memset((T), 255, 8);           \
237
 
    else {                           \
238
 
      mi_int4store((T), 0);          \
239
 
      mi_int4store(((T) + 4), A);    \
240
 
    }                                \
241
 
  } while (0)
242
 
#define mi_sizekorr(T)      mi_uint4korr((unsigned char*) (T) + 4)
243
 
#endif
 
227
 
 
228
#endif /* STORAGE_MYISAM_MYISAMPACK_H */