Commit 7637b7d8 authored by Arturo Tena/libole2's avatar Arturo Tena/libole2

Deleted ms_ole_dump_tree, use instead ms_ole_debug with magic number = 2....

Deleted ms_ole_dump_tree, use instead ms_ole_debug with magic number = 2. Fixed ms_ole_open_vfs declaration.
parent 3f8882ee
1999-10-22 Arturo Tena <arturo@directmail.org>
* ms-ole.c (ms_ole_dump_tree): Deleted.
(ms_ole_debug): If magic is 2, dump the tree.
* ms-ole.h (ms_ole_open_vfs): Fix declaration.
1999-10-21 Arturo Tena <arturo@directmail.org>
* ms-ole.c (ms_ole_dump_tree): Added.
......
......@@ -513,23 +513,26 @@ dump_allocation (MsOle *f)
printf ("-------------------------------------------------------------\n");
}
/**
* Dump tree.
**/
ms_ole_dump_tree (MsOle *f)
{
if (f->pps)
dump_tree (f->pps, 0);
}
/**
* Dump some useful facts.
* magic: 2 : dump tree
* default : dump header and allocation
**/
void
ms_ole_debug (MsOle *f, int magic)
{
dump_header (f);
dump_allocation (f);
switch (magic) {
case 2:
if (f->pps)
dump_tree (f->pps, 0);
else
printf ("There are no tree (no pps)\n");
break;
default:
dump_header (f);
dump_allocation (f);
break;
}
}
static BLP
......
......@@ -86,8 +86,8 @@ extern MsOleErr ms_ole_create_vfs (MsOle **, const char *name, int try_mmap,
MsOleSysWrappers *wrappers);
/* Open existing OLE file */
#define ms_ole_open(n,m) ms_ole_open_vfs ((n), (m), MsOleDoMmap, NULL)
extern MsOleErr ms_ole_open_vfs (MsOle **, const char *name, int try_mmap,
MsOleSysWrappers *wrappers);
extern MsOleErr ms_ole_open_vfs (MsOle **, const char *name,
gboolean try_mmap, MsOleSysWrappers *);
extern void ms_ole_ref (MsOle *);
extern void ms_ole_unref (MsOle *);
extern void ms_ole_destroy (MsOle **);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment