caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Olivier Andrieu <andrieu@ijm.jussieu.fr>
To: "Yaron M. Minsky" <yminsky@CS.Cornell.EDU>
Cc: Michael Tucker <mtucker@eecs.harvard.edu>, caml-list@inria.fr
Subject: Re: [Caml-list] Opaque pointers with camlidl
Date: Thu, 18 Jul 2002 10:25:00 +0200	[thread overview]
Message-ID: <15670.31580.140719.514440@karryall.dnsalias.org> (raw)
In-Reply-To: <1026958782.11081.13.camel@dragonfly.localdomain>

 Yaron M. Minsky [ 17 July 2002] :
 > For what it's worth, I have written a small berkeley DB interface (for
 > version 3.3.11, the one found in RH 7.3), which I've attached to this
 > email. 

Hi, 

At the beginning, of your stub I noticed this :

static void finalize_caml_dbenv(value dbenv) { 
  CAMLparam1(dbenv);
  caml_dbenv_close_internal(dbenv); 
  CAMLreturn0;
}

I think it's not a good idea to use CAMLparam* in the finalisation
function. IIRC, the manual explicitly says not to.

-- 
	  Olivier
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2002-07-18  8:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-17 22:09 Michael Tucker
2002-07-17 23:29 ` Jacques Garrigue
2002-07-17 23:30   ` Alexander V.Voinov
2002-07-18  2:19 ` Yaron M. Minsky
2002-07-18  2:24   ` Michael Tucker
2002-07-18  8:25   ` Olivier Andrieu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15670.31580.140719.514440@karryall.dnsalias.org \
    --to=andrieu@ijm.jussieu.fr \
    --cc=caml-list@inria.fr \
    --cc=mtucker@eecs.harvard.edu \
    --cc=yminsky@CS.Cornell.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).