28 |
#include "dbop.h" |
#include "dbop.h" |
29 |
#include "idset.h" |
#include "idset.h" |
30 |
#include "strbuf.h" |
#include "strbuf.h" |
31 |
|
#include "strhash.h" |
32 |
#include "varray.h" |
#include "varray.h" |
33 |
|
|
34 |
#define VERSIONKEY " __.VERSION" |
#define VERSIONKEY " __.VERSION" |
61 |
#define GTOP_IGNORECASE 16 /* ignore case distinction */ |
#define GTOP_IGNORECASE 16 /* ignore case distinction */ |
62 |
#define GTOP_BASICREGEX 32 /* use basic regular expression */ |
#define GTOP_BASICREGEX 32 /* use basic regular expression */ |
63 |
|
|
|
struct gtop_compact_entry { |
|
|
struct gtop_compact_entry *next; |
|
|
VARRAY *vb; /* array of line numbers */ |
|
|
char tag[1]; |
|
|
}; |
|
|
|
|
64 |
typedef struct { |
typedef struct { |
65 |
DBOP *dbop; /* descripter of DBOP */ |
DBOP *dbop; /* descripter of DBOP */ |
66 |
int format_version; /* format version */ |
int format_version; /* format version */ |
83 |
FILE *fp; /* descriptor of 'path' */ |
FILE *fp; /* descriptor of 'path' */ |
84 |
const char *lnop; /* current line number */ |
const char *lnop; /* current line number */ |
85 |
int lno; /* integer value of 'lnop' */ |
int lno; /* integer value of 'lnop' */ |
86 |
struct gtop_compact_entry **htab;/* hash table */ |
STRHASH *pool; /* record pool for compact format */ |
87 |
} GTOP; |
} GTOP; |
88 |
|
|
89 |
const char *dbname(int); |
const char *dbname(int); |