Commit Graph

452 Commits

Author SHA1 Message Date
Viktor Szakats
41f05c984e 2010-03-27 13:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/Makefile
  * contrib/hbmisc/blinker.prg
  + contrib/hbmisc/blinker.ch
    ! Fixed BLICPUREL().
    + Added blinker.ch header. This contains some stuff missing
      from original Blinker and some runtime mockup/emulation for
      following linker commands:
         BLINKER EXECUTABLE SERIAL <"String"> /* Harbour needs double quotes around the string */
         BLINKER DEMONSTRATION DATE <YYYYDDMM>
         BLINKER DEMONSTRATION MINUTES <minute>

  * src/rtl/tgetlist.prg
    * Minor formatting.
2010-03-27 12:27:08 +00:00
Xavi
383c7d0ff0 2010-03-26 05:05 UTC+0100 Xavi (jarabal/at/gmail.com)
* harbour/src/rtl/teditor.prg
    ! Fixing MemoEdit K_PGDN / K_PGUP calculation.
2010-03-26 04:05:40 +00:00
Przemyslaw Czerpak
9eda0eec26 2010-03-26 00:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvmall.c
    ! fixed typo in last commit
2010-03-25 23:44:10 +00:00
Przemyslaw Czerpak
8b5b161083 2010-03-26 00:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvmall.c
  * harbour/include/hbstack.h
    * reactivated for tests inline ASM code which can be used to access
      HVM stack pointer in MT HVM builds. It can be enabled in 32bit
      desktop windows Harbour builds by setting HB_ASM_TLS build time macro.
2010-03-25 23:12:28 +00:00
Przemyslaw Czerpak
47327d1293 2010-03-25 21:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvmall.c
    ! added missing HB_STACK_PRELOAD - the performance of MT HVM
      on C compilers/platforms which do not support C thread local
      variables was hardly reduce due to missing above macro, i.e.
      MinGW builds
2010-03-25 20:37:39 +00:00
Przemyslaw Czerpak
fcaeda7db3 2010-03-25 13:52 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/expropt2.c
    ! fixed stupid c&p typo in timestamp optimization,
      many thanks to Mindaugas for the information about the bug.
2010-03-25 12:53:09 +00:00
Przemyslaw Czerpak
ab16694f9f 2010-03-25 12:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbsetup.h
    + use FORCEINLINE defined in compiler header files

  * harbour/src/vm/fm.c
    * do not redefine FORCEINLINE if it's already defined in compiler
      header files
2010-03-25 11:20:45 +00:00
Przemyslaw Czerpak
5c30e1ced6 2010-03-25 10:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbsetup.h
    + added HB_FORCEINLINE macro

  * harbour/include/hbatomic.h
    * use HB_FORCEINLINE instead of _HB_INLINE_

  * harbour/src/vm/fm.c
    * define for DLMALLOC FORCEINLINE macro as HB_FORCEINLINE

  * harbour/src/vm/dlmalloc.c
    * removed some cleanup in FORCEINLINE declaration and _HB_INLINE_
      usage reducing number of local Harbour modifications.
2010-03-25 09:38:27 +00:00
Przemyslaw Czerpak
ced7a8e61a 2010-03-25 00:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbatomic.h
    * removed unnecessary parenthesis
    * renamed HB_SPINLOCK_INIT_R macro to HB_SPINLOCK_INITVAL_R
    + added HB_SPINLOCK_INIT_R(l) macro

  * harbour/src/vm/fm.c
  * harbour/src/vm/dlmalloc.c
    + updated to DLMALLOC 2.8.4
    * added OS2 support from our previous DLMALLOC version
    + updated to use our own recursive locks when available
    * disabled hack which breaks strict aliasing
    ! added some fixes to new DLMALLOC code
    TODO: Test it with MSVC win and wince builds and add _MSC_VER
          based protection for __forceinline usage (I do not know
          in which MSVC version it was added).
          Test it with OS2 GCC and OpenWatcom builds.
          Test it Darwin and some other *nixes.

  * harbour/contrib/sddfb/sddfb.c
    ! fixed missing reference operator in isc_detach_database()
    ! fixed NULL used to clear connection handles
    * keep references to connection handlers passed to isc_*() functions
    * minor formatting
2010-03-24 23:14:30 +00:00
Przemyslaw Czerpak
766cd74186 2010-03-23 15:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbxvm.h
  * harbour/src/vm/hvm.c
    + added hb_xvmPushAliasedFieldExt() and hb_xvmPopAliasedFieldExt()

  * harbour/src/compiler/gencc.c
    % use hb_xvmPushAliasedFieldExt() and hb_xvmPopAliasedFieldExt()
      to optimize code generated for <alias> -> <name> expressions
      in -gc3 mode

  * harbour/include/hbsetup.h
    + added _HB_INLINE_ macro

  * harbour/include/hbatomic.h
    + added HB_SPINLOCK_TRY(l)
    + added support for recursive spin locks

  * harbour/src/vm/fm.c
    * use _HB_INLINE_
2010-03-23 14:20:25 +00:00
Przemyslaw Czerpak
9737bbea64 2010-03-22 14:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/wafunc.c
    ! added protection against possible GPF when wrong array with field
      names is passed to __dbTrans() or relative functions
2010-03-22 13:23:18 +00:00
Przemyslaw Czerpak
5bba5ab926 2010-03-22 12:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
    + added HB_SIZE_MAX macro

  * harbour/src/vm/hvm.c
  * harbour/src/vm/arrays.c
    * use HB_SIZE_MAX instead of ULONG_MAX
2010-03-22 11:54:48 +00:00
Xavi
3bc818f6e4 2010-03-21 20:30 UTC+0100 Xavi (jarabal/at/gmail.com)
* harbour/src/rtl/teditor.prg
    ! Fixing MemoEdit parameter calculation: nTextBuffRow, nWindowColumn.

      Procedure Main()
         Cls
         // Put 5 in the 5 position and next BS to change.
         ? MemoEdit( "123",,, MaxRow(), MaxCol(),,,,,, 5 )
         Wait
2010-03-21 19:32:50 +00:00
Przemyslaw Czerpak
754d04a1f2 2010-03-21 20:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/macro/macro.y
    + added support for
         <alias> -> &( <exp> )
      in macrocompiler

  * harbour/src/macro/macro.yyc
    * regenerated for new grammar rules
2010-03-21 19:01:46 +00:00
Viktor Szakats
ed44af9f17 2010-03-19 14:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbverdsp.c
    * Deleted an empty line in build information.

  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
  * contrib/gtwvg/wvgcore.c
    - Deleted local (and unmaintained) hacks to make OLE work.
    * .c source changed to use hbwinole.h instead.

  * contrib/gtwvg/wvgcore.c
    ! Fixed to build properly in mingw C++ mode.
      (build errors found with mingw64 4.5.0)
2010-03-19 13:11:59 +00:00
Przemyslaw Czerpak
ceed1483be 2010-03-18 16:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbzlib.c
  * harbour/contrib/hbbzip2/hbbzip2.c
    ! fixed typo (reverted return value) in recent modification
2010-03-18 15:13:05 +00:00
Przemyslaw Czerpak
40e7f5faf9 2010-03-18 14:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/axcore.c
    * use hb_parstr_u16() instead of hb_mbtowc(hb_parc(n))

  * harbour/src/rtl/hbzlib.c
    * modified HB_ZUNCOMPRESSLEN(), current syntax is:
         HB_ZUNCOMPRESSLEN( <cCompressedData>, [<@nResult>] )
               -> <nUnCompressedDataLen> or -1 on error

  * harbour/contrib/hbbzip2/hbbzip2.c
    * modified HB_BZ2_UNCOMPRESSLEN(), current syntax is:
         HB_BZ2_UNCOMPRESSLEN( <cCompressedData>, [<@nResult>] )
               -> <nUnCompressedDataLen> or -1 on error
2010-03-18 13:10:17 +00:00
Przemyslaw Czerpak
1ec98455d8 2010-03-15 14:04 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbfcdx/dbfcdx1.c
    ! fixed bad copy and past typo which could cause internal error when
      new index using existing order (subindex) was created without ADDITIVE
      clause. Bug reported by Mindaugas - many thanks for the information.
2010-03-15 13:04:33 +00:00
Viktor Szakats
29d0c87141 2010-03-15 09:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/ctnet.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbnf/getenvrn.c
    ! Fixed to disable some functionality on all WinCE platforms.
      These were WinCE API functions wrongly declared in
      mingwarm/poccarm headers. (thus causing link-time errors
      for final apps trying to use these functions)

  * contrib/hbwin/win_dlg.c
    ! Enabled more functionality for WinCE. mingwarm builds
      will probably crash due to buggy commdlg.h header.

  * src/vm/fm.c
    ! Fixed to redefine ABORT for all wce/msvcarm targets.

  * utils/hbmk2/hbmk2.prg
    ! Minor typo in recently added help item.

  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/win_dlg.c
  * contrib/hbodbc/odbc.c
  * contrib/rddsql/sddodbc/sddodbc.c
    ! Fixed to compile with -DWIN32_LEAN_AND_MEAN.
2010-03-15 09:00:55 +00:00
Viktor Szakats
e97a7501d0 2010-03-14 21:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/fm.c
  * src/common/hbwince.c
  * include/hbwince.h
  * include/hbthread.h
  * contrib/hbct/ctnet.c
  * contrib/hbodbc/Makefile
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbnf/getenvrn.c
  * contrib/rddsql/sddodbc/Makefile
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_dlg.c
  * config/wce/msvcarm.mk
    + Added support for msvcarm 2008.

  * utils/hbmk2/hbmk2.prg
    ! Synced msvcarm dynlib creatino options with Harbour build.
2010-03-14 20:32:31 +00:00
Viktor Szakats
f56b5a7205 2010-03-14 01:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extrap.c
    ! Fixed to do UNICODE to "ANSI" conversion in module listing 
      code for WinCE platform. It'd be nice if a WinCE user 
      could test it.

  * src/rtl/filesys.c
    ! Silenced warning on newer mingwarm compilers about 
      unused function.
2010-03-14 00:41:14 +00:00
Viktor Szakats
0cae7b71e1 2010-03-13 15:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
  * utils/hbmk2/hbmk2.prg
    + Added autodetection for Equation Solution mingw64 builds.

  * INSTALL
    + Added link to Equation Solution mingw releases.

  * src/vm/itemapi.c
    * Formatting.
2010-03-13 14:07:12 +00:00
Przemyslaw Czerpak
cac5f29b2a 2010-03-13 09:18 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvmall.c
    * minor cleanup
2010-03-13 08:18:32 +00:00
Przemyslaw Czerpak
12d1e1cc88 2010-03-13 09:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
  * harbour/src/vm/estack.c
  * harbour/src/vm/hvmall.c
    * moved static HVM stack declarations from header file to .c files
2010-03-13 08:03:03 +00:00
Viktor Szakats
145b21c110 2010-03-13 03:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/Makefile
  * src/vm/vmmt/Makefile
    ! Fixed GUI mode not working for mingw64 targets.
      [TOMERGE 2.0]
2010-03-13 02:19:10 +00:00
Viktor Szakats
16242fc4b7 2010-03-13 03:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    ! Reverted RegisterClassEx() to RegisterClass() for WinCE.
      Thanks for the information.

  * src/rtl/gtdos/gtdos.c
  * src/rtl/gtwvt/gtwvt.c
  * src/rtl/filesys.c
  * src/rdd/dbcmd.c
  * src/rdd/dbcmd53.c
  * src/rdd/wafunc.c
  * src/rdd/workarea.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/rdd/dbffpt/dbffpt1.c
  * src/rdd/ordwldsk.c
  * src/rdd/hbsix/sxord.c
  * src/rdd/hbsix/sxsem.c
  * src/rdd/ordcount.c
  * contrib/hbtpathy/tpwin.c
  * contrib/rddbmcdx/bmdbfcdx.c
  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvgwing.c
  * contrib/rddads/adsfunc.c
  * contrib/hbwin/axcore.c
  * contrib/hbwin/mapi.c
  * contrib/hbwin/win_dlg.c
    * 'memset( &obj, 0, sizeof( TYPE_OF_OBJ ) )'
      changed to:
      'memset( &obj, 0, sizeof( obj ) )'
      (same meaning but less room for mistake)
    * Variable scope cleanups in few places.

  * bin/hb-mkimp.bat
  * src/vm/itemapi.c
    * Formatting.
2010-03-13 02:07:35 +00:00
Przemyslaw Czerpak
d6d7154456 2010-03-13 01:25 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
  * harbour/src/vm/estack.c
    % declare hb_stack TLS pointer in MT HVM as static when HVM is compiled
      with HB_HVM_ALL=yes

  * harbour/src/compiler/hbcomp.c
    ! added protection against multiple freeing the same expression on
      some errors in compiled code. It's necessary after removing reference
      counters which made such protection indirectly. It fixed bug reported
      by Teo.

  * harbour/include/hbsetup.h
    ! check GCC version for hot and cold function attribute macros
2010-03-13 00:26:30 +00:00
Viktor Szakats
d409e83286 2010-03-12 20:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbverdsp.c
    + Show '(UNICODE)' in built options for UNICODE builds.
2010-03-12 19:31:06 +00:00
Viktor Szakats
301c5487dc 2010-03-12 15:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
    ! Fixed non-UNICODE code after recent get/set drive changes.
    % Minor opt.
