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_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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue