Use xshelper.h in all the C files

This commit is contained in:
gfx
2010-09-15 12:31:01 +09:00
parent 1242ffa4c6
commit 987248ccbb
5 changed files with 1 additions and 109 deletions

View File

@@ -1,14 +1,4 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#define NEED_newCONSTSUB
#include "ppport.h"
#ifdef __cplusplus
};
#endif
#include "xshelper.h"
XS(xs_pack);
XS(xs_unpack);
@@ -24,13 +14,11 @@ void boot_Data__MessagePack_pack(void);
XS(boot_Data__MessagePack) {
dXSARGS;
HV * stash;
boot_Data__MessagePack_pack();
newXS("Data::MessagePack::pack", xs_pack, __FILE__);
newXS("Data::MessagePack::unpack", xs_unpack, __FILE__);
stash = gv_stashpvn("Data::MessagePack", strlen("Data::MessagePack"), TRUE);
newXS("Data::MessagePack::Unpacker::new", xs_unpacker_new, __FILE__);
newXS("Data::MessagePack::Unpacker::execute", xs_unpacker_execute, __FILE__);

View File

@@ -1,15 +1,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#define NEED_newRV_noinc
#define NEED_sv_2pv_flags
#include "xshelper.h"
#ifdef __cplusplus
};
#endif
typedef struct {
int finished;
SV* source;