GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ocaml-libgit2/Notes at master · fxfactorial/ocaml-libgit2

Expand file tree

/

Notes

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
34 lines (25 loc) · 979 Bytes
/

Notes

Copy path

File metadata and controls

34 lines (25 loc) · 979 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
The correct way to do this is to use menhir to read off the git source
code headers, create the tokens, then based off those tokens create an
AST then print that AST out, then compile that auto generated code.
Then that autogenerated code can be an ocaml package for usage on
ocamlfind and opam. Of course the library would need to have tests as
well, using ounit.
Note that getting an exception of:
Fatal error: exception Ctypes_static.IncompleteType
probably means that you forgot a ptr somewhere.
Another possible reason is IncompleteType, like
typedef struct {
char *ptr;
size_t asize, size;
} git_buf;
in which case you have to make an intermediatry struct with no tag
type git_buf
let git_buf =
let struc = structure "" in
let _ = field struc "ptr" (ptr char) in
let _ = field struc "asize" size_t in
let _ = field struc "size" size_t in
seal struc;
typedef
(struc : git_buf structure typ)
"git_buf"
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.