mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Irssi::signal_add_first() and .._last() allows hashes now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2334 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1af5f41812
commit
e4aa149c54
@ -50,24 +50,20 @@ CODE:
|
||||
perl_signal_add_hash(1, ST(0));
|
||||
|
||||
void
|
||||
signal_add_first(signal, func)
|
||||
char *signal
|
||||
SV *func
|
||||
signal_add_first(...)
|
||||
CODE:
|
||||
if (items != 1 && items != 2)
|
||||
croak("Usage: Irssi::signal_add(signal, func)");
|
||||
croak("Usage: Irssi::signal_add_first(signal, func)");
|
||||
if (items == 2)
|
||||
perl_signal_add_first((char *)SvPV(ST(0),PL_na), ST(1));
|
||||
else
|
||||
perl_signal_add_hash(0, ST(0));
|
||||
|
||||
void
|
||||
signal_add_last(signal, func)
|
||||
char *signal
|
||||
SV *func
|
||||
signal_add_last(...)
|
||||
CODE:
|
||||
if (items != 1 && items != 2)
|
||||
croak("Usage: Irssi::signal_add(signal, func)");
|
||||
croak("Usage: Irssi::signal_add_last(signal, func)");
|
||||
if (items == 2)
|
||||
perl_signal_add_last((char *)SvPV(ST(0),PL_na), ST(1));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user