From P.Dalgaard at biostat.ku.dk  Tue Feb  6 12:41:10 2007
From: P.Dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Tue, 06 Feb 2007 12:41:10 +0100
Subject: [Rd] Metapost device driver
In-Reply-To: <93c3eada0702052038x56da710ale94d6653fbda87f0@mail.gmail.com>
References: <93c3eada0702051553x5375d70br8d9f8ca73199d2c6@mail.gmail.com>
	<93c3eada0702052038x56da710ale94d6653fbda87f0@mail.gmail.com>
Message-ID: <45C86956.2010006@biostat.ku.dk>

Geoff Russell wrote:
> Hi All,
>
> I've started work on a MetaPost device driver (please don't hold your
> breath) and have one question about a magic number, see below.
>
> I've copied the XFig driver and renamed everything and this works, I can
> open the new metapost() and it works exactly like the xfig
> driver. Now all I have to do is the actual work!
>
> There is a magic number in ExtEntries as follows:
>
>      static const R_ExternalMethodDef ExtEntries[] = {
>            EXTDEF(PicTeX, 6),
>            EXTDEF(PostScript, 16),        EXTDEF(XFig, 11),
>            EXTDEF(MetaPost, 12),    /* Is 12 is OK */
>            EXTDEF(PDF, 13),
>
> I just picked 12, is this Ok, or does it have some special significance?
>
>   
You seem to have missed the 2nd part of Brian's reply: Yes, it is
significant, and not magic: it's the argument count.




-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



[Rd] Metapost device driver
Peter Dalgaard