Re: option manager

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Fri Jul 27 2001 - 06:51:21 EDT

  • Next message: Djamel Ouerdane: "TOFW"

    Hi Djam, 
    
    On Fri, 27 Jul 2001 12:34:08 +0200 (CEST)
    Djamel Ouerdane <ouerdane@nbi.dk> wrote
    concerning ": option manager":
    > Hi,
    > 
    > I slightly modified BrAppOptionManager so that the user can pass negative
    > numbers with options (so far, if you did -p -4.5, it couldn't work since
    > -4.5 was confused with an option that was not in the option table)
    > 
    > I just added in ProcessCommandLine the following statement:
    > 
    >     // See if we got an option
    >     if (fArgv[i][0] == '-' && isalpha(fArgv[i][1])) {
    >                            ~~~~~~~~~~~~~~~~~~~~~~~
    
    I'm not so confident this is the right solutiuon.  I'll look into it
    later on. 
     
    > The experts should check if isalpha is ok for all platforms...
    > This correction seemed to work fine but I cannot foresee subtle
    > inconvenience.
    
    It's simple: If a function is ANSI/ISO C or  ANSI/ISO C++, you can use
    it (giving the C++ one preference ofcourse), otherwise - DON'T. 
    
    Yours, 
    
    Christian  -----------------------------------------------------------
    Holm Christensen                             Phone:  (+45) 35 35 96 91 
      Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
      DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
      Denmark                                    Email:       cholm@nbi.dk
    



    This archive was generated by hypermail 2b30 : Fri Jul 27 2001 - 06:52:04 EDT