added column definition pg pointer to catalog entry struct, and modified

catalog_dump routine. Updated hacking file with new info on column defintions.
This commit is contained in:
brianb
2000-02-28 04:41:37 +00:00
parent fcd8153070
commit 03410e70f6
3 changed files with 49 additions and 7 deletions

View File

@@ -62,6 +62,7 @@ typedef struct {
MdbHandle *mdb;
char object_name[MDB_MAX_OBJ_NAME+1];
int object_type;
unsigned long table_pg;
unsigned long kkd_pg;
unsigned int kkd_rowid;
int num_props;

View File

@@ -68,6 +68,7 @@ fprintf(stdout,"\n");
entry->object_type = mdb->pg_buf[offset+0x09];
j=0;
entry->mdb = mdb;
entry->table_pg = mdb_get_int16(mdb,offset+1);
for (i=offset+31;isprint(mdb->pg_buf[i]);i++) {
if (j<=MDB_MAX_OBJ_NAME) {
entry->object_name[j++]=mdb->pg_buf[i];
@@ -111,9 +112,10 @@ MdbCatalogEntry *entryp;
for (l=g_list_first(mdb->catalog);l;l=g_list_next(l)) {
entryp = l->data;
if (obj_type==-1 || entryp->object_type==obj_type) {
fprintf(stdout,"Type: %-15s Name: %-30s KKD pg: %04x row: %2d\n",
fprintf(stdout,"Type: %-10s Name: %-18s T pg: %04x KKD pg: %04x row: %2d\n",
mdb_get_objtype_string(entryp->object_type),
entryp->object_name,
entryp->table_pg,
entryp->kkd_pg,
entryp->kkd_rowid);
}