primax: A small hack.
Subject:
RE: A small hack.
From:
Christian Ordig ####@####.####
Date:
30 Oct 1999 21:10:52 -0000
Message-Id: <XFMail.991030222920.chr.ordig@gmx.net>
On 18-Oct-99 XeT Erixon wrote:
> Since I don't fancy inches, I made a small hack that let you
> enter the the dimension in centimeters instead, using the
> option -D (instead of -d for inches). Here's a diff:
>
> 1159c1159
> < c = getopt_long(argc, argv, "hv:P:d:Vp:d:r:c:n:l:",
> ---
>> c = getopt_long(argc, argv, "hv:P:d:Vp:d:D:r:c:n:l:",
> 1185a1186
>>
> 1191a1193,1199
>> case 'D':
>> width = (strtod(optarg, &tmp))/2.54;
>> height = (strtod((char *)tmp + 1, (char **)NULL))/2.54;
>> DBG(DBG_HELPERS, " dimension: %1.1fx%1.1f cm\n",
>> width*2.54, height*2.54);
>> break;
>>
thank you for this nice patch. We'll apply it and it'll be available in the next version. (whenever this might appear:-)
---
Christian Ordig | Homepage: http://thor.prohosting.com/~chrordig/
Germany | eMail: Christian Ordig ####@####.####
__ _ |
/ / (_)__ __ ____ __ | Why Linux? Because it is free, stable, and
/ /__/ / _ \/ // /\ \/ / | bugs can be fixed in source opposed to waiting
/____/_/_//_/\_,_/ /_/\_\ | for a stable WinTendo from Micro$oft.