From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id DA4C2BC84 for ; Mon, 28 Mar 2005 07:07:20 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2S57Km3012414 for ; Mon, 28 Mar 2005 07:07:20 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA18640 for ; Mon, 28 Mar 2005 07:07:19 +0200 (MET DST) Received: from smtp816.mail.sc5.yahoo.com (smtp816.mail.sc5.yahoo.com [66.163.170.2]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j2S57IWV012648 for ; Mon, 28 Mar 2005 07:07:19 +0200 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@63.194.18.166 with plain) by smtp816.mail.sc5.yahoo.com with SMTP; 28 Mar 2005 05:07:17 -0000 Message-ID: <4247910B.9050702@rftp.com> Date: Sun, 27 Mar 2005 21:07:23 -0800 From: Robert Roessler Organization: Robert's High-performance Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?S=E9bastien_Hinderer?= Cc: Caml-list Subject: Re: [Caml-list] Should one use caml_ prefix in C code ? References: <20050328044327.GA2437@galois> In-Reply-To: <20050328044327.GA2437@galois> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce with ID 42479108.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42479106.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 defines:01 stubs:01 conflicts:01 naming:01 globals:01 ...:98 stub:01 wrote:01 functions:01 macros:01 caml:02 caml:02 linking:03 string:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Sébastien Hinderer wrote: > Among Caml header files is one called compatibility.h. > This file defines macros allowing one to use, say, copy_string rather > than caml_copy_string when writing stub functions. > But what is the recommended style for writing stubs ? > Should the caml_ prefix be used, or not ? > The documentation does not seem to mention anything about that. The "caml_" prefix was added in 3.08.0 to avoid name conflicts when linking with other libraries. I believe the relevant entries in compatibility.h are there so the Caml developers were not forced to edit all of the sources... but you should use the new "official" naming in code you write that needs to reference the affected C globals. :) Robert Roessler roessler@rftp.com http://www.rftp.com