20000801-21:55 GMT+2 Maurilio Longo <maurilio.longo@libero.it>

This commit is contained in:
Maurilio Longo
2000-08-01 20:03:07 +00:00
parent 6ddbb5b481
commit 6d53f541ed
3 changed files with 70 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
20000801-21:55 GMT+2 Maurilio Longo <maurilio.longo@libero.it>
* config/os2/global.cf
! fixed removing of nested subdir (HB_ARCHITECTURE/HB_COMPILER) that under OS/2 you need to
remove from the bottom up and not a single DEL command
* source/compiler/cmdcheck.c
! removed GCC warning since isdigit() expects an int but was called with a char
2000-08-01 12:10 UTC+0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/cmdcheck.c
+ Added support for "new style" switches specs, for command line arguments.

View File

@@ -1,54 +1,111 @@
#
# $Id$
#
all : first
HB_GT_LIBS=\
gtos2 \
gtpca \
gtstd \
ifeq ($(HB_GT_LIB),)
HB_GT_LIB = gtos2
endif
ifeq ($(SHLVL),) # An OS/2 command shell
ARCH_DIR = $(ARCH)
OS2_ARCH_DIR = $(subst /,\,$(ARCH)\)
OS2_ARCH_DIR = $(subst /,\,$(ARCH))
MK = $(subst /,\,$(subst \~,~,$(MAKE)))
RM = del /n
RD = rmdir
CP = copy
MV = move
MD = md
dirbase::
-CMD.EXE /c IF NOT EXIST $(HB_ARCHITECTURE) $(MD) $(HB_ARCHITECTURE)
-CMD.EXE /c IF NOT EXIST $(OS2_ARCH_DIR) $(MD) $(OS2_ARCH_DIR)
clean::
-CMD.EXE /c IF EXIST $(OS2_ARCH_DIR)\*.* $(RM) $(OS2_ARCH_DIR)\*.*
-CMD.EXE /c IF EXIST $(OS2_ARCH_DIR)\\*.* $(RM) $(OS2_ARCH_DIR)\\*.*
-CMD.EXE /c IF EXIST $(OS2_ARCH_DIR) $(RD) $(OS2_ARCH_DIR)
-CMD.EXE /c IF EXIST $(HB_ARCHITECTURE) $(RD) $(HB_ARCHITECTURE)
else # bash
ARCH_DIR = $(ARCH)/
MK = $(MAKE)
RM = rm -f
RD = rm -f -r
CP = cp -f
MV = mv -f
MD = mkdir
dirbase::
@[ -d $(HB_ARCHITECTURE) ] || $(MD) $(HB_ARCHITECTURE); \
[ -d $(ARCH) ] || $(MD) $(ARCH)
clean::
-$(RD) $(ARCH_DIR)
endif


View File

@@ -235,7 +235,7 @@ void hb_compChkCompilerSwitch( int iArg, char * Args[] )
case 'e' :
case 'E' :
if( Args[i][j + 1] && toupper( Args[i][j + 1] ) == 'S' && Args[i][j + 2] && isdigit( Args[i][j + 2] ) )
if( Args[i][j + 1] && toupper( Args[i][j + 1] ) == 'S' && Args[i][j + 2] && isdigit((int) Args[i][j + 2] ) )
{
Switch[2] = 'S';
Switch[3] = Args[i][j + 2];
@@ -256,7 +256,7 @@ void hb_compChkCompilerSwitch( int iArg, char * Args[] )
case 'g' :
case 'G' :
if( Args[i][j + 1] && toupper( Args[i][j + 1] ) == 'C' && Args[i][j + 2] && isdigit( Args[i][j + 2] ) )
if( Args[i][j + 1] && toupper( Args[i][j + 1] ) == 'C' && Args[i][j + 2] && isdigit((int) Args[i][j + 2] ) )
{
Switch[2] = 'C';
Switch[3] = Args[i][j + 2];
@@ -305,7 +305,7 @@ void hb_compChkCompilerSwitch( int iArg, char * Args[] )
case 'q' :
case 'Q' :
if( Args[i][j + 1] && isdigit( Args[i][j + 1] ) )
if( Args[i][j + 1] && isdigit((int) Args[i][j + 1] ) )
{
Switch[2] = Args[i][j + 1];
Switch[3] = '\0';
@@ -334,7 +334,7 @@ void hb_compChkCompilerSwitch( int iArg, char * Args[] )
case 'w' :
case 'W' :
if( Args[i][j + 1] && isdigit( Args[i][j + 1] ) )
if( Args[i][j + 1] && isdigit((int) Args[i][j + 1] ) )
{
Switch[2] = Args[i][j + 1];
Switch[3] = '\0';