From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 2EE797ED34 for ; Tue, 10 Jul 2012 14:39:47 +0200 (CEST) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of s.dash@herts.ac.uk) identity=pra; client-ip=147.197.215.112; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="s.dash@herts.ac.uk"; x-sender="s.dash@herts.ac.uk"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of s.dash@herts.ac.uk designates 147.197.215.112 as permitted sender) identity=mailfrom; client-ip=147.197.215.112; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="s.dash@herts.ac.uk"; x-sender="s.dash@herts.ac.uk"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of postmaster@corvus.herts.ac.uk designates 147.197.215.112 as permitted sender) identity=helo; client-ip=147.197.215.112; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="s.dash@herts.ac.uk"; x-sender="postmaster@corvus.herts.ac.uk"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsQBAFkh/E+TxddwmWdsb2JhbABFt34iAQEBAQEICwsHFCeCIAEBBAEMbQULAgEIRjIlAQEEDgWIBwazcokEi0CFQmADiBaNIIEShESNDw X-IronPort-AV: E=Sophos;i="4.77,559,1336341600"; d="scan'208";a="166281060" Received: from corvus.herts.ac.uk ([147.197.215.112]) by mail1-smtp-roc.national.inria.fr with ESMTP; 10 Jul 2012 14:39:46 +0200 Received: from [147.197.247.222] (helo=dh-mail1.herts.ac.uk) by corvus.herts.ac.uk with esmtp (Exim 4.40) id 1SoZjD-0000hB-Mq; Tue, 10 Jul 2012 13:39:43 +0100 Received: from UH-MAILSTOR.herts.ac.uk ([147.197.247.207]) by dh-mail1.herts.ac.uk ([147.197.247.221]) with mapi; Tue, 10 Jul 2012 13:40:05 +0100 From: "Dash, Santanu" To: =?iso-8859-1?Q?J=E9r=E9mie_Dimino?= CC: "caml-list@inria.fr" Date: Tue, 10 Jul 2012 13:39:40 +0100 Thread-Topic: [Caml-list] file specific outputting Thread-Index: Ac1emSE16jVjgM9aTWe+yuKmJsc1Tg== Message-ID: <1507E81B-3251-4D43-9D87-AB9369A98606@herts.ac.uk> References: <20120710141644.7eec1b5a@caladan.esterel-technologies.com> In-Reply-To: <20120710141644.7eec1b5a@caladan.esterel-technologies.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-C-UH-MailScanner-Information: Please contact the administrator for more information X-C-UH-MailScanner: No Virus detected X-C-UH-MailScanner-From: s.dash@herts.ac.uk X-Validation-by: s.dash@herts.ac.uk Subject: Re: [Caml-list] file specific outputting Thank you J=E9r=E9mie and Gabriel for the quick response. That answers my q= uestion perfectly. Best regards, Santanu On 10 Jul 2012, at 13:16, J=E9r=E9mie Dimino wrote: > Le Tue, 10 Jul 2012 11:50:24 +0100, > "Dash, Santanu" a =E9crit : >=20 >> Can someone direct me on the best way to go about this? Is there a >> variable in the compiler that stores the filename of the file >> currently being compiled? >=20 > There is Location.input_name. It is set by the compiler before parsing > a source file (file "driver/pparse.ml", function "file"). Note that if > there are multiple source files on the command line it will be > modified for each one of them. >=20 > --=20 > J=E9r=E9mie