X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fnodes%2Fnode.cpp;h=8a6b4dc7ee53ce20c4d8ed327babc1f98d7f4ad8;hb=486ec82d0f708dcfffdbde255aa1f2368b0a8074;hp=465fa5df6f07303eeda2c34b7947e668e8f0e609;hpb=3ea085ec301ed1399dfa1e9f3a240312dc95410b;p=feisty_meow.git diff --git a/nucleus/library/nodes/node.cpp b/nucleus/library/nodes/node.cpp index 465fa5df..8a6b4dc7 100644 --- a/nucleus/library/nodes/node.cpp +++ b/nucleus/library/nodes/node.cpp @@ -26,8 +26,8 @@ namespace nodes { // the internal_link class anonymously hangs onto a pointer to the object. struct internal_link { node *_connection; - internal_link(node *destination = NIL) : _connection(destination) {} - virtual ~internal_link() { _connection = NIL; } + internal_link(node *destination = NULL_POINTER) : _connection(destination) {} + virtual ~internal_link() { _connection = NULL_POINTER; } }; class node_link_amorph : public amorph @@ -53,7 +53,7 @@ int node::links() const { return _links->elements(); } // set_empty: assumes used correctly by internal functions--no bounds return. void node::set_empty(int link_num) { - internal_link *blank_frank = new internal_link(NIL); + internal_link *blank_frank = new internal_link(NULL_POINTER); _links->put(link_num, blank_frank); } @@ -84,7 +84,7 @@ void node::insert_link(int where, node *to_insert) node *node::get_link(int link_number) const { - bounds_return(link_number, 0, _links->elements()-1, NIL); + bounds_return(link_number, 0, _links->elements()-1, NULL_POINTER); return (*_links)[link_number]->_connection; }