delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/01/02/13:44:15

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3E14886A.DD06BA7A@phekda.freeserve.co.uk>
Date: Thu, 02 Jan 2003 18:43:54 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: stubify
References: <200301021809 DOT h02I9mG22840 AT speedy DOT ludd DOT luth DOT se>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

ams AT ludd DOT luth DOT se wrote:
[snip]
> By the way there's another bug!:
> 
> int main(int argc, char **argv)
> {
>   int i;
>   if (argc > 1 && strcmp(argv[1], "-v")==0)
>   {
>     verbose = 1;
>     argv++;
>     argc--;
>   }
>   v_printf("stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie\n");
>   if (argc < 2)
>   {
>     fprintf(stderr, "Usage: stubify [-g] <program>  (program may be COFF or stubbed .exe,\n");
>     fprintf(stderr, "  and may be COFF with .exe extension.  Resulting file will have .exe)\n");
> 
> Note the option in the help text is "-g" and the option we test for is
> "-v".

-g is the option for generating a stub, which you can stubedit to call another
program. E.g.:

    stubedit -g d.exe
    stubedit d.exe runfile=dir

See gnu/filutil4.1/djgpp/mkgvers.sh from the fileutils 4.1 for lots of
examples.

So the help message should be updated to describe -v.

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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