diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-10-05 07:23:36 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-10-05 07:23:36 +0200 |
commit | 7ad0eac4b8c81c5123ef5a62b23ba2895dd997c8 (patch) | |
tree | 09d5530e86be7e7b9da37dff2668e31d18a78fb5 /tree/meta.c | |
parent | 00905a4e2b959ccc3b79381acbf1d3b8e5319e8e (diff) | |
download | mupdf-7ad0eac4b8c81c5123ef5a62b23ba2895dd997c8.tar.xz |
refactor and rename node types
Diffstat (limited to 'tree/meta.c')
-rw-r--r-- | tree/meta.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tree/meta.c b/tree/meta.c deleted file mode 100644 index 4d3a2a74..00000000 --- a/tree/meta.c +++ /dev/null @@ -1,37 +0,0 @@ -#include <fitz.h> - -fz_error * -fz_newmeta(fz_node **nodep, fz_obj *info) -{ - fz_meta *node; - - node = fz_malloc(sizeof (fz_meta)); - if (!node) - return fz_outofmem; - *nodep = (fz_node*)node; - - fz_initnode((fz_node*)node, FZ_NMETA); - node->info = fz_keepobj(info); - node->child = nil; - - return nil; -} - -void -fz_freemeta(fz_meta *node) -{ - if (node->child) - fz_freenode(node->child); - if (node->info) - fz_dropobj(node->info); - fz_free(node); -} - -fz_rect -fz_boundmeta(fz_meta *node, fz_matrix ctm) -{ - if (!node->child) - return FZ_INFRECT; - return fz_boundnode(node->child, ctm); -} - |