delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/04/07/15:31:56

Date: Thu, 7 Apr 94 14:37:10 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: leisner AT sdsp DOT mc DOT xerox DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: passing arguments (was fileutil...shellutil...)

> How are extended command lines handled?  (the typical way on dos is to
> pass them via the environment).  The caller puts the command line
> in the environment, and the callee pulls it out when it builds argc/argv...

go32 (and V2.0) accept the following conventions:

* dos's 128-byte command line

* environment variables _argc, _argvN (the GNUish method)

* !proxy pointers (stub's method)

* @file response file (Borland, some Microsoft)

go32 also expands unquoted wildcards.  When libc's spawn() calls a
program, it uses the !proxy method when calling another djgpp app
(which is why make knows about gcc) and the 128-byte command line
otherwise.



- Raw text -


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