Crossfire Server, Branches 1.12
R18729
|
#include <global.h>
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.c.
void free_objectlink | ( | objectlink * | ol | ) |
Recursively frees all objectlinks.
ol | object link to free. |
Definition at line 83 of file links.c.
References free_objectlink(), and oblnk::next.
Referenced by add_button_link(), free_objectlink(), and free_objectlinkpt().
void free_objectlinkpt | ( | oblinkpt * | obp | ) |
Recursively frees all linked list of objectlink pointers
obp | pointer to free. |
Definition at line 95 of file links.c.
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 45 of file links.c.
References CALLOC, fatal(), oblnk::id, oblnk::next, oblnk::ob, and OUT_OF_MEMORY.
Referenced by add_button_link(), add_friendly_object(), add_to_racelist(), and get_racelist().
oblinkpt* get_objectlinkpt | ( | void | ) |
Allocates a new oblinkpt structure, initialises it, and returns a pointer to it.
Definition at line 65 of file links.c.
References fatal(), oblinkpt::link, oblinkpt::next, OUT_OF_MEMORY, and oblinkpt::value.
Referenced by add_button_link().