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_main_window_fill_hash(HV *hv, MAIN_WINDOW_REC *window)
{
hv_store(hv, "active", 6, plain_bless(window->active, "Irssi::UI::Window"), 0);
@ -87,8 +89,6 @@ PROTOTYPES: ENABLE
void
init()
PREINIT:
static int initialized = FALSE;
CODE:
if (initialized) return;
perl_api_version_check("Irssi::TextUI");
@ -100,6 +100,7 @@ CODE:
void
deinit()
CODE:
if (!initialized) return;
perl_statusbar_deinit();
MODULE = Irssi::TextUI PACKAGE = Irssi