On 17 February 2012 00:29, David Rowe <[email protected]> wrote:
> Hi Dan,
>
> Yes using GNU-only options like that is  fine.
>
> Thanks,
>
> David
>

Hi,
Hopefully this patch will do what you need.
There are a few operational changes with it, though I've tried to
minimise these.

(1) The input file name is now the last argument presented instead of
the first.  The majority of command line utilities operate this way
round (and it fits better with the way getopt() works
(2) Specifying the codec rate has been changed from --2500, --1500 or
--1200 to --rate [2500|1500|1200].
(3) The order in which options are given on the command line now
matters: later options can override earlier ones.
(4) The help text is now largely dynamically generated.

I'm not an expert in this so there are probably better ways to do a
lot of things.

This should work with most Unix-like OSs.  Xgetopt under Windows does
not implement getopt_long(), so c2sim may need libiberty in order to
build under Windows.

If this patch is OK, I'll add getopt to c2enc and c2dec over the
weekend, then look at picking up another task.

Dan

Attachment: c2sim-getopt.diff
Description: Binary data

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to