~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

Replace macros around unireg.h, store_record,restore_record,cmp_record,empty_record

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
#define MYF_RW MYF(MY_WME+MY_NABP)              /* Vid my_read & my_write */
110
110
 
111
111
        /* Extern defines */
112
 
#define store_record(A,B) memcpy((A)->B,(A)->record[0],(size_t) (A)->s->reclength)
113
 
#define restore_record(A,B) memcpy((A)->record[0],(A)->B,(size_t) (A)->s->reclength)
114
 
#define cmp_record(A,B) memcmp((A)->record[0],(A)->B,(size_t) (A)->s->reclength)
115
 
#define empty_record(A)                                 \
 
112
/* #define store_record(A,B) memcpy((A)->B,(A)->record[0],(size_t) (A)->s->reclength) */
 
113
/* #define restore_record(A,B) memcpy((A)->record[0],(A)->B,(size_t) (A)->s->reclength) */
 
114
/* #define cmp_record(A,B) memcmp((A)->record[0],(A)->B,(size_t) (A)->s->reclength) */
 
115
/* #define empty_record(A)                                 \
116
116
  do {                                                  \
117
117
    restore_record((A),s->default_values);              \
118
118
    memset((A)->null_flags, 255, (A)->s->null_bytes);   \
119
119
  } while (0)
120
 
 
 
120
*/
121
121
        /* Defines for use with openfrm, openprt and openfrd */
122
122
 
123
123
#define READ_ALL                1       /* openfrm: Read all parameters */