X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fnodes%2Fpackable_tree.cpp;fp=nucleus%2Flibrary%2Fnodes%2Fpackable_tree.cpp;h=2d8a992594727e329efb23fa6533a25bcedd63f0;hb=51d71c226be424b6a698c7474d237e8c69661af5;hp=a38f88ad86837f98d7fd8b6879636daa0e067e7b;hpb=cdf68a53cff76449796a3aa0222e2d0afff97c7c;p=feisty_meow.git diff --git a/nucleus/library/nodes/packable_tree.cpp b/nucleus/library/nodes/packable_tree.cpp index a38f88ad..2d8a9925 100644 --- a/nucleus/library/nodes/packable_tree.cpp +++ b/nucleus/library/nodes/packable_tree.cpp @@ -23,7 +23,7 @@ using namespace basis; using namespace structures; -//#define DEBUG_PACKABLE_TREE +#define DEBUG_PACKABLE_TREE // uncomment for noisy debugging. #undef LOG @@ -92,8 +92,8 @@ LOG(a_sprintf("len A %d", size_accumulator)); void packable_tree::packit(byte_array &packed_form, const packable_tree *current_node) { -LOG(a_sprintf("packing node %x", current_node)); -LOG(a_sprintf("size A %d", packed_form.length())); +//LOG(a_sprintf("packing node %x", current_node)); +//LOG(a_sprintf("size A %d", packed_form.length())); FUNCDEF("packit"); if (!current_node) throw_error(static_class_name(), func, "current node is nil"); @@ -119,9 +119,9 @@ throw_error(current_node->class_name(), func, "failure calculating size"); } // stuff the command unit. command.pack(packed_form); -LOG(a_sprintf("size B %d", packed_form.length())); +//LOG(a_sprintf("size B %d", packed_form.length())); packed_form += temp_store; // main chunk is not packed, just added. -LOG(a_sprintf("size C %d", packed_form.length())); +//LOG(a_sprintf("size C %d", packed_form.length())); } int packable_tree::recursive_packed_size() const