projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'dev' of feistymeow.org:feisty_meow into dev
[feisty_meow.git]
/
nucleus
/
library
/
nodes
/
node.cpp
diff --git
a/nucleus/library/nodes/node.cpp
b/nucleus/library/nodes/node.cpp
index 465fa5df6f07303eeda2c34b7947e668e8f0e609..8a6b4dc7ee53ce20c4d8ed327babc1f98d7f4ad8 100644
(file)
--- 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;
// the internal_link class anonymously hangs onto a pointer to the object.
struct internal_link {
node *_connection;
- internal_link(node *destination = N
IL
) : _connection(destination) {}
- virtual ~internal_link() { _connection = N
IL
; }
+ internal_link(node *destination = N
ULL_POINTER
) : _connection(destination) {}
+ virtual ~internal_link() { _connection = N
ULL_POINTER
; }
};
class node_link_amorph : public amorph<internal_link>
};
class node_link_amorph : public amorph<internal_link>
@@
-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)
{
// 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(N
IL
);
+ internal_link *blank_frank = new internal_link(N
ULL_POINTER
);
_links->put(link_num, blank_frank);
}
_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
{
node *node::get_link(int link_number) const
{
- bounds_return(link_number, 0, _links->elements()-1, N
IL
);
+ bounds_return(link_number, 0, _links->elements()-1, N
ULL_POINTER
);
return (*_links)[link_number]->_connection;
}
return (*_links)[link_number]->_connection;
}