Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Stub between Ocaml and C : camlidl or swig
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-06-18 (15:40)
From: Sven LUTHER <luther@m...>
Subject: Re: Stub between Ocaml and C : camlidl or swig
On Thu, Jun 17, 1999 at 11:39:22AM +0200, Patrick Goldbronn - SYSCO wrote:
> Hi,
> I'd like to know if someone has worked on automatically generation of
> stub file between ocaml and C code.
> I don't want something like camlidl (which is to strict for my purpose),
> but something more simple and pliant (as swig :
> My goal is very specific so I'm interested even if the work is specific
> to !!
> I ask this before to write my own generator (if someone has already made
> the same)

I have the begining of a C header parser that i intent to use to generate the mlgtk
stubs. It is entirely written in caml, and is under the GPL, if you are
interrested, tell me. Up to now, it parses the headers and put them in a big
list. My plan was to generate the bindings with this lists. I have some ideas on
how to do it automatically for most C constructs, other could cause problems. If
you are interrested, i can do a website for it, separate from mlgtk, or also send
it to you.