mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 00:52:30 +02:00
Correct use of perl stack macros
Further to pull #49 this is the result of an audit of the use of perl stack macros. There were several cases where PUTBACK was being called where the stack pointer could be out-of-date. Also some misc. cleanup where the macros were used needlessly.
This commit is contained in:
parent
9d0d4d9437
commit
c5d81c598d
6 changed files with 8 additions and 12 deletions
|
|
@ -248,9 +248,9 @@ void irssi_callXS(void (*subaddr)(pTHX_ CV* cv), CV *cv, SV **mark)
|
|||
dSP;
|
||||
|
||||
PUSHMARK(mark);
|
||||
(*subaddr)(aTHX_ cv);
|
||||
|
||||
PUTBACK;
|
||||
|
||||
(*subaddr)(aTHX_ cv);
|
||||
}
|
||||
|
||||
void perl_chatnet_fill_hash(HV *hv, CHATNET_REC *chatnet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue