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
Some extensions to Camlidl-1.00
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-03-29 (18:03)
From: Jocelyn Serot <Jocelyn.Serot@l...>
Subject: Some extensions to Camlidl-1.00

I just developed a set of extensions for the Camlidl stub code generator
recently released by X. Leroy. 
As they may prove useful to other users, trigger some interesting
comments (or event find their way to the next release) i'm very happy to
make them them available from my Web page:

In short, the proposed extensions consists in
o a new pointer kind for handling finalized opaque pointers
o a (limited) mechanism for handling variable argument lists.

The va list handling mechanism is very experimental and probably not so useful
to general programming (though it was for me !..).
The first one, on the contrary, is often needed when dealing with "opaque"
pointers, i.e. pointers to abstract data allocated in the C heap and
that must be free'd by the Caml GC.
This situation naturally occurs when the return value for a given C function
must be allocated by the generated stub code and is not handled properly the
release 1.00, 

More info can be found in the distribution in the file doc/extensions.txt.

Because i'm not so familiar with the diff/patch utilities, the extensions are
distributed in the form of a gziped tar file containing a modified version
of the original camlidl-1.00 distribution.

All reports about about success, failures, improvements, bugs, and wishes
are of course welcome !

J. Serot
E-mail: .............................
S-mail: LASMEA - UMR 6602 CNRS, Universite Blaise Pascal, 63177 Aubiere cedex
Tel: (33) 04 - Fax: (33) 04 .........................