X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ftests_nodes%2Ftest_tree.cpp;h=d0b0a4343f4e290665d104a02b99f3b98102137c;hb=da8805bb69afd232991a8031d3164f02e78da644;hp=5d3516ce6be5fb1df92352a47ff40084386f1172;hpb=3ea085ec301ed1399dfa1e9f3a240312dc95410b;p=feisty_meow.git diff --git a/nucleus/library/tests_nodes/test_tree.cpp b/nucleus/library/tests_nodes/test_tree.cpp index 5d3516ce..d0b0a434 100644 --- a/nucleus/library/tests_nodes/test_tree.cpp +++ b/nucleus/library/tests_nodes/test_tree.cpp @@ -1,15 +1,14 @@ /* -* Name : test_tree * -* Author : Chris Koeritz * -* Purpose: * -* Tests out the tree class. * +* Name : test_tree +* Author : Chris Koeritz +* Purpose: Tests out the tree class. ** -* Copyright (c) 1993-$now By Author. This program is free software; you can * -* redistribute it and/or modify it under the terms of the GNU General Public * -* License as published by the Free Software Foundation; either version 2 of * -* the License or (at your option) any later version. This is online at: * -* http://www.fsf.org/copyleft/gpl.html * -* Please send any updates to: fred@gruntose.com * +* Copyright (c) 1993-$now By Author. This program is free software; you can +* redistribute it and/or modify it under the terms of the GNU General Public +* License as published by the Free Software Foundation; either version 2 of +* the License or (at your option) any later version. This is online at: +* http://www.fsf.org/copyleft/gpl.html +* Please send any updates to: fred@gruntose.com */ #include @@ -37,7 +36,7 @@ const int test_iterations = 20; class bogotre : public packable, public tree { public: - bogotre(const char *start = NIL) : who_cares(42), i_sure_dont('l'), + bogotre(const char *start = NULL_POINTER) : who_cares(42), i_sure_dont('l'), another_useless_int(23) { astring to_init(start); if (to_init.length() < 1) to_init += "ack"; @@ -152,7 +151,7 @@ larch *test_tree::next(larch *&move, larch *formal(hook), traveller &skip) void test_tree::apply(larch *apply_to, applier *to_apply, tree::traversal_directions order) { - larch *curr = NIL; + larch *curr = NULL_POINTER; for (traveller skippy = apply_to->start(order); next(curr, apply_to, skippy); ) to_apply(curr); }