mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-18 18:22:07 +08:00
Remove function mdb_alloc_catalog
This commit is contained in:
@@ -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
|
||||
|
@@ -141,6 +141,5 @@ read_pg_if_32
|
||||
read_pg_if
|
||||
read_pg_if_n
|
||||
mdb_alloc_tabledef
|
||||
mdb_alloc_catalog
|
||||
</SECTION>
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user