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;
|
||||
|
||||
MODULE = Irssi PACKAGE = Irssi
|
||||
|
||||
PROTOTYPES: ENABLE
|
||||
|
|
@ -7,12 +9,16 @@ PROTOTYPES: ENABLE
|
|||
void
|
||||
init()
|
||||
CODE:
|
||||
if (initialized) return;
|
||||
perl_api_version_check("Irssi");
|
||||
initialized = TRUE;
|
||||
|
||||
perl_settings_init();
|
||||
|
||||
void
|
||||
deinit()
|
||||
CODE:
|
||||
if (!initialized) return;
|
||||
perl_settings_deinit();
|
||||
|
||||
BOOT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue