diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-11 22:39:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-11 22:39:56 +0000 |
commit | ea03650b3f495d39d46f288ce3ddd4142ff34a77 (patch) | |
tree | bba0d371f2a1d8562ad00a621652ff2d85de64c6 /src/perl/ui | |
parent | 571f3acaf8ffe4fa86679f210473d6b91019fb1f (diff) | |
download | irssi-ea03650b3f495d39d46f288ce3ddd4142ff34a77.zip |
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
Diffstat (limited to 'src/perl/ui')
-rw-r--r-- | src/perl/ui/UI.xs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/perl/ui/UI.xs b/src/perl/ui/UI.xs index 0f7a39ac..1af7f96f 100644 --- a/src/perl/ui/UI.xs +++ b/src/perl/ui/UI.xs @@ -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: |