Ethereal-dev: Re: [Ethereal-dev] ethereal --xxx xxx

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 14 Feb 2006 01:55:15 -0800
LEGO wrote:

Actually it's just adding a check for it in the autofoo stuff (and now
I know how to do it myself!) then take the code from gnu getopt and
add it to a file.c by itself

We already have most of it, in getopt.c; GNU getopt has (at least as of when our getopt.c was created) a common routine used by getopt() and getopt_long(), with those routines just short front ends - our getopt.c just has getopt(), not getopt_long().

We could standardize on getopt_long(), and rename getopt.c to getopt_long.c and have it define getopt_long() instead, and check for that in the configure script.

On windows I don't know if we already have it... It would take me just
one buildbot run to find out :)

We don't have it - that's one place where we use our "getopt.c".