# HG changeset patch # User Jan Vrany # Date 1346843591 0 # Node ID 9718bd0f10288fb1bf3de9469549b4cbb704ee73 # Parent e7afa531abcf836c8ad465a12eb5e4047dce1c2d Style & Makefile fixes for libgit2 diff -r e7afa531abcf -r 9718bd0f1028 resources/examples/libgit2/Makefile --- a/resources/examples/libgit2/Makefile Wed Sep 05 11:12:41 2012 +0000 +++ b/resources/examples/libgit2/Makefile Wed Sep 05 11:13:11 2012 +0000 @@ -2,7 +2,7 @@ XSLTPROC=xsltproc -XML2DEF_XSL=../../styles/gccxml2def.xsl +XML2DEF_XSL=styles/gccxml2def.xsl @@ -25,12 +25,15 @@ libgit2.def: $(LIBGIT2_DEFFILES) cat $(LIBGIT2_DEFFILES) > libgit2.def sed -i -e 's/^(struct-foreign git_/(struct git_/g' libgit2.def + sed -i -e 's/^(struct-foreign _git_oid/(struct _git_oid/g' libgit2.def + sed -i -e 's/^(typedef-foreign git_/(typedef git_/g' libgit2.def + %.h.def:%.h.xml $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $(XML2DEF_XSL) $< %.h.xml: $(LIBGIT2_INCLUDE_DIR)/%.h - $(GCC_XML) -m32 -I$(LIBGIT2_INCLUDE_DIRp) $< -fxml=$@ + $(GCC_XML) -m32 -I$(LIBGIT2_INCLUDE_DIR) $< -fxml=$@ clean: rm -rf *.h.xml *.h.def diff -r e7afa531abcf -r 9718bd0f1028 resources/examples/libgit2/styles/gccxml2def-function.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resources/examples/libgit2/styles/gccxml2def-function.xsl Wed Sep 05 11:13:11 2012 +0000 @@ -0,0 +1,51 @@ + + + + + + (function + + ) + + + + + + ( + + + + + + ) (return + + + + ) + + + + + (argument ( + + + + ) + + + + arg_ + + + + + arg + + + + ) + + + \ No newline at end of file diff -r e7afa531abcf -r 9718bd0f1028 resources/examples/libgit2/styles/gccxml2def-utils.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resources/examples/libgit2/styles/gccxml2def-utils.xsl Wed Sep 05 11:13:11 2012 +0000 @@ -0,0 +1,296 @@ + + + + + + + + + + (pointer-to + + + + + + + + + + + + + + + + + + + ) + + + + const + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + (function-type + + ( + + + (argument ( + + + + ) + + ) + + ) (return + + + + )) + + + + + + + + + + + + + + + + + + + (array ( + + + + ) + + ) + + + + + + + + + + + + + + + + #Error: --c-type-string-- Unknown C type with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #Error: --tokenizer-- Nothing happend for string + + + + + + + + + + + + + + + + + + + + + #Error: find-field: Field with id + + not found! + + + + + + + + + + + + + (field ( + + + + + + + + + + + + + + + + + + + + + + + + + ) + + + + unknown + + + + + :offset + + + ) + + + + + #Error: find-field: Unknown error for id + + + + + + + + + + + + + + + + + + + + + + diff -r e7afa531abcf -r 9718bd0f1028 resources/examples/libgit2/styles/gccxml2def.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resources/examples/libgit2/styles/gccxml2def.xsl Wed Sep 05 11:13:11 2012 +0000 @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + #Generated from: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + struct + + -foreign + + + + :size + + + + + + 0 + + + + + + ) + + + + + + + + + + ( + enum + + -foreign + + + + + + (value ( + + ) + + ) + + + ) + + + + + + ( + union + + -foreign + + + + :size + + + + + + 0 + + + + + + + + + + + ) + + + + + + + + + + + + + + + (typedef + + -foreign + + + + + + + + + + ) + + + + + + + + + + + + + + + + + + + + #Error: No template for element + + + + +