Define PERL_NO_GET_CONTEXT in all perl source files

This removes the calls to Perl_get_context() that get automatically
added to XS code for ancient source code compatibility reasons.

The result is about a ~60K size reduction in the binary (based on
comparing two 64-bit stripped irssi binaries compiled
--with-perl-staticlib).
This commit is contained in:
David Leadbeater 2014-06-24 20:20:27 +01:00
commit 43df6e424e
33 changed files with 33 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
MODULE = Irssi::Channel PACKAGE = Irssi

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
#include "irssi-version.h"
#include "core.h"

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
#include "expandos.h"

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
MODULE = Irssi::Ignore PACKAGE = Irssi

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
static int initialized = FALSE;

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
MODULE = Irssi::Log PACKAGE = Irssi

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
MODULE = Irssi::Masks PACKAGE = Irssi

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
MODULE = Irssi::Query PACKAGE = Irssi

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
MODULE = Irssi::Rawlog PACKAGE = Irssi

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
MODULE = Irssi::Server PACKAGE = Irssi

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
#include "misc.h"