mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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:
parent
571f3acaf8
commit
ea03650b3f
6 changed files with 21 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue