* harbour/contrib/xhb/xhbtedit.prg
* harbour/contrib/hbmysql/tsqlbrw.prg
* harbour/contrib/hbodbc/browodbc.prg
% eliminated NextKey() calls
; TOFIX: BrowseODBC() just like dbEdit() ignore setKey() actions
If key is pressed during stabilization faze. I think it's
implementation problem not intentional decision and it
should be fixed - there is nothing worse then application
which ignores some keystrokes if user types to fast ;)
I'd like to ask authors of above code to check it.
; I haven't touched xhb/xhbmemo.prg - it makes some hacks with
keyboard polling so it's serious chance I would break sth.
* include/hbwinuni.h
+ new HB_WINAPI_KERNEL32_DLL() macro to get kernel32.dll
regardless of UNICODE or non-UNICODE mode
* contrib/hbwin/wapi_winbase.c
* src/rtl/diskspac.c
* src/rtl/disksphb.c
% use HB_WINAPI_KERNEL32_DLL() macro
! fixed a non-UNICODE bug that slipped in previous commit
* src/rtl/direct.c
* made it format well using uncrustify
* src/vm/asort.c
* src/vm/memvars.c
* cleanups
* contrib/xhb/hbcompat.h
+ added compatibility macros from xhb repository
(untested)
* formatting
* contrib/xhb/hbdll.ch
* contrib/xhb/htmlform.ch
* contrib/xhb/ttable.ch
* contrib/hbamf/amfdec.c
* contrib/hbamf/amfenc.c
* contrib/hbamf/hbamf.hbc
* formatting, converted commented code to #if 0/#endif
blocks, removed excessive {} blocks
* contrib/hbnf/aredit.prg
* contrib/hbnf/popadder.prg
* added two TODOs to avoid NextKey()
; NextKey() is also used in these files:
hbct/keysec.prg
hbmysql/tsqlbrw.prg
hbodbc/browodbc.prg
hbodbc/browodbc.prg
xhb/xhbmemo.prg
xhb/xhbtedit.prg
; Przemek, if you see this, would you mind doing it
where it's possible to avoid?
* contrib/hbnf/calendar.prg
* minor cleanups
* contrib/xhb/xhbfunc.c
* src/rtl/philes.c
* deprecated HB_OSPATHSEPARATOR() with HB_LEGACY_LEVEL4 (after
next release). Use HB_PS() instead.
HB_OSPATHSEPARATOR() will continue to live as an xhb compatibility
function after that.
* contrib/xhb/xhbfunc.c
* src/rtl/console.c
* deprecated HB_OSNEWLINE() with HB_LEGACY_LEVEL4 (after
next release). Use HB_EOL() instead.
HB_OSNEWLINE() will continue to live as an xhb compatibility
function after that.
* utils/hbmk2/hbmk2.prg
* minor cleanup to prev
* include/hbwinuni.h
+ added HB_WINAPI_FUNCTION_NAME() macro to form a WinAPI
function name as a string (for dynamic calls)
Thanks to Mindaugas for the idea.
* contrib/hbwin/wapi_winbase.c
* contrib/hbwin/wapi_wingdi_font.c
* contrib/hbwin/win_prn2.c
* contrib/hbwin/win_prn3.c
* contrib/hbwin/win_rpc.c
* src/rtl/diskspac.c
* src/rtl/disksphb.c
* src/rtl/fslink.c
% eliminated few UNICODE build-time branches by using
new HB_WINAPI_FUNCTION_NAME() macro
* utils/hbmk2/hbmk2.prg
+ added support for .hbc autofind in contrib and addons
dir, even if the .hbc names isn't the same as the
contrib name. This can be used to autofind secondary
supplementary or alternative .hbc files automatically
on all platforms.
* contrib/hbwin/tests/olesrv1.hbp
* contrib/hbwin/tests/olesrv2.hbp
* contrib/hbwin/tests/olesrv3.hbp
* contrib/hbwin/tests/olesrv4.hbp
% deleted relative paths from .hbc references to
supplementary .hbc file. They will now be autofound.
* contrib/hbwin/tests/olesrv1.hbp
* contrib/hbwin/tests/olesrv2.hbp
* contrib/hbwin/tests/olesrv3.hbp
* contrib/hbwin/tests/olesrv4.hbp
! fixed references to hbolsrv.hbc that went wrong
in 2012-03-03 15:33 UTC+0100. These cannot be autofound
yet, so relative dir reference is required.
* include/hbapifs.h
% deleted type HB_FNAME_PTR (change it to PHB_FNAME)
INCOMPATIBLE
* include/hbapi.h
% deleted internal type HB_EXTREF_PTR (synonym of PHB_EXTREF)
+ src/codepage/cp_gbk.c
+ src/codepage/gbk.c
* src/codepage/Makefile
* include/hbcpage.hbx
+ added GBK CP.
GBK is an extension of the GB2312 character set for simplified Chinese
characters, used in the People's Republic of China. GBK encoding support
for Simplified Chinese, while fully contained BIG5. Microsoft implemented
GBK in Windows 95 and Windows NT 3.51 as Code Page 936.
Thanks to Wang Dongming for the two new source files.
Please review/test it.
* src/rtl/langcomp.prg
! use GBK CP instead of BIG5 for legacy CP "ZHGB"
* extras/httpsrv/session.prg
* cleanup
* src/rdd/hsx/hsx.c
* src/rtl/gtxwc/gtxwc.c
* src/vm/classes.c
* src/vm/dynsym.c
* src/vm/garbage.c
* modified macros to act like functions, whether
mapped to noop or noop code. These code parts
will now not confuse code formatters.
The generated code is indentical (tested under
mingw, and to some extent on msvc and bcc)
* include/hbtrace.h
* minor
* include/hbtrace.h
! fixed empty HB_TRACE() definitions to be 'do {} while( 0 )'
as suggested by Przemek.
* contrib/hbsqlit3/core.c
* contrib/hbwin/axcore.c
* contrib/hbzebra/datamtrx.c
* contrib/hbzebra/qrcode.c
* contrib/rddads/ads1.c
* contrib/rddads/adsfunc.c
* deleted {} block where HB_TRACE() was the only
call made from the the block. It's now unnecessary.
* contrib/hbzebra/codabar.c
* contrib/hbzebra/code11.c
* contrib/hbzebra/code128.c
* contrib/hbzebra/code39.c
* contrib/hbzebra/code93.c
* contrib/hbzebra/core.c
* contrib/hbzebra/datamtrx.c
* contrib/hbzebra/eanupc.c
* contrib/hbzebra/itf.c
* contrib/hbzebra/msi.c
* contrib/hbzebra/pdf417.c
* contrib/hbzebra/qrcode.c
* deleted few more unnecessary {} from single statement
blocks
* src/common/hbver.c
* src/compiler/hbpcode.c
* src/pp/hbpp.c
* src/pp/ppcore.c
* src/rdd/dbf1.c
* src/rdd/dbfcdx/dbfcdx1.c
* src/rdd/wafunc.c
* src/rtl/gttrm/gttrm.c
* src/rtl/mlcfunc.c
* src/vm/hvm.c
* src/vm/itemapi.c
* cleaned empty loops to be:
for( ... )
;
or
while( ... )
;
Please use this from now on. It's also what uncrsustify will
do and it's well greppable and readble.
(I didn't change yet where ';' is in the same line as while()
and for(), and will let uncrustify do this in a future pass)
* contrib/hbmisc/spd.c
* minor
* ChangeLog
* made decision how to clean empty loop code
(it's bar ';' char, indented in next line)
* include/hbtrace.h
* inactive HB_TRACE() macro will now translate to
empty {} block, so there is no need to manually
do that when used alone in an 'else' branch for example.
Checkme.
* contrib/hbwin/win_svc.c
% deleted {} braces from around HB_TRACE() calls
* utils/hbmk2/hbmk2.prg
! fixed hb_processOpen() results to be displayed at
once to avoid cutting potential UTF-8 (or other multibyte)
output from tools to be cut in the middle of character.
* contrib/hbct/charone.c
* contrib/hbct/charop.c
* contrib/hbct/token1.c
* contrib/hbct/token2.c
* deleted {} ending comments
* contrib/hbmysql/tmysql.prg
* contrib/hbmysql/tsqlbrw.prg
* deleted change tracking comments. 'blame' functionality
and repo history should be enough
* contrib/hbtip/mail.prg
! fixed regression in r18462 where casing of class name
in a string got accidentally converted to natural.
Many thanks to Itamar Lins for the find.
* utils/hbmk2/hbmk2.prg
+ implemented theoretically correct solution to extract
linker output _while_ displaying it. It means that
missing function hinting feature doesn't require
a second pass to the linker anymore.
; Please test on all platforms.
; For those two people interested, it will create output like this:
---
hbmk2: Hint: Add option 'hbct.hbc' for missing function(s): CharMirr()
hbmk2: Hint: Add option 'hbusb.hbc' for missing function(s): libusb_exit()
hbmk2: Hint: Add option 'hbsms.hbc' for missing function(s): smsctx_PIN()
hbmk2: Error: Referenced, missing, but unknown function(s): NOTANYWHERE()
---
* extras/httpsrv/uhttpd.prg
! fixed some code for unicode
% fixed to not call FCLOSE() on a HB_PROCESSOPEN() handle
* use F_ERROR instead of -1 literal
* commented code converted to #if 0/#endif guarded one
* src/rtl/hbprocfn.c
* formatting
* tests/fixcase.hb
* new extension exceptions
* contrib/gtwvg/wvgutils.c
! fixed to use HB_OS_WIN_CE macro to detect WinCE, not
some the arbitrary __WINCE__
! fixed functions unsupported on WinCE to return the
same type when as on Windows
* harbour/src/vm/cmdarg.c
! fixed buffer overflow
! added protection against GPF if hb_cmdargBaseProgName() is called
and there are no parameters initialized
* use macros to allocate system memory in MS-Windows builds
* harbour/src/vm/fm.c
* changed s_fInitedFM initialization when memory statistic is enabled
to avoid infinite recursion and GPF is some initialization function
tries to allocate memory
* contrib/hbwin/tests/testsvc.prg
+ added some lines to test parameter passing
* include/hbdefs.h
* deprecated HB_TCHAR_*() macros with HB_LEGACY_LEVEL4
Everyone pls move on to Str API calls and hbwinuni.h
macros.
* include/hbexpra.c
* include/hbexprb.c
* include/hbwmain.c
* applied uncrustify fixes
* contrib/hbtpathy/hbtpathy.hbp
* contrib/hbtpathy/telepath.prg
+ contrib/hbtpathy/tp_idle.prg
! TP_IDLE() moved to a separate source file to
make it possible to override it from user code.
This function is documented as a callback.
* harbour/ChangeLog
! restored ChangeLog entry removed by my script in last commit,
sorry and thanks to Viktor for the info.
! cleaned some c&p typos in my last chglog entry
* harbour/include/hbdefs.h
* harbour/src/common/hbwin.c
+ added new C function hb_wctomblen()
* harbour/include/hbapi.h
* harbour/src/vm/cmdarg.c
+ added new C functions hb_winmainArgVBuild() and hb_winmainArgVFree()
These functions are available only in MS-Windows builds and they
use GetCommandLine() and GetModuleFileName() to build argument list.
* updated to operate on MS-Windows unicode buffers if possible.
* harbour/src/vm/hvm.c
* initialize MS-Windows application startup parameters in hb_vmInit()
* free MS-Windows application startup parameters in hb_vmQuit()
* harbour/include/hbwmain.c
* do not build argument list HB_VM_STARTUP mode - leave this job to
new functions
* harbour/src/rtl/teditor.prg
* harbour/src/rtl/memoedit.prg
% do eliminated NextKey() calls to avoid unnecessary key polling
It also fixes key dropping in small typeahead buffers.
* harbour/src/rtl/dbedit.prg
% do eliminated NextKey() calls to avoid unnecessary key polling
* harbour/src/rtl/getsys.prg
* harbour/src/rtl/tgetlist.prg
! fixed active loops (100% CPU usage)
* harbour/src/rtl/gtsln/gtsln.h
! define REAL_UNIX_SYSTEM in AIX builds - thanks to Luiz Rafael Culik
for the information
* harbour/src/rtl/achoice.prg
% replaced Empty( NextKey() ) with NextKey() == 0
* harbour/src/rtl/gtsln/gtsln.h
! define REAL_UNIX_SYSTEM in AIX builds - thanks to Luiz Rafael Culik
for the information
* harbour/src/rtl/hbinet.c
* uese hb_parni()/hb_retni() instead of hb_parnl()/hb_retnl() for int
values
* harbour/src/rtl/hbgtcore.c
! comment cleanup
* harbour/contrib/hbwin/win_svc.c
! eliminated HB_TCHAR_* macros