Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlab committed Oct 10, 2017
0 parents commit 4b4f567
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
var/
.DS_Store
9 changes: 9 additions & 0 deletions Makefile
@@ -0,0 +1,9 @@
all:
c-for-go mupdf.yml

clean:
rm -f mupdf/cgo_helpers.go mupdf/cgo_helpers.h mupdf/doc.go mupdf/types.go
rm -f mupdf/mupdf.go

test:
cd mupdf && go build
31 changes: 31 additions & 0 deletions mupdf.yml
@@ -0,0 +1,31 @@
---
GENERATOR:
PackageName: mupdf
PackageDescription: "Package mupdf provides Go bindings."
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
Includes: [mupdf/pdf.h, mupdf/fitz.h]

PARSER:
IncludePaths: [/usr/include]
SourcesPaths: [mupdf/mupdf.h, mupdf/fitz.h]

TRANSLATOR:
PtrTips:
function:
# - {target: ^mupdf_decode_frame, tips: [ref,0,0,ref]}
# - {target: ^mupdf_, tips: [ref]}
Rules:
global:
- {transform: lower}
- {action: accept, from: "(?i)fz_"}
- {action: replace, from: "fz_", to: _}
- {action: accept, from: "(?i)pdf_"}
- {action: replace, from: "pdf_", to: _}
- {transform: export}
type:
- {action: replace, from: "_t$"}
private:
- {transform: unexport}
post-global:
- {action: replace, from: _$}
- {load: snakecase}

0 comments on commit 4b4f567

Please sign in to comment.