Skip to content

Commit

Permalink
use xshelper.h
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Jan 15, 2011
1 parent d4e2910 commit bb9bb09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -21,3 +21,5 @@ cover_db*
*.gno
*.gcov
*.c
xshelper.h

10 changes: 1 addition & 9 deletions Data-Clone.xs
@@ -1,21 +1,13 @@
#define PERL_NO_GET_CONTEXT
#define NO_XSLOCKS /* for exceptions */
#include <EXTERN.h>
#include <perl.h>
#include <XSUB.h>

#include "ppport.h"
#include "xshelper.h"

#include "data_clone.h"

#ifndef SvRXOK
#define SvRXOK(sv) (SvROK(sv) && SvMAGICAL(SvRV(sv)) && mg_find(SvRV(sv), PERL_MAGIC_qr))
#endif

#ifndef get_cvs
#define get_cvs(s, flags) get_cv((s), (flags))
#endif

#define REINTERPRET_CAST(T, value) ((T)value)

#define PTR2STR(ptr) REINTERPRET_CAST(const char*, (&ptr))
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Expand Up @@ -9,7 +9,7 @@ BEGIN{

all_from 'lib/Data/Clone.pm';

use_ppport 3.19;
use_xshelper;
cc_warnings;

requires 'parent';
Expand Down

0 comments on commit bb9bb09

Please sign in to comment.