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"
static int magic_free_text_dest(pTHX_ SV *sv, MAGIC *mg)

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
static void printformat_perl(TEXT_DEST_REC *dest, char *format, char **arglist)

View file

@ -1,3 +1,4 @@
#define PERL_NO_GET_CONTEXT
#include "module.h"
void perl_themes_init(void);

View file

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