primax: A small hack.


Previous by date: 18 Oct 1999 10:41:55 -0000 Re: Colorado D600 is working !, Romain Oddoart
Next by date: 18 Oct 1999 10:41:55 -0000 SCSI Profit 9600, German Jose Gomez Garcia
Previous in thread:
Next in thread: 18 Oct 1999 10:41:55 -0000 Re: A small hack., Christian Ordig

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?

Previous by date: 18 Oct 1999 10:41:55 -0000 Re: Colorado D600 is working !, Romain Oddoart
Next by date: 18 Oct 1999 10:41:55 -0000 SCSI Profit 9600, German Jose Gomez Garcia
Previous in thread:
Next in thread: 18 Oct 1999 10:41:55 -0000 Re: A small hack., Christian Ordig


Powered by ezmlm-browse 0.20.