mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +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>
|
Sat Aug 28 14:21:41 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||||
* src/libmdb/data.c: Fix mdb_read_next_dpg
|
* src/libmdb/data.c: Fix mdb_read_next_dpg
|
||||||
Correct long int display length
|
Correct long int display length
|
||||||
|
|||||||
@@ -141,6 +141,5 @@ read_pg_if_32
|
|||||||
read_pg_if
|
read_pg_if
|
||||||
read_pg_if_n
|
read_pg_if_n
|
||||||
mdb_alloc_tabledef
|
mdb_alloc_tabledef
|
||||||
mdb_alloc_catalog
|
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
|
|||||||
@@ -407,7 +407,6 @@ extern void mdb_swap_pgbuf(MdbHandle *mdb);
|
|||||||
extern long _mdb_get_int32(unsigned char *buf, int offset);
|
extern long _mdb_get_int32(unsigned char *buf, int offset);
|
||||||
|
|
||||||
/* catalog.c */
|
/* catalog.c */
|
||||||
extern void mdb_alloc_catalog(MdbHandle *mdb);
|
|
||||||
extern void mdb_free_catalog(MdbHandle *mdb);
|
extern void mdb_free_catalog(MdbHandle *mdb);
|
||||||
extern GPtrArray *mdb_read_catalog(MdbHandle *mdb, int obj_type);
|
extern GPtrArray *mdb_read_catalog(MdbHandle *mdb, int obj_type);
|
||||||
extern void mdb_dump_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)
|
void mdb_free_catalog(MdbHandle *mdb)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
@@ -72,7 +68,7 @@ GPtrArray *mdb_read_catalog (MdbHandle *mdb, int objtype)
|
|||||||
int type;
|
int type;
|
||||||
|
|
||||||
if (mdb->catalog) mdb_free_catalog(mdb);
|
if (mdb->catalog) mdb_free_catalog(mdb);
|
||||||
mdb_alloc_catalog(mdb);
|
mdb->catalog = g_ptr_array_new();
|
||||||
mdb->num_catalog = 0;
|
mdb->num_catalog = 0;
|
||||||
|
|
||||||
/* dummy up a catalog entry so we may read the table def */
|
/* dummy up a catalog entry so we may read the table def */
|
||||||
|
|||||||
Reference in New Issue
Block a user