Skip to content

Commit

Permalink
Improve error reporting about unknown NCI datatypes and add a few more
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Jul 6, 2011
1 parent 52f58d5 commit 03a5234
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

nci:
echo '# THIS FILE IS GENERATED, edit ./bin/header2nci.pl to make changes here' > 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
2 changes: 1 addition & 1 deletion bin/header2nci.pl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sub process_gmph {

#use Data::Dumper; warn Dumper [ $functions{$convenient_name} ];
} else {
warn "Line does not match function definition: $_";
warn "Line $. in $filename does not match function definition: $_";
}
}

Expand Down
2 changes: 2 additions & 0 deletions conf/c_to_nci_mappings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ char: p
# 'p' types
# since 't' is deprecated
char *: p
const void *: p
const char *: p
const char *git_dir: p
const char *git_index_file: p
Expand Down Expand Up @@ -45,6 +46,7 @@ git_index_entry *: p
const git_index_entry_unmerged *: p
const git_tree_entry *: p
const git_oid *: p
const char objects_dir*: p
git_signature *: p
git_time_t: p
git_odb_backend: p
Expand Down
4 changes: 2 additions & 2 deletions src/git2.nci
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# THIS FILE IS GENERATED, edit ./bin/header2nci.pl to make changes here
v git_blob_rawcontent p # git_blob_rawcontent
p git_blob_rawcontent p # git_blob_rawcontent
i git_blob_create_fromfile p # git_blob_create_fromfile
i git_blob_create_frombuffer p # git_blob_create_frombuffer
i git_blob_rawsize p # git_blob_rawsize
Expand Down Expand Up @@ -62,7 +62,7 @@ v git_object_close p # git_object_close
p git_object_type v # git_object_type
p git_object_id v # git_object_id
i git_odb_exists p # git_odb_exists
v git_odb_object_data p # git_odb_object_data
p git_odb_object_data p # git_odb_object_data
i git_odb_read_prefix p # git_odb_read_prefix
i git_odb_read p # git_odb_read
i git_odb_object_size p # git_odb_object_size
Expand Down

0 comments on commit 03a5234

Please sign in to comment.