mirror of
git://git.psyced.org/git/psyclpc
synced 2024-08-15 03:20:16 +00:00
+
This commit is contained in:
parent
890adcca2b
commit
c9bc7364fa
3 changed files with 10 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
#ifdef USE_PSYC
|
#ifdef USE_PSYC
|
||||||
|
# ifndef PKG_PSYC_H
|
||||||
|
|
||||||
/* pkg-psyc takes and produces PSYC packets in form
|
/* pkg-psyc takes and produces PSYC packets in form
|
||||||
* of an array of mapping, mapping, string and string
|
* of an array of mapping, mapping, string and string
|
||||||
|
@ -12,6 +13,9 @@
|
||||||
|
|
||||||
# include <psyc/parser.h>
|
# include <psyc/parser.h>
|
||||||
|
|
||||||
|
# include "array.h"
|
||||||
|
# include "xalloc.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
psycParseState *parser;
|
psycParseState *parser;
|
||||||
vector_t *packet;
|
vector_t *packet;
|
||||||
|
@ -24,11 +28,13 @@ psyc_free_parser (psycState *ps) {
|
||||||
if (!ps)
|
if (!ps)
|
||||||
return;
|
return;
|
||||||
if (ps->tmp)
|
if (ps->tmp)
|
||||||
pxfree((void *) ps->tmp);
|
pfree((void *) ps->tmp);
|
||||||
if (ps->parser)
|
if (ps->parser)
|
||||||
pxfree((void *) ps->parser);
|
pfree((void *) ps->parser);
|
||||||
if (ps->packet)
|
if (ps->packet)
|
||||||
free_array(ps->packet);
|
free_array(ps->packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# define PKG_PSYC_H
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
|
|
||||||
#ifdef USE_PSYC
|
#ifdef USE_PSYC
|
||||||
# include <psyc/parser.h>
|
# include "pkg-psyc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum sent_type_e {
|
enum sent_type_e {
|
||||||
|
|
|
@ -17,7 +17,7 @@ version_longtype="stable"
|
||||||
# A timestamp, to be used by bumpversion and other scripts.
|
# A timestamp, to be used by bumpversion and other scripts.
|
||||||
# It can be used, for example, to 'touch' this file on every build, thus
|
# 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.
|
# 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
|
# Okay, LDMUD is using 3.x.x so to avoid conflicts let's just use 4.x.x
|
||||||
version_major=4
|
version_major=4
|
||||||
|
|
Loading…
Reference in a new issue