2009-03-12 02:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu)

* source/rtl/achoice.prg
    ! Fixed handling of empty items.

  * INSTALL
  * config/rules.cf
  * config/darwin/gcc.cf
  * config/hpux/gcc.cf
  * config/dos/djgpp.cf
  * config/win/mingwce.cf
  * config/win/poccce.cf
  * config/win/pocc64.cf
  * config/win/icc.cf
  * config/win/cygwin.cf
  * config/win/msvc.cf
  * config/win/owatcom.cf
  * config/win/xcc.cf
  * config/win/msvcce.cf
  * config/win/mingw.cf
  * config/win/pocc.cf
  * config/win/bcc.cf
  * config/linux/gcc.cf
  * config/linux/icc.cf
  * config/os2/gcc.cf
  * config/sunos/gcc.cf
  * config/bsd/gcc.cf
    + Added support HB_BUILD_DEBUG=yes.
      This will work identically to the former non-GNU make
      systems.
    ! Added missing -MT for MSVC. (from non-GNU make)
    * Changed a few CPPFLAGS to CFLAGS. (these are currently
      synonyms, and both are utilized without any apparent order).
      This could use more cleanup.
This commit is contained in:
Viktor Szakats
2009-03-12 01:16:53 +00:00
parent 5f9ae2e313
commit a7dfafc8c7
24 changed files with 153 additions and 39 deletions

View File

@@ -8,6 +8,40 @@
2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2009-03-12 02:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/achoice.prg
! Fixed handling of empty items.
* INSTALL
* config/rules.cf
* config/darwin/gcc.cf
* config/hpux/gcc.cf
* config/dos/djgpp.cf
* config/win/mingwce.cf
* config/win/poccce.cf
* config/win/pocc64.cf
* config/win/icc.cf
* config/win/cygwin.cf
* config/win/msvc.cf
* config/win/owatcom.cf
* config/win/xcc.cf
* config/win/msvcce.cf
* config/win/mingw.cf
* config/win/pocc.cf
* config/win/bcc.cf
* config/linux/gcc.cf
* config/linux/icc.cf
* config/os2/gcc.cf
* config/sunos/gcc.cf
* config/bsd/gcc.cf
+ Added support HB_BUILD_DEBUG=yes.
This will work identically to the former non-GNU make
systems.
! Added missing -MT for MSVC. (from non-GNU make)
* Changed a few CPPFLAGS to CFLAGS. (these are currently
synonyms, and both are utilized without any apparent order).
This could use more cleanup.
2009-03-11 22:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbgete.c
* disabled unsetenv() from Watcom builds - looks that this function
@@ -46,7 +80,7 @@
2009-03-11 08:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* doc/whatsnew.txt
+ Added new entries since last update. Please review, etc...
; TODO: There is still 500K worth of ChangeLog to process
; TODO: There is still 500K worth of ChangeLog to process
for the timeframe 200808/09-20081219.
Someone pls help.
@@ -82,12 +116,12 @@
2009-03-10 17:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/hbregex.c
* Fixed HB_REGEXMATCH(). Now the HAS/LIKE mode can be controlled
by 5th logical parameter (was 3rd), so 3rd parameter is solely
* Fixed HB_REGEXMATCH(). Now the HAS/LIKE mode can be controlled
by 5th logical parameter (was 3rd), so 3rd parameter is solely
controlling case-sensitivity as indicated in the documentation.
Users are recommended to use HB_REGEXHAS() and HB_REGEXLIKE()
functions as unambiguous alternatives, which work equally
well on all Harbour versions. HB_REGEXMATCH() is now deprecated,
Users are recommended to use HB_REGEXHAS() and HB_REGEXLIKE()
functions as unambiguous alternatives, which work equally
well on all Harbour versions. HB_REGEXMATCH() is now deprecated,
but kept for compatibility.
2009-03-10 15:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
@@ -96,7 +130,7 @@
* contrib/xhb/hbcompat.ch
- Disabled dangerous bitop compatibility macros + comment added.
Enabled them with #define XHB_BITOP. Or even better
Enabled them with #define XHB_BITOP. Or even better
to change code to use HB_BIT*() functions natively.
2009-03-10 12:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
@@ -231,7 +265,7 @@
* contrib/examples/uhttpd/home/testxmldb.html
* Added Safari as unsupported browser.
(BTW, what would it need to support Safari and Chrome, or
(BTW, what would it need to support Safari and Chrome, or
WebKit browsers in general?)
2009-03-08 00:43 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)

View File

@@ -230,6 +230,7 @@ OPTIONS AVAILABLE WHEN BUILDING HARBOUR
full clean + install cycles will automatically
be executed, so you don't have to explicitly
pass them to make_gnu.bat.
- HB_BUILD_DEBUG=yes Create a debug build.
- HB_CONTRIBLIBS=no Don't build any contrib libraries.
- HB_CONTRIBLIBS=[<list>] Build space separated <list> of
contrib libraries. Build all if

View File

@@ -15,6 +15,10 @@ CC_OUT = -o
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -Wall -W -O3
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = $(HB_CCACHE) gcc
LD_OUT = -o

View File

@@ -31,6 +31,10 @@ CPPFLAGS += -no-cpp-precomp
# -fno-common enables building .dylib files
CFLAGS = -fno-common -Wall -W -O3
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
# It's to avoid warning message generated when 'long double' is used
# remove it if you have newer compiler version
#CFLAGS += -Wno-long-double

View File

@@ -15,6 +15,10 @@ CC_OUT = -o
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -Wall -W -O3
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = gcc
LD_OUT = -o
LDLIBS = -lm

View File

@@ -25,6 +25,10 @@ LDFLAGS =
#CFLAGS += -mlp64
#LDFLAGS = -mlp64
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = $(HB_CCACHE) gcc
LD_OUT = -o

View File

@@ -33,6 +33,10 @@ endif
# it's necessary on some platforms but can reduce performance
#CFLAGS += -fPIC
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = $(HB_CCACHE) $(HB_CMP)
LD_OUT = -o

View File

@@ -28,6 +28,10 @@ CFLAGS = -O3 -D_GNU_SOURCE
# it's necessary on some platforms but can reduce performance
#CFLAGS += -fPIC
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = $(HB_CCACHE) $(HB_CMP)
LD_OUT = -o

View File

@@ -15,6 +15,10 @@ CC_OUT = -o
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -Wall -W -O3
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = gcc
LDFLAGS =
# NOTE: The ending space after -o is important, please preserve it.
@@ -97,4 +101,3 @@ ARFLAGS = $(HB_USER_AFLAGS)
AR_RULE = $(create_library) & $(RM) __lib__.tmp
include $(TOP)$(ROOT)config/rules.cf

View File

@@ -10,6 +10,10 @@ YACC_FLAGS := -d $(YACC_FLAGS)
LEX = flex
LEX_FLAGS := -i -8 $(LEX_FLAGS)
ifeq ($(HB_BUILD_DEBUG),yes)
HB_CDBG = -DHB_TR_LEVEL_DEBUG
endif
#
# How to run Harbour.
#
@@ -35,13 +39,13 @@ endif
# The rule to compile a C source file.
ifeq ($(CC_RULE),)
# Use default rule if architecture/compiler specific rule is not defined
CC_RULE = $(CC) $(CPPFLAGS) $(CFLAGS) $(HB_USER_CFLAGS) $(HB_CDYNLIB) $(CC_IN) $< $(CC_OUT)$(<F:.c=$(OBJ_EXT))
CC_RULE = $(CC) $(CPPFLAGS) $(CFLAGS) ($HB_CDBG) $(HB_USER_CFLAGS) $(HB_CDYNLIB) $(CC_IN) $< $(CC_OUT)$(<F:.c=$(OBJ_EXT))
endif
# The rule to compile a C++ source file.
ifeq ($(CPP_RULE),)
# Use default rule if architecture/compiler specific rule is not defined
CPP_RULE = $(CC) $(CPPFLAGS) $(CFLAGS) $(HB_USER_CFLAGS) $(HB_CDYNLIB) $(CC_IN) $< $(CC_OUT)$(<F:.cpp=$(OBJ_EXT))
CPP_RULE = $(CC) $(CPPFLAGS) $(CFLAGS) ($HB_CDBG) $(HB_USER_CFLAGS) $(HB_CDYNLIB) $(CC_IN) $< $(CC_OUT)$(<F:.cpp=$(OBJ_EXT))
endif

