mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Irssi::timeout_add(), timeout_add_once() and input_add() were buggy.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2992 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
14f3c0c2e5
commit
902280eca7
@ -196,7 +196,7 @@ CODE:
|
||||
croak("Irssi::timeout() : msecs must be >= 10");
|
||||
RETVAL = -1;
|
||||
} else {
|
||||
RETVAL = perl_timeout_add(msecs, func, data);
|
||||
RETVAL = perl_timeout_add(msecs, func, data, FALSE);
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
@ -211,7 +211,7 @@ CODE:
|
||||
croak("Irssi::timeout_once() : msecs must be >= 10");
|
||||
RETVAL = -1;
|
||||
} else {
|
||||
RETVAL = perl_timeout_add(msecs, func, data);
|
||||
RETVAL = perl_timeout_add(msecs, func, data, TRUE);
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
@ -244,7 +244,7 @@ input_add(source, condition, func, data)
|
||||
SV *func
|
||||
SV *data
|
||||
CODE:
|
||||
RETVAL = perl_input_add(source, condition, func, data);
|
||||
RETVAL = perl_input_add(source, condition, func, data, FALSE);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "perl-core.h"
|
||||
#include "perl-common.h"
|
||||
#include "perl-sources.h"
|
||||
|
||||
typedef struct {
|
||||
PERL_SCRIPT_REC *script;
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef __PERL_SOURCES_H
|
||||
#define __PERL_SOURCES_H
|
||||
|
||||
int perl_timeout_add(int msecs, SV *func, SV *data);
|
||||
int perl_input_add(int source, int condition, SV *func, SV *data);
|
||||
int perl_timeout_add(int msecs, SV *func, SV *data, int once);
|
||||
int perl_input_add(int source, int condition, SV *func, SV *data, int once);
|
||||
|
||||
void perl_source_remove(int tag);
|
||||
/* remove all sources used by script */
|
||||
|
Loading…
Reference in New Issue
Block a user