From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA32446; Fri, 20 Feb 2004 20:26:10 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 UAA00272 for ; Fri, 20 Feb 2004 20:26:08 +0100 (MET) Received: from junkmail.cs.umd.edu (junkmail.cs.umd.edu [128.8.128.69]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1KJQ7ae032092 for ; Fri, 20 Feb 2004 20:26:07 +0100 Received: from wonka.cs.umd.edu (wonka.cs.umd.edu [128.8.128.198]) by junkmail.cs.umd.edu (8.12.10/8.12.5) with ESMTP id i1KJQ6nB004198 for ; Fri, 20 Feb 2004 14:26:06 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by wonka.cs.umd.edu (8.12.10/8.12.5) with ESMTP id i1KJQ5wJ020811 for ; Fri, 20 Feb 2004 14:26:06 -0500 (EST) Date: Fri, 20 Feb 2004 14:26:05 -0500 (EST) From: Michael Furr To: Subject: [Caml-list] void/unit in C calls Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; foo:01 foo:01 -mike:01 external:03 unit:03 unit:03 parameter:04 prototype:04 somewhat:06 type:07 problem:07 michael:08 function:09 void:11 void:11 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I realize this is somewhat of a pedantic question but, what is the proper prototype for a C function which has a parameter of type unit? ie: external foo : unit -> unit = "foo_c" should foo_c be declared void foo_c(void); or value foo_c(value); Would it ever cause a problem on any architecture if one used the wrong form? thanks, -Mike ------------------- 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