View File

@@ -20,6 +20,10 @@ CFLAGS = -Wall -W -O3
# it's necessary on some platforms but can reduce performance
#CFLAGS += -fPIC
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = $(HB_CCACHE) gcc
LD_OUT = -o

View File

@@ -18,6 +18,10 @@ CC_OUT = -o
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -4 -O2 -OS -Ov -Oi -Oc -q -d -Q -w -w-sig- -tWM
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -y -v
endif
LD = bcc32.exe
LDFLAGS = -O2
LD_OUT = -e

View File

@@ -15,6 +15,10 @@ CC_OUT = -o
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -Wall -W -O3 -march=i586 -mtune=pentiumpro
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = gcc
LD_OUT = -o

View File

@@ -17,10 +17,13 @@ CC_IN = -c
CC_OUT = -Fo
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -W4 -Gs
# -Zi
CFLAGS += -Ogt2yb1p -GX- -G6 -YX
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -Zi
endif
LD = icl.exe
LD_OUT = -Fe

View File

@@ -15,6 +15,10 @@ CC_OUT = -o
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -Wall -W -O3 -march=i586 -mtune=pentiumpro
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = $(CCPREFIX)gcc
LD_OUT = -o
LINKPATHS =

View File

@@ -19,6 +19,10 @@ CPPFLAGS = -I. -I$(HB_INC_COMPILE)
# Use -O2 instead of -O3 here.
CFLAGS = -Wall -W -O2
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD = $(CCPREFIX)gcc
LD_OUT = -o
LINKPATHS =

View File

@@ -14,7 +14,6 @@ CC_IN = -c
CC_OUT = -Fo
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
CFLAGS = -nologo -W4 -wd4127 -Gs
# -Zi
ifeq ($(HB_VISUALC_VER_PRE80),)
CFLAGS += -Ot2b1 -EHs-c-
@@ -22,6 +21,18 @@ else
CFLAGS += -Ogt2yb1p -GX- -G6 -YX
endif
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -MTd -Zi
else
CFLAGS += -MT
endif
# # NOTE: -GA flag should be disabled when building MT _.dlls_,
# # as it creates bad code according to MS docs [vszakats].
# ifeq ($(HB_VISUALC_VER_PRE70),)
# CFLAGS += -GA
# endif
LD = cl.exe
LD_OUT = -Fe

View File

@@ -30,6 +30,10 @@ else
CFLAGS += -Oxsb1 -EHsc -YX -GF
endif
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -Zi
endif
ifeq ($(HB_VISUALC_VER_PRE80),)
LD = cl.exe
else

View File

@@ -15,24 +15,28 @@ CC = wpp386
CC_IN =
CC_OUT = -fo=
#CPPFLAGS = -j -w3 -d2 -5s -5r -fp5 -oxehtz -zq -zt0 -mf -bt=NT
CPPFLAGS = -w2 -zq -bt=NT
#CFLAGS = -j -w3 -5s -5r -fp5 -oxehtz -zq -zt0 -mf -bt=NT
CFLAGS = -w2 -zq -bt=NT
#architecture flags
CPPFLAGS += -5 -fp5
CFLAGS += -5 -fp5
# optimization flags
# don't enable -ol optimization in OpenWatcom 1.1 - gives buggy code
CPPFLAGS += -onaehtzr -oi+ -ei -zp8 -s -zt0
CFLAGS += -onaehtzr -oi+ -ei -zp8 -s -zt0
CPPFLAGS += -i. -i$(TOP)include -i$(TOP)$(ROOT)include -iinclude
CFLAGS += -i. -i$(TOP)include -i$(TOP)$(ROOT)include -iinclude
ifneq ($(HB_LIB_COMPILE),)
CPPFLAGS += -i$(HB_INC_COMPILE)
CFLAGS += -i$(HB_INC_COMPILE)
endif
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -d2
endif
# work arround to DOS command line size limit
export WPP386 := $(strip $(CPPFLAGS))
CPPFLAGS =
export WPP386 := $(strip $(CFLAGS))
CFLAGS =
# Note: The empty line directly before 'endef' HAVE TO exist!
# It causes that the 'echo' command is separated by LF

