mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02:00
rest of the ~rewrite?
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@172 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c95034c6de
commit
d29ca0b107
32 changed files with 2049 additions and 1536 deletions
41
src/perl/xsinit.c
Normal file
41
src/perl/xsinit.c
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#if defined(__cplusplus) && !defined(PERL_OBJECT)
|
||||
#define is_cplusplus
|
||||
#endif
|
||||
|
||||
#ifdef is_cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <EXTERN.h>
|
||||
#include <perl.h>
|
||||
#ifdef PERL_OBJECT
|
||||
#define NO_XSLOCKS
|
||||
#include <XSUB.h>
|
||||
#include "win32iop.h"
|
||||
#include <fcntl.h>
|
||||
#include <perlhost.h>
|
||||
#endif
|
||||
#ifdef is_cplusplus
|
||||
}
|
||||
# ifndef EXTERN_C
|
||||
# define EXTERN_C extern "C"
|
||||
# endif
|
||||
#else
|
||||
# ifndef EXTERN_C
|
||||
# define EXTERN_C extern
|
||||
# endif
|
||||
#endif
|
||||
|
||||
EXTERN_C void xs_init _((void));
|
||||
|
||||
EXTERN_C void boot_DynaLoader _((CV* cv));
|
||||
|
||||
EXTERN_C void
|
||||
xs_init(void)
|
||||
{
|
||||
char *file = __FILE__;
|
||||
dXSUB_SYS;
|
||||
|
||||
/* DynaLoader is a special case */
|
||||
newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue