primax: Thread: A small hack.


[<<] [<] Page 1 of 1 [>] [>>]
Subject: A small hack.
From: XeT Erixon ####@####.####
Date: 18 Oct 1999 10:41:55 -0000
Message-Id: <380AF863.6F2DEAF2@xeqt.com>

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;
> 

Use it if you like...
Regards...
-- 
XeT
####@####.####

If nothing ever sticks to TEFLON, how do they make TEFLON stick
to the pan?
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.           
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.