2015-02-17 13:28 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/compiler/cmdcheck.c
    ! fixed error messages when wrong parameters are passed.
      When wrong parameters are taken from HARBOURCMD or CLIPPERCMD
         "Bad command line option '%s'"
      error is generated and
         "Bad command line parameter '%s'"
      when wrong parameters are from command line.
      New behavior is Cl*pper compatible.
This commit is contained in:
Przemysław Czerpak
2015-02-17 13:28:11 +01:00
parent 418caaac51
commit 9ed0347914
2 changed files with 13 additions and 1 deletions

View File

@@ -10,6 +10,16 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-02-17 13:28 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/compiler/cmdcheck.c
! fixed error messages when wrong parameters are passed.
When wrong parameters are taken from HARBOURCMD or CLIPPERCMD
"Bad command line option '%s'"
error is generated and
"Bad command line parameter '%s'"
when wrong parameters are from command line.
New behavior is Cl*pper compatible.
2015-02-17 12:06 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbssl/tests/inetssl.prg
* contrib/rddads/ads1.c

View File

@@ -819,7 +819,9 @@ static const char * hb_compChkParseSwitch( HB_COMP_DECL, const char * szSwitch,
{
if( szSwPtr - szSwitch <= 1 ||
( *szSwPtr != '\0' && *szSwPtr != ' ' && ! HB_ISOPTSEP( *szSwPtr ) ) )
hb_compGenError( HB_COMP_PARAM, hb_comp_szErrors, 'F', HB_COMP_ERR_BADOPTION, szSwitch, NULL );
hb_compGenError( HB_COMP_PARAM, hb_comp_szErrors, 'F',
fEnv ? HB_COMP_ERR_BADOPTION : HB_COMP_ERR_BADPARAM,
szSwitch, NULL );
else
return szSwPtr;
}