Permalink
Browse files

we will have Inline::C

  • Loading branch information...
1 parent d27302d commit 77ab562c4117722354edc8df4e13d81b73ccbf49 @FROGGS FROGGS committed Sep 18, 2012
Showing with 0 additions and 30 deletions.
  1. +0 −11 lib/SDL/CompileTestLib.pm
  2. +0 −19 lib/SDL/memcopy.c
View
@@ -1,11 +0,0 @@
-module SDL::CompileTestLib;
-
-sub compile_test_lib( $name ) is export {
- my $o = $*VM<config><o>;
- my $so = $*VM<config><load_ext>;
- my $c_line = "$*VM<config><cc> -c $*VM<config><cc_shared> $*VM<config><cc_o_out>$name$o $*VM<config><ccflags> $name.c";
- my $l_line = "$*VM<config><ld> $*VM<config><ld_load_flags> $*VM<config><ldflags> " ~
- "$*VM<config><libs> $*VM<config><ld_out>$name$so $name$o";
- shell($c_line);
- shell($l_line);
-}
View
@@ -1,19 +0,0 @@
-#include <string.h>
-
-#ifdef WIN32
-#define DLLEXPORT __declspec(dllexport)
-#else
-#define DLLEXPORT extern
-#endif
-
-DLLEXPORT void *GetBuf( const void *from, void *to, size_t len )
-{
- return memcpy( to, from, len );
-}
-
-DLLEXPORT void *GetPointer( size_t len )
-{
- return (void *)len;
-}
-
-

0 comments on commit 77ab562

Please sign in to comment.