From geoffrey.russell at gmail.com  Tue Feb  6 05:38:30 2007
From: geoffrey.russell at gmail.com (Geoff Russell)
Date: Tue, 6 Feb 2007 15:08:30 +1030
Subject: [Rd] Metapost device driver
In-Reply-To: <93c3eada0702051553x5375d70br8d9f8ca73199d2c6@mail.gmail.com>
References: <93c3eada0702051553x5375d70br8d9f8ca73199d2c6@mail.gmail.com>
Message-ID: <93c3eada0702052038x56da710ale94d6653fbda87f0@mail.gmail.com>

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?

Cheers,
Geoff Russell



[Rd] Metapost device driver
Geoff Russell