Remove function mdb_alloc_catalog

This commit is contained in:
whydoubt
2004-09-03 04:05:25 +00:00
parent c5e11e5445
commit d2208db027
4 changed files with 6 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
Thu Sep 2 23:04:02 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
* doc/reference/libmdb/libmdb-sections.txt:
* include/mdbtools.h:
* src/libmdb/catalog.c: Remove function mdb_alloc_catalog
Sat Aug 28 14:21:41 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
* src/libmdb/data.c: Fix mdb_read_next_dpg
Correct long int display length

View File

@@ -141,6 +141,5 @@ read_pg_if_32
read_pg_if
read_pg_if_n
mdb_alloc_tabledef
mdb_alloc_catalog
</SECTION>

View File

@@ -407,7 +407,6 @@ extern void mdb_swap_pgbuf(MdbHandle *mdb);
extern long _mdb_get_int32(unsigned char *buf, int offset);
/* catalog.c */
extern void mdb_alloc_catalog(MdbHandle *mdb);
extern void mdb_free_catalog(MdbHandle *mdb);
extern GPtrArray *mdb_read_catalog(MdbHandle *mdb, int obj_type);
extern void mdb_dump_catalog(MdbHandle *mdb, int obj_type);

View File

@@ -47,10 +47,6 @@ static char *type_name[] = {"Form",
}
}
void mdb_alloc_catalog(MdbHandle *mdb)
{
mdb->catalog = g_ptr_array_new();
}
void mdb_free_catalog(MdbHandle *mdb)
{
unsigned int i;
@@ -72,7 +68,7 @@ GPtrArray *mdb_read_catalog (MdbHandle *mdb, int objtype)
int type;
if (mdb->catalog) mdb_free_catalog(mdb);
mdb_alloc_catalog(mdb);
mdb->catalog = g_ptr_array_new();
mdb->num_catalog = 0;
/* dummy up a catalog entry so we may read the table def */