extern struct game_t game;
extern struct settings_t settings;
-extern char* xstrdup(const char* s);
-extern void* xmalloc(size_t size);
extern void packed_to_token(long, char token[]);
extern long token_to_packed(const char token[]);
extern void tokenize(char*, struct command_t *);
#include "advent.h"
#include "dungeon.h"
-char* xstrdup(const char* s)
+static char* xstrdup(const char* s)
{
char* ptr = strdup(s);
if (ptr == NULL) {
return (ptr);
}
-void* xmalloc(size_t size)
+static void* xmalloc(size_t size)
{
void* ptr = malloc(size);
if (ptr == NULL) {