View File

@@ -14,19 +14,21 @@ LIB_EXT = .lib
CC = pocc.exe
CC_IN = -c
CC_OUT = -Fo
CPPFLAGS = -I.
CFLAGS = -I.
CPPFLAGS += -Ze -Go -MT
CFLAGS += -Ze -Go -MT
# optimizations
CPPFLAGS += -Ot
CFLAGS += -Ot
# -Ox: can cause GPF in 4.50/5.00, so it's disabled.
ifneq ($(HB_INC_COMPILE),)
CPPFLAGS += -I$(HB_INC_COMPILE)
CFLAGS += -I$(HB_INC_COMPILE)
endif
CFLAGS =
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -Zi
endif
LD = polink.exe
LD_OUT = -OUT:

View File

@@ -4,4 +4,4 @@
include $(TOP)$(ROOT)config/$(HB_ARCHITECTURE)/pocc.cf
CPPFLAGS += /Tamd64-coff
CFLAGS += /Tamd64-coff

View File

@@ -18,22 +18,24 @@ HB_GCMODE=0
CC = pocc.exe
CC_IN = -c
CC_OUT = -Fo
CPPFLAGS = -I.
CFLAGS = -I.
CPPFLAGS += -Ze -Go
CFLAGS += -Ze -Go
# optimizations
CPPFLAGS += -Ot
CFLAGS += -Ot
# -Ox: can cause GPF in 4.50/5.00, so it's disabled.
# For Pocket PC and ARM processors (including XScale)
CPPFLAGS += -Tarm-coff -D_WINCE -DUNICODE -DHB_NO_WIN_CONSOLE
CFLAGS += -Tarm-coff -D_WINCE -DUNICODE -DHB_NO_WIN_CONSOLE
ifneq ($(HB_INC_COMPILE),)
CPPFLAGS += -I$(HB_INC_COMPILE)
CFLAGS += -I$(HB_INC_COMPILE)
endif
CFLAGS =
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -Zi
endif
LD = polink.exe
LD_OUT = -OUT:

View File

@@ -14,18 +14,20 @@ LIB_EXT = .lib
CC = xcc.exe
CC_IN = -c
CC_OUT = -Fo
CPPFLAGS = -I$(TOP) -I$(ROOT) -I$(TOP)$(ROOT)
CFLAGS = -I$(TOP) -I$(ROOT) -I$(TOP)$(ROOT)
ifneq ($(HB_INC_COMPILE),)
CPPFLAGS += -I$(HB_INC_COMPILE)
CFLAGS += -I$(HB_INC_COMPILE)
endif
# disabled - it produces bad code
#CPPFLAGS += -Ot
#CFLAGS += -Ot
# For Pocket PC and ARM processors (including XScale)
#CPPFLAGS += /Tarm-coff
#CFLAGS += /Tarm-coff
CFLAGS =
ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -Zi
endif
LD = xlink.exe
LD_OUT = -OUT:

View File

@@ -581,7 +581,7 @@ STATIC FUNCTION Ach_Limits( nFrstItem, nLastItem, nItems, bSelect, alSelect, acI
nItems := 0
FOR nCntr := 1 TO Len( acItems )
IF ISCHARACTER( acItems[ nCntr ] )
IF ISCHARACTER( acItems[ nCntr ] ) .AND. Len( acItems[ nCntr ] ) > 0
nItems++
ELSE
EXIT