2010-03-12 15:00:19 +00:00
Viktor Szakats
a783c4648f 2010-03-12 00:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
    ! Fixed fs_win_get_drive() to return zero (instead of -1) 
      when drive letter wasn't returned by Windows API.
      (it's not clear what is the proper error behavior here)
    ! Fixed fs_win_set_drive() to apply upper limit on input 
      parameter.

  * contrib/rddsql/sddfb/sddfb.c
    * Minor formatting.
2010-03-11 23:40:40 +00:00
Viktor Szakats
4976f50a70 2010-03-11 22:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/fssize.c
    + Using Harbour filefind API on win platforms (just
      like for wce) instead of using stat()/stat64() C RTL
      calls.
2010-03-11 21:23:19 +00:00
Viktor Szakats
f939903e37 2010-03-11 21:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
    + Using direct Windows API instead of compiler specific
      C RTL functions to get/set current disk.
    ; Please review.
    - Deleted one Windows TODO: setmode() to be convered to
      direct Windows API call. This translation is done in
      C RTL, so Windows API cannot be used.
    ; There is no remaining non-standard (compiler specific)
      C RTL function usage on the Windows platform AFAICT.

  * contrib/hbmysql/tmysql.prg
    * Formatting.
2010-03-11 20:20:13 +00:00
Viktor Szakats
575ece20a6 2010-03-11 18:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbtoken.c
    * Marked function below with HB_LEGACY_LEVEL3:
        __STRTOKEN():      change it to equivalent HB_TOKENGET()
        __STRTKPTR():      change it to equivalent HB_TOKENPTR()
        __STRTOKENCOUNT(): change it to equivalent HB_TOKENCOUNT()

  * contrib/hbmysql/tmysql.prg
    + Added ::nPort variable to TMYSQLSERVER class.
    * Formatting.

  * contrib/hbmysql/tmysql.prg
  * examples/hbmsql/tmsql.prg
    ! __STRTOKEN() -> HB_TOKENGET()

  * contrib/hbmysql/tsqlbrw.prg
    * Formatting.
2010-03-11 17:29:38 +00:00
Viktor Szakats
af2d26c015 2010-03-11 11:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/estack.c
  * include/hbstack.h
    % hb_stackDispLocal() internal debug function made static, 
      and guarded with HB_VM_DEBUG (pls change it to something 
      better if there is one), so it's not included in every 
      regular build and final executable.
2010-03-11 10:42:09 +00:00
Przemyslaw Czerpak
868820a931 2010-03-10 12:26 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/hbmain.c
  * harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyc
    * use hb_compGetFuncID() to detect reserved function names

  * harbour/include/hbapi.h
  * harbour/src/common/Makefile
  - harbour/src/common/reserved.c
    - removed not longer used hb_compReservedName() function
2010-03-10 11:26:26 +00:00
Przemyslaw Czerpak
c6a878051b 2010-03-10 10:04 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapirdd.h
  * harbour/src/rdd/wacore.c
    + added hb_rddDetachedList() C function

  * harbour/contrib/hbxpp/Makefile
  + harbour/contrib/hbxpp/dmlb.ch
  + harbour/contrib/hbxpp/wafuncx.c
    + added xBase++ compatible PRG function:
         WorkSpaceList( [<nWorkSpace>] ) -> <aAliasName>
2010-03-10 09:04:23 +00:00
Przemyslaw Czerpak
db6d0e631e 2010-03-09 23:36 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcomp.h
  * harbour/include/hbcompdf.h
  * harbour/include/hbexprop.h
  * harbour/include/hbexpra.c
  * harbour/include/hbexprb.c
  * harbour/src/common/expropt1.c
  * harbour/src/compiler/hbcomp.c
  * harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyc
  * harbour/src/macro/macro.y
  * harbour/src/macro/macro.yyc
  * harbour/src/macro/macro.yyh
    + added new type of expression: SETGET
    % eliminated reference counter in expressions
      (this code was never fully safe because expression optimizer was not
       respecting multiple references)
    % replaced all HB_COMP_EXPR_DELETE() macro usage with HB_COMP_EXPR_FREE()
      and deleted HB_COMP_EXPR_DELETE() macro
    - removed not longer used hb_compExprClone()
    Above modifications reduce a little bit total memory consumed by
    compiler and macrocompiler giving also some minor speed improvement.

  * harbour/ChangeLog
    * marked TODO for above modification as DONE.
2010-03-09 22:37:50 +00:00
Viktor Szakats
0d3d65531c 2010-03-09 14:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbini.prg
    * Deleted several unnecessary empty lines at EOF.

  * INSTALL
    * Minor.

  * include/dbinfo.ch
    * Formatting.

  + include/hb.ch
  * include/Makefile
    + Added Harbour header which #includes commonly used in
      applications.
      It also enables us to easily extend standard set of macros
      and constants.

  * contrib/hbide/idesaveload.prg
    * "hbide.set" -> "hbidewnd.ini". At least it uses standard
      extension. Still wrong solution and a remaining TOFIX.
2010-03-09 13:32:05 +00:00
Przemyslaw Czerpak
cd173dc1a7 2010-03-08 19:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/macro.c
    ! fixed buffer overflow caused by wrong pointer type
      ( 'HB_ULONG*' instead of 'int *' )

  * harbour/src/vm/set.c
    ! fixed bug in MT mode - when new thread was created then _SET_PATH
      setting was not cloned but wrongly shared with parent thread - many
      thanks to Rossine for the information
2010-03-08 18:33:49 +00:00
Viktor Szakats
026fd623ae 2010-03-08 16:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/diskspac.c
  * src/rtl/disksphb.c
  * contrib/hbwin/wapi_winbase.c
    + Added trick to make dynamic calls to WIDE API functions via
      UNICOWS.DLL in UNICODE (default) builds when running on Win9x
      systems. This fixes DISKSPACE(), HB_DISKSPACE() and
      WAPI_GETLONGPATHNAME() in this scenario. (IOW this patch
      makes these calls work in UNICOWS situations)
2010-03-08 15:15:06 +00:00
Viktor Szakats
76272762cd 2010-03-08 15:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbsocket.c
  * bin/hb-mkdyn.sh
  * bin/hb-func.sh
  * utils/hbmk2/hbmk2.prg
  * config/win/global.mk
    + Restored to work with ws2_32.dll. (instead of wsock32)

  * INSTALL
    + Added information on Win9x/ME support.
2010-03-08 14:40:49 +00:00
Viktor Szakats
ffc82a2bfd 2010-03-08 12:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/diskspac.c
  * src/rtl/disksphb.c
    + Added comment about the reason why GetDiskFreeSpaceEx()
      is called dynamically (win95 first edition support).
    + Added support for HB_NO_WIN95 build-time flag to drop
      Win95 compatibility. Unfortunately current dynamic load
      trick fails with UNICOWS, returning zero for disk
      space related calls in this scenario. If we drop the
      dynamic call, we lose support for Win95 first edition,
      but these functions will work properly on Win95b/98/ME
      in return. I'm still thinking about it, but maybe it's
      better to drop Win95 first edition support altogether
      and make newer versions work properly. Any opinions?

  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/wapi_wingdi_font.c
    ! Fixed to use WIDE/ANSI versions of dynamically executed
      functions according to UNICODE setting.

  * bin/hb-mkdyn.sh
  * bin/hb-func.sh
  * utils/hbmk2/hbmk2.prg
  * config/win/global.mk
    ! Stepping back to link against wsock32 instead of ws2_32.
      The only reason is Win95 (even OSR2) compatibility.
      This is a little bit less efficient unfortunately.

  * src/rtl/hbsocket.c
    ! Fixed to use WSAioctl via dynamic call for non WinCE
      builds, and if HB_NO_WIN95 macro is no defined.
      WSAioctl is present in ws2_32.dll, which .dll isn't
      available on Win95.
    ; Not tested since I don't know how to test it, pls
      review and test.
    ; NOTE: There seem to exist a package which add ws2_32 
            support for Win95, but I couldn't find it, if 
            someone has, we can drop this ugly trick and 
            simply document the requirement.

  * src/rtl/gtwin/gtwin.c
    * Formatting.
2010-03-08 11:32:16 +00:00
Viktor Szakats
89b7af1d06 2010-03-08 03:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    ! Added workaround for MS confirmed (but forever unfixed)
      UNICOWS ReadConsoleInput() bug, which caused reported
      dead keyboard when running UNICODE+UNICOWS apps on Win9x.
    % Optimized to cache Win9x detection flag.
2010-03-08 02:29:23 +00:00
Viktor Szakats
895f95fe45 2010-03-08 02:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    ! Minor formattting.
2010-03-08 01:47:35 +00:00
Viktor Szakats
feb9517ee2 2010-03-08 00:09 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * src/common/hbver.c
    + Added hb_iswin2k() low-level function to detect
      if running under Windows 2000 or newer.

  * include/hbextern.ch
  * src/rtl/version.c
    + Added HB_OSISWIN2K() .prg level function.

  * src/rtl/gtwin/gtwin.c
  * src/rtl/gtwvt/gtwvt.c
  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * examples/gtwvw/gtwvw.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
    % Changed to use hb_iswin*() API instead of implementing
      version detection locally.

  * contrib/hbmysql/mysql.c
  * contrib/hbpgsql/postgres.c
    + Added my partial copyright.

  * contrib/hbpgsql/tests/tstpgrdd.prg
    * Formatting.

  * contrib/hbpgsql/postgres.c
    ! Fixed to define all .prg level functions regardless
      of pgsql lib it's built against. They return
      permanent failure in this case.
    ! Fixed PQCREATETRACE() to return NULL pointer instead
      of NIL for static builds.
    ! PQFREECANCEL() marked with HB_LEGACY_LEVEL3.

  * contrib/hbwin/win_os.prg
    + Using HB_OSISWIN2K() core API.

  * contrib/hbide/ideprojmanager.prg
    * Minor alignment.
2010-03-07 23:11:09 +00:00
Viktor Szakats
0ced59cdc6 2010-03-07 13:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/encmthd.c
  * contrib/hbtip/encurl.prg
  * contrib/hbtip/encb64.prg
    ! Cleaned this quite strange and dangerous hack which made the
      exact nature of the logic fully hidden for anyone expecting
      regular programming techniques. I even reimplemented QP
      encoding not knowing about it.
      Now the class/function interface is completely standard
      without any hidden interdependencies and internal logic
      to access class vars from C level function and mapping C
      level functions as methods.
      Now it's possible to replace these TIP specific encoder/decoder
      functions with core ones, or move these ones to core.
      INCOMPATIBLE: Old function names have been changed from
         TIPENCODER*_[DECODE|ENCODE]() to __TIP_*_[ENCODE|DECODE]().
    ; TOFIX: Old C implementation of QP encoding/decoding doesn't
             seem to work.
    ; TODO: Try eliminating redundancy in base64 encoding/decoding
            between hbtip and core.

  * contrib/hbtip/cgi.prg
  * contrib/hbtip/url.prg
  * contrib/hbtip/httpcli.prg
    * Changed to use new internal function names for encoding/decoding.

  * src/rdd/dbf1.c
    * Minor formatting.
2010-03-07 12:09:47 +00:00
Przemyslaw Czerpak
566cb5730c 2010-03-07 12:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbf1.c
    * removed unnecessary function call
2010-03-07 11:25:25 +00:00
Viktor Szakats
b9f7254c8d 2010-03-07 11:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/hvm.c
    ! Adjustment to symEval declaration after last change.

  * contrib/hbmysql/tmysql.prg
    ! Fixed CLIPVALUE2SQL() to return NULL for NIL
      values. Should fix sf.bet bug #2964744.
    % Optimized CLIPVALUE2SQL().

  * contrib/xhb/tframe.prg
    ! Fixed HB_ENUMINDEX() to :__enumIndex().
    % Minor optimization.
    * Some formatting.

  * contrib/xhb/hblog.prg
    ! Fixed HB_ENUMINDEX() to :__enumIndex().

  * contrib/hbtip/sendmail.prg
    ! Fixed mime type spec: "text/plain;filename=" -> "text/plain; name="

  ; Latter two suggested by Lorenzo.
2010-03-07 10:48:30 +00:00
Viktor Szakats
a682aa5d86 2010-03-07 04:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/hvm.c
  * include/hbapi.h
    * Marked hb_synEval public symbol with HB_LEGACY_LEVEL3

  * src/rtl/gtwin/gtwin.c
    ! Copyright header update.

  * src/rtl/objfunc.prg
  * include/hboo.ch
    * Minor cleanup and formatting.

  * INSTALL
    * Minor refinement in wording.

  * contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/idedocks.prg
    ! "Codec" -> "Encoding" in a few more places.
    ! "..." added to some more menu items.
    ! Double "(.ext)" text in filetypes in open project dialog.
    ; Please review me.
2010-03-07 03:35:31 +00:00
Przemyslaw Czerpak
e80a2ad13d 2010-03-06 23:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/evalhb.c
  * harbour/src/vm/asort.c
  * harbour/src/vm/hvm.c
  * harbour/src/vm/arrays.c
  * harbour/src/vm/thread.c
  * harbour/src/vm/eval.c
  * harbour/src/vm/classes.c
  * harbour/src/rtl/do.c
  * harbour/contrib/gtwvg/wvgwing.c
    * use hb_vmPushEvalSym() instead of hb_vmPushSymbol( &hb_symEval )
      Please try to eliminate direct hb_symEval usage from 3-rd party code.
2010-03-06 22:44:51 +00:00