Fixed obsolete lines, free joliet tree, added public functions

This commit is contained in:
Mario Danic
2007-06-02 08:24:58 +00:00
parent 44b504640f
commit 9746b5b273
8 changed files with 114 additions and 533 deletions

View File

@@ -191,6 +191,21 @@ joliet_tree_create(struct ecma119_write_target *t,
return root;
}
void
joliet_tree_free(struct joliet_tree_node *root)
{
size_t i;
if (root->type == JOLIET_DIR) {
for (i=0; i < root->info.dir.nchildren; i++) {
joliet_tree_free(root->info.dir.children[i]);
}
free(root->info.dir.children);
}
free(root->name);
free(root);
}
/* ugh. this is mostly C&P */
static void
write_path_table(struct ecma119_write_target *t,