Permalink
Browse files

Trade a 'null pmc access' error for a coredump (Movin' on up... to th…

…e east side...)
  • Loading branch information...
leto committed Oct 29, 2011
1 parent 8ae4454 commit 6ebe5c4aa5bf102c9948206c30036c7c8c0318eb
Showing with 5 additions and 25 deletions.
  1. +1 −1 Makefile
  2. +1 −21 bin/conf/c_to_nci_mappings.yml
  3. +0 −3 bin/header2nci.pl
  4. +3 −0 t/winxed/001_load.t
View
@@ -15,7 +15,7 @@ pbclib: src/Git2/Common.winxed src/Git2/Repository.winxed src/git2.pir
nci:
echo '# THIS FILE IS GENERATED, edit ./bin/header2nci.pl to make changes here' > src/git2.nci ; \
- echo "[package]\nGit\n\n[lib]\n\nlibgit2.so\n\n[defs]\n" >> src/git2.nci ; \
+ echo "[package]\nGit2::Raw\n\n[lib]\n\nlibgit2.so\n\n[defs]\n" >> src/git2.nci ; \
perl ./bin/header2nci.pl /usr/local/include/git2.h >> src/git2.nci ; \
for i in /usr/local/include/git2/*; do perl ./bin/header2nci.pl $$i >> src/git2.nci ; done
@@ -13,27 +13,7 @@ double: d
# 'p' types
# since 't' is deprecated
char *: p
-# custom types
-mpz_t: p
-mpz_ptr: p
-mpz_srcptr: p
signed long int *: p
-gmp_randstate_t: p
-__gmp_randstate_struct *: p
-# FIXME: both mp_size_t and mp_exp_t are ints if _CRAY and _CRAYMPP are
-# not defined. This should be the normal case, but in the future we should
-# have a way to determine this - perhaps a small C program that compiles
-# and outputs the system values like Parrot's Configure steps
-mp_size_t: i
-mp_exp_t: i
-
-# FIXME: size_t is platform dependent, not sure it will always fit
-# inside an 'i' type
+# FIXME: size_t is platform dependent
size_t: i
-
-# FIXME: mp_limb_t is dependent on __GMP_SHORT_LIMB and _LONG_LONG_LIMB
-mp_limb_t: i
-
-mp_bitcnt_t: l
-
View
@@ -32,8 +32,6 @@ sub process_gmph {
while(<$header>) {
chomp;
next unless m/^GIT_EXTERN/;
- # note: in the future, we will look for more functions
- # and not just mpz types
my $prefix = '(?:_?GIT)';
# does the line match a C-style declare?
if ($_ =~ m/^($prefix\S+\((.*?)\))\s+(\S+)\(((\S+)(\);;?)?)?/) {
@@ -55,7 +53,6 @@ sub process_gmph {
my $method_signature = $definition;
$method_signature =~ s/\);;?$//;
-
# skip if it's on our blacklist
next if any { $convenient_name eq $_ } @blacklist;
$functions{$convenient_name}{'internal_name'} = $internal_name;
View
@@ -37,6 +37,7 @@ class Test_git2_repository_open {
function open_repo() {
using Git2.Repository;
+ using Git2.Raw.git_repository_open;
using cstring;
var repo = new Git2.Repository;
@@ -49,6 +50,8 @@ class Test_git2_repository_open {
function repository_index() {
using Git2.Repository;
using Git2.Index;
+ using Git2.Raw.git_repository_open;
+ using Git2.Raw.git_repository_index;
using cstring;
var repo = new Git2.Repository;

0 comments on commit 6ebe5c4

Please sign in to comment.