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 OAA03927; Fri, 6 Sep 2002 14:31:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA03228 for ; Fri, 6 Sep 2002 14:31:27 +0200 (MET DST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g86CVQ923057 for ; Fri, 6 Sep 2002 14:31:26 +0200 (MET DST) Received: from dalamar.takhisis.org (62.98.123.198) by smtp3.libero.it (6.5.028) id 3D5121BE0099FDE2 for caml-list@inria.fr; Fri, 6 Sep 2002 14:31:25 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (8.12.6/8.12.6/Debian-2) with ESMTP id g86CVKYQ003620 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Fri, 6 Sep 2002 14:31:22 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-2) with ESMTP id g86CVHQQ021025 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 6 Sep 2002 14:31:17 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-2) id g86CVHdI021023 for caml-list@inria.fr; Fri, 6 Sep 2002 14:31:17 +0200 Date: Fri, 6 Sep 2002 14:31:17 +0200 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: pa_ifdef [Was: Re: [Caml-list] autoconf and caml] Message-ID: <20020906123117.GC20833@cs.unibo.it> Mail-Followup-To: caml-list@inria.fr References: <20020905135720.D5343@pauillac.inria.fr> <20020905161617.A29272@kruuna.Helsinki.FI> <20020906104614.GE607@barcelona.lrde.epita.fr> <3D7889EA.8060406@cs.cornell.edu> <20020906130717.647bd532.maxence.guesdon@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020906130717.647bd532.maxence.guesdon@inria.fr> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Sep 06, 2002 at 01:07:17PM +0200, Maxence Guesdon wrote: > The pa_ifdef parser included with camlp4 may help you. > Daniel, could you explain how to use it ? Or is a doc written ? There is a bit (but enough to using it) of documentation about it in Section 1.1 of the camlp4 manual. BTW, last time I used it I was a bit annoyed because you can "ifdef" only on type declaration or single "let" bindings IIRC while if you are using such a tool you usually expect to be able to "ifdef" on a whole block of code in a C-like fashion. I don't know if such an extension to the pa_ifdef module is feasible with camlp4 ... Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney ------------------- 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