From c9bc7364fa2986d9d6ffedbff092d2fc6c679b93 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Sun, 8 May 2011 21:05:54 +0200 Subject: [PATCH] + --- src/pkg-psyc.h | 10 ++++++++-- src/sent.h | 2 +- src/version.sh | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/pkg-psyc.h b/src/pkg-psyc.h index 36e6890..d905ef1 100644 --- a/src/pkg-psyc.h +++ b/src/pkg-psyc.h @@ -1,4 +1,5 @@ #ifdef USE_PSYC +# ifndef PKG_PSYC_H /* pkg-psyc takes and produces PSYC packets in form * of an array of mapping, mapping, string and string @@ -12,6 +13,9 @@ # include +# include "array.h" +# include "xalloc.h" + typedef struct { psycParseState *parser; vector_t *packet; @@ -24,11 +28,13 @@ psyc_free_parser (psycState *ps) { if (!ps) return; if (ps->tmp) - pxfree((void *) ps->tmp); + pfree((void *) ps->tmp); if (ps->parser) - pxfree((void *) ps->parser); + pfree((void *) ps->parser); if (ps->packet) free_array(ps->packet); } +# define PKG_PSYC_H +# endif #endif diff --git a/src/sent.h b/src/sent.h index 417e08e..8eb9507 100644 --- a/src/sent.h +++ b/src/sent.h @@ -44,7 +44,7 @@ #include "typedefs.h" #ifdef USE_PSYC -# include +# include "pkg-psyc.h" #endif enum sent_type_e { diff --git a/src/version.sh b/src/version.sh index ad19ddd..8944554 100644 --- a/src/version.sh +++ b/src/version.sh @@ -17,7 +17,7 @@ version_longtype="stable" # A timestamp, to be used by bumpversion and other scripts. # It can be used, for example, to 'touch' this file on every build, thus # forcing revision control systems to add it on every checkin automatically. -version_stamp="Fri May 6 22:13:45 CEST 2011" +version_stamp="Sun May 8 21:03:26 CEST 2011" # Okay, LDMUD is using 3.x.x so to avoid conflicts let's just use 4.x.x version_major=4