Updated perl API version. Fixed irssi to behave better if the API doesn't

match (doesn't crash).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1985 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-11 22:39:56 +00:00 committed by cras
commit ea03650b3f
6 changed files with 21 additions and 15 deletions

View file

@ -1,5 +1,7 @@
#include "module.h"
static int initialized = FALSE;
static void perl_process_fill_hash(HV *hv, PROCESS_REC *process)
{
hv_store(hv, "id", 2, newSViv(process->id), 0);
@ -70,8 +72,6 @@ PROTOTYPES: ENABLE
void
init()
PREINIT:
static int initialized = FALSE;
CODE:
if (initialized) return;
perl_api_version_check("Irssi::UI");
@ -83,6 +83,7 @@ CODE:
void
deinit()
CODE:
if (!initialized) return;
perl_themes_deinit();
BOOT: