mirror of
git://git.psyced.org/git/psyclpc
synced 2024-08-15 03:20:16 +00:00
nice, nice.. unfortunately both this and the version before crash for me
This commit is contained in:
parent
1d35e854e3
commit
3661e1db2e
2 changed files with 8 additions and 3 deletions
|
@ -200,6 +200,8 @@ f_psyc_render(svalue_t *sp) {
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
// void psyc_parse(int* | string);
|
// void psyc_parse(int* | string);
|
||||||
|
|
||||||
|
static string_t *psyc_dispatch_callback = NULL;
|
||||||
|
|
||||||
svalue_t *
|
svalue_t *
|
||||||
f_psyc_parse (svalue_t *sp) {
|
f_psyc_parse (svalue_t *sp) {
|
||||||
char *buffer = NULL;
|
char *buffer = NULL;
|
||||||
|
@ -211,7 +213,9 @@ f_psyc_parse (svalue_t *sp) {
|
||||||
psycParseListState listState;
|
psycParseListState listState;
|
||||||
int ret, retl;
|
int ret, retl;
|
||||||
size_t size, i;
|
size_t size, i;
|
||||||
string_t *callback = mstring_new_string("psyc_dispatch");
|
|
||||||
|
if (!psyc_dispatch_callback)
|
||||||
|
psyc_dispatch_callback = new_tabled("psyc_dispatch");
|
||||||
|
|
||||||
assert_shadow_sent(current_object);
|
assert_shadow_sent(current_object);
|
||||||
psyc_state_t *state = O_GET_PSYC_STATE(current_object);
|
psyc_state_t *state = O_GET_PSYC_STATE(current_object);
|
||||||
|
@ -370,7 +374,7 @@ f_psyc_parse (svalue_t *sp) {
|
||||||
|
|
||||||
case PSYC_PARSE_COMPLETE:
|
case PSYC_PARSE_COMPLETE:
|
||||||
put_array(inter_sp, v);
|
put_array(inter_sp, v);
|
||||||
sapply(callback, current_object, 1);
|
sapply(psyc_dispatch_callback, current_object, 1);
|
||||||
state->packet = NULL;
|
state->packet = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -443,6 +447,7 @@ f_psyc_parse (svalue_t *sp) {
|
||||||
if (buffer)
|
if (buffer)
|
||||||
pfree(buffer);
|
pfree(buffer);
|
||||||
|
|
||||||
|
free_svalue(sp); // f_remove_interactive does it the same way...
|
||||||
return --sp;
|
return --sp;
|
||||||
} /* f_psyc_parse */
|
} /* f_psyc_parse */
|
||||||
|
|
||||||
|
|
|
@ -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="Thu May 19 21:24:11 CEST 2011"
|
version_stamp="Fri May 20 02:30:43 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