Merge pull request #393 from ailin-nemui/moduleversion-perl

forward ABI to perl modules
This commit is contained in:
ailin-nemui 2016-01-11 21:19:35 +01:00
commit 62cab9d662
11 changed files with 59 additions and 2 deletions

View file

@ -17,4 +17,4 @@ extern PerlInterpreter *my_perl; /* must be called my_perl or some perl implemen
/* Change this every time when some API changes between irssi's perl module
(or irssi itself) and irssi's perl libraries. */
#define IRSSI_PERL_API_VERSION 20011214
#define IRSSI_PERL_API_VERSION (20011214 + IRSSI_ABI_VERSION)

View file

@ -479,3 +479,8 @@ void perl_core_deinit(void)
signal_remove("script error", (SIGNAL_FUNC) sig_script_error);
PERL_SYS_TERM();
}
void perl_core_abicheck(int *version)
{
*version = IRSSI_ABI_VERSION;
}

View file

@ -278,3 +278,8 @@ void fe_perl_deinit(void)
perl_core_print_script_error(TRUE);
}
void fe_perl_abicheck(int *version)
{
*version = IRSSI_ABI_VERSION;
}