code to handle options and debugging

This commit is contained in:
brianb
2004-02-16 02:00:45 +00:00
parent eba3a8aca7
commit fb02e23b6b
9 changed files with 151 additions and 89 deletions

View File

@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -104,6 +105,14 @@ typedef enum {
MDB_INDEX_SCAN
} MdbStrategy;
enum {
MDB_DEBUG_LIKE = 0x0001,
MDB_DEBUG_WRITE = 0x0002,
MDB_DEBUG_USAGE = 0x0004,
MDB_DEBUG_OLE = 0x0008,
MDB_USE_INDEX = 0x0010
};
#define mdb_is_logical_op(x) (x == MDB_OR || \
x == MDB_AND || \
x == MDB_NOT )
@@ -250,6 +259,8 @@ typedef struct {
int col_prec;
int col_scale;
MdbProperties *props;
int fixed_offset;
int var_col_num;
} MdbColumn;
typedef struct _mdbsargtree {
@@ -479,4 +490,8 @@ extern MdbProperties *mdb_read_props(MdbHandle *mdb, GPtrArray *names, gchar *kk
extern MdbTableDef *mdb_create_temp_table(MdbHandle *mdb, char *name);
extern void mdb_temp_table_add_col(MdbTableDef *table, MdbColumn *col);
/* options.c */
extern int mdb_get_option(unsigned long optnum);
void mdb_debug(int klass, char *fmt, ...);
#endif /* _mdbtools_h_ */