Crossfire Server, Trunk
|
Go to the source code of this file.
Functions | |
void | free_objectlink (objectlink *ol) |
void | free_objectlinkpt (oblinkpt *obp) |
objectlink * | get_objectlink (void) |
oblinkpt * | get_objectlinkpt (void) |
Utility functions for links between objects.
Definition in file links.cpp.
void free_objectlink | ( | objectlink * | ol | ) |
Recursively frees all objectlinks.
ol | object link to free. |
Definition at line 67 of file links.cpp.
References free_objectlink(), and objectlink::next.
Referenced by add_button_link(), command_kill_pets(), command_showpets(), free_objectlink(), free_objectlinkpt(), get_nearest_player(), pets_attempt_follow(), and pets_terminate_all().
void free_objectlinkpt | ( | oblinkpt * | obp | ) |
Recursively frees all linked list of objectlink pointers
obp | pointer to free. |
Definition at line 79 of file links.cpp.
References free_objectlink(), free_objectlinkpt(), oblinkpt::link, and oblinkpt::next.
Referenced by free_map(), and free_objectlinkpt().
objectlink* get_objectlink | ( | void | ) |
Allocates a new objectlink structure, initialises it, and returns a pointer to it.
Definition at line 33 of file links.cpp.
References fatal(), and OUT_OF_MEMORY.
Referenced by add_button_link().
oblinkpt* get_objectlinkpt | ( | void | ) |
Allocates a new oblinkpt structure, initialises it, and returns a pointer to it.
Definition at line 51 of file links.cpp.
References fatal(), and OUT_OF_MEMORY.
Referenced by add_button_link().