delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/31/17:56:53

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Subject: Re: setup.exe command line options
From: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
To: cygwin-developers AT cygwin DOT com
In-Reply-To: <20011031165822.C10999@redhat.com>
References: <20011031083038 DOT 86183 DOT qmail AT web9906 DOT mail DOT yahoo DOT com>
<1004521251 DOT 1121 DOT 2 DOT camel AT lifelesswks>
<002401c16250$cbd9f850$f35a3c3e AT Obsession>
<20011031165822 DOT C10999 AT redhat DOT com>
X-Mailer: Evolution/0.15 (Preview Release)
Date: 01 Nov 2001 10:00:23 +1100
Message-Id: <1004569224.1121.155.camel@lifelesswks>
Mime-Version: 1.0
X-OriginalArrivalTime: 31 Oct 2001 23:04:37.0354 (UTC) FILETIME=[69BE34A0:01C16260]

On Thu, 2001-11-01 at 08:58, Christopher Faylor wrote:
> On Wed, Oct 31, 2001 at 09:12:45PM -0000, Keith Starsmeare wrote:
> >
> >----- Original Message -----
> >From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
> >To: "Keith Starsmeare" <keith_starsmeare AT yahoo DOT co DOT uk>
> >Cc: <cygwin-developers AT cygwin DOT com>
> >Sent: Wednesday, October 31, 2001 9:40 AM
> >Subject: RE: setup.exe command line options
> >
> >
> >> On Wed, 2001-10-31 at 19:30, Keith Starsmeare wrote:
> >> > The arguments are passed in as one string, can I use getopt to process a
> >> > string; I imagined I that getopt worked with an array of strings i.e.
> >char
> >> > *argv[]?
> >>
> >> Fixed. I realised this just after mailing my comment :}. Update your CVS
> >> repository.
> >
> >Excellent. Thanks.
> 
> I'd appreciate it if the current argv code was reverted ASAP.  We can't
> use the cygwin argv stuff in setup.exe.

Why not? It's been cleanly extracted, and is (one way) GPL compatible.

> I notice that mingw has something called __argv.  I wonder if that
> contains what I think it does.
> 
> MSVC also has some sort of argv parser.  I thought that it might be in
> msvcrt.dll but I don't know for sure.

There is a windows function, CommandlineToArgvW, but thats W char only..

> cgf


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019