mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
Merge pull request #52 from dgl/stack-cleanup
Correct use of perl stack macros
This commit is contained in:
commit
aaa0cb6e03
6 changed files with 8 additions and 12 deletions
|
|
@ -69,7 +69,6 @@ static void perl_source_destroy(PERL_SOURCE_REC *rec)
|
|||
static int perl_source_event(PERL_SOURCE_REC *rec)
|
||||
{
|
||||
dSP;
|
||||
int retcount;
|
||||
|
||||
ENTER;
|
||||
SAVETMPS;
|
||||
|
|
@ -79,8 +78,7 @@ static int perl_source_event(PERL_SOURCE_REC *rec)
|
|||
PUTBACK;
|
||||
|
||||
perl_source_ref(rec);
|
||||
retcount = perl_call_sv(rec->func, G_EVAL|G_SCALAR);
|
||||
SPAGAIN;
|
||||
perl_call_sv(rec->func, G_EVAL|G_DISCARD);
|
||||
|
||||
if (SvTRUE(ERRSV)) {
|
||||
char *error = g_strdup(SvPV_nolen(ERRSV));
|
||||
|
|
@ -91,7 +89,6 @@ static int perl_source_event(PERL_SOURCE_REC *rec)
|
|||
if (perl_source_unref(rec) && rec->once)
|
||||
perl_source_destroy(rec);
|
||||
|
||||
PUTBACK;
|
||||
FREETMPS;
|
||||
LEAVE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue