Commit Graph

634 Commits

Author SHA1 Message Date
Viktor Szakats
b83ec8bb29 2010-07-02 15:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/pp/ppcore.c
  * include/hbpp.h
    + Added #pragma __binarystreaminclude. Works the same as
      other stream include pragmas, but here it the size limit
      is ~16MB and it accepts binary files for input.
    ; TODO: The encoding now contains high ascii chars which
            is unsafe as it can be converted by editors thus
            corrupting the embedded binary.

  * contrib/hbqt/hbmk2_plugin_qt.prg
    % Optimized .qrc to .prg converter to not split the lines.
      Harbour is able to compile very long source lines, pbly 
      todays patch from Przemek was needed for that. Nice!
2010-07-02 13:04:35 +00:00
Viktor Szakats
dd3e0a139b 2010-07-02 14:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbmk2_plugin_qt.prg
    + Activated new resource binary generator code, which
      doesn't require qt headers anymore.

  * contrib/hbqt/hbqt.hbc
    - Deleted qt dependency. Not needed anymore.

  * contrib/Makefile
  * contrib/makefile.prg
    + Some contrib libs will now be built using new hbmk2 based
      method as an experiment.
    + hbnetiosrv will now be built as well using hbmk2, also as
      an experiment.

  * contrib/hbide/hbide.prg
    + Loading resources manually using new QResource method
      implemented by Bacco.

  * utils/hbmk2/hbmk2.prg
    + Implemented support for #import Objective C specific
      directive when detecting header dependencies.
    * .m extension is now compiled with C compiler (not C++)
    - Deleted 'experimental' status from plugin related options.

  ; Patches from Bacco:

  * contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/qth/QResource.qth
  * contrib/hbqt/qtcore/TQResource.prg
  * contrib/hbqt/qtcore/QResource.cpp
  * contrib/hbqt/doc/en/class_qresource.txt
  * contrib/hbqt/hbqt.h
    + Added QResource:registerResource()/QResource:unregisterResource()
    * With some minor modification from me (unsigned char -> uchar,
      some formatting)

  ; Patches from Tamas Tevesz:

  * src/rtl/memvarhb.prg
  * src/rtl/hbcom.c
    * Tweaks for prev patch: formatting and .hbv type description.

  ; Thanks to both contributors!
2010-07-02 12:36:21 +00:00
Przemyslaw Czerpak
b87112ecde 2010-07-02 14:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/src/pp/ppcore.c
  * harbour/src/pp/hbpp.c
  * harbour/src/pp/pplib.c
  * harbour/src/compiler/complex.c
    * eliminated HB_USHORT limit for maximum token size
    * changed prefix of HB_SIZE numeric values from 'ul' to 'n'

  * harbour/contrib/rddads/adsfunc.c
    + added wrapper to AdsGetMemoDataType() function
2010-07-02 12:21:18 +00:00
Viktor Szakats
5502de48eb 2010-07-02 10:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    * Revised and updated status for pending TODOs TOFIXes of
      this year.

  * contrib/hbcurl/hbcurl.c
  * contrib/hbcurl/hbcurl.ch
    + Added support for all new libcurl features introduced in
      7.19.4, 7.20.0, 7.21.0
    * Changed some recently added constants to be in sync libcurl 
      values.

  * contrib/hbwin/Makefile
  * contrib/hbwin/hbwin.hbp
  + contrib/hbwin/wapi_winnetwk.c
    + Added WAPI_WNETGETLASTERROR()

  * contrib/hbct/ctnet.c
    * NETREDIR(): Deleted Windows specific 4th parameter extension
      which activated debug-style features (introduced in xhb)
      based on WNetGetLastError() call. Such call was now added
      separately to hbwin.

  * contrib/hbide/hbide.prg
    ! Deleted hard-coded reference for specific QT version.
      This should be solved differently.
    ; TOFIX: BTW the whole notion of having a special build
             for a given distro is wrong. It should rather
             do autodetection in all builds.

  ; Patches from Tamas Tevesz:

  * src/rtl/memvarhb.prg
    * Adjusted information on magic byte
    + Version number change to 1.

  * src/rtl/hbcom.c
    ! Fix for linux/watcom link problem.

  * bin/postinst.sh
    * Ajustment for some undisclosed but probably weird system :)
2010-07-02 08:19:59 +00:00
Viktor Szakats
dd03d682f3 2010-07-01 17:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/memvarhb.prg
    + Added file signature and version no. to .hbv files.
    ; Patch by Tamas Tevesz with a few modifications:
      - added high byte at 1st pos is signature
      - deleted RTEs in case of invalid file content on load
        (to mimic original __MVRESTORE() which is also silent)
      - minor optimization on signature checking.
    ; INCOMPATIBLE: The file format has changed so you won't be 
                    able to interchange it with previous 
                    versions of Harbour. Anyhow it's very new 
                    format, so this shouldn't affect many users.

  * utils/hbmk2/hbmk2.prg
  * utils/hbrun/hbrun.prg
    + Shows .hbs as support input file format (where applicable)
    ! Little fix in displaying options w/o description on help
      screen.

  * utils/hbrun/hbrun.prg
    + Added clipboard paste support with Alt+V key.

  * contrib/hbide/hbide.prg
    - Temply disabled reference to new-style embedded resources.
2010-07-01 15:35:07 +00:00
Viktor Szakats
2c0cb9109f 2010-07-01 10:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtsln/kbsln.c
    * public variable hb_DeadKey made static and renamed to
      s_iDeadKey. Pls shout if this is needed to be kept public, 
      but even in that case it should get a new name.
    * static hb_DeadKeyEnvName renamed to s_DeadKeyEnvName
    * Changed HRBNATIONDEADKEY to HB_GTSLN_NATIONDEADKEY to better 
      fit into Harbour control envvar names.
      Pls shout if this break lots of configurations.
    * Whitespace formatting.
2010-07-01 08:06:52 +00:00
Viktor Szakats
f90c989f05 2010-07-01 09:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbmk2_plugin_qt.prg
    + Added .qrc to .prg generator logic.
    ! Fixed .qrc to .c generator leaving last few bytes off.
    % Optimized .qrc to .c generator output to have only one
      line.

  * utils/hbrun/hbrun.prg
    + Internal history length changed to 128 (from 32).
    - Deleted extra limit on number of saved history items.
    % Minor optimization to history saving.

  * src/rtl/gtsln/gtsln.c
    * Whitespace formatting.
2010-07-01 07:58:22 +00:00
Przemyslaw Czerpak
c42f87ca61 2010-07-01 02:31 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyh
  * harbour/src/compiler/harbour.yyc
    * increase the maximum bison stack size limit
      from 10000 items to 100000

  * harbour/src/rtl/gtsln/kbsln.c
    + added support for HB_K_RESIZE

  * harbour/contrib/hbwin/axcore.c
  * harbour/contrib/hbwin/hbolesrv.c
    * do not pass message ID (DISPID) as first parameter of codeblock
      or function taken from hash array indexed by DISPIDs.
      This modification restores old format, i.e. the one expected
      by GTWVG code.

  * harbour/contrib/hbwin/tests/olesrv1.prg
    ! comment
2010-07-01 00:31:49 +00:00
Viktor Szakats
f27ad5cdf2 2010-07-01 01:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtcrs/gtcrs.c
    + GTCRS will now generate HB_K_RESIZE Harbour INKEY() events
      if the terminal window is resized.
      Thanks for Tamas Tevesz for the suggestion + patch.
    * Whitespace formatting.
2010-06-30 23:04:19 +00:00
Viktor Szakats
81947ae787 2010-06-30 23:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gttrm/gttrm.c
    + GTTRM will now generate HB_K_RESIZE Harbour INKEY() events
      if the terminal window is resized.

  * utils/hbrun/hbrun.prg
    + Will now automatically resize the UI if the window is
      resized (on GTs which support this: GTTRM, GTWVT, GTXWC)
    + Now shows little red 'o' sign if history recording is enabled (default)
    + Set resize mode to 'rows' (only meaningful if using GTs
      that support it).
    % hbrun_Info() optimized.
2010-06-30 21:58:38 +00:00
Viktor Szakats
26ca5da0db 2010-06-30 19:17 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extend.c
  * include/hbapi.h
    + Added hb_retclen_const() to return constant byte arrays.

  * contrib/hbqt/hbmk2_plugin_qt.prg
  * contrib/hbide/hbide.prg
    + Implemented pure Harbour .c QT resource support.
      Commented, waiting for HBQT API to load resources
      from byte stream.
      This method will create a pure .c source files
      from binary QT resource, so it doesn't require
      QT headers to be present.

  * contrib/hbqt/hbmk2_plugin_qt.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideskeletons.prg
    * Changed 'ui' prefix to 'hbqtui_' for compiled .ui
      file entry function names.

  * utils/hbmk2/hbmk2.prg
    + Added hbmk2_FNameToSymbol() plugin function to convert
      filename to Harbour symbol name.

  * contrib/hbide/hbide.env
    - Deleted QT setup from compilers where QT is not supported.
2010-06-30 17:18:38 +00:00
Mindaugas Kavaliauskas
8d2c665f98 2010-06-28 17:22 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/include/hbcom.ch
  * harbour/rtl/hbcom.c
    * implemented new error code HB_COM_ALREADYOPEN in hb_comOpen()
  * harbour/contrib/hbct/ctcom1.c
    * changed COM_OPEN() behaviour to be compatible with HBCOM API 
      and original CT behaviour
2010-06-28 14:23:11 +00:00
Viktor Szakats
aacd4f0ecb 2010-06-26 10:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    + SETMODE() will now support automatic resizing of font to make
      requested dimensions fit on the screen, when HB_GTI_RESIZABLE
      is enabled. (Previously in such case SETMODE() returned .F.)
      Please test/review it.

  * examples/rddado/tests/test.mdb
    ! Updated with newly generated one. Seems this file "rots" while
      left sitting there on SVN, this is probably the 3rd time I'm
      doing this, just to make it open. [ or maybe the file format
      required by ADO changes constantly with OS updates/upgrades? ]

  * examples/rddado/tests/access1.prg
    ! Deleted debug code leftover.
    * Minor cleanups

  * examples/rddado/tests/access2.prg
    + Added date column
    ! Fixed LOCATE command filter argument. It was not working
      since the initial committer added it, because the filter
      string used Harbour syntax, while it requires ADO (SQL-like)
      syntax. RDDADO will make a very basic attempt to help in
      that conversion, but f.e. aliased field names (and many
      others) will break it. So: use ADO filter syntax until
      this gets properly resolved.
    * Minor cleanups

  * examples/rddado/rddado.hbc
    ! Added missing libpath option.

  * utils/hbmk2/hbmk2.prg
    + Added '-quiet-' option to turn off -quiet switch.
      (note that -quiet will also force off -info, so after
      -quiet- you also want to use a -info option to reverse
      that)
2010-06-26 08:32:23 +00:00
Viktor Szakats
c1ae7816e1 2010-06-25 18:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/achoice.prg
    ! ACHOICE(): Fixed two navigation bugs (misplacement and RTE) 
      reported by Abe Buchinger.
      Many thanks to Jerry Finuliar for the patches.
2010-06-25 16:12:13 +00:00
Viktor Szakats
0420946df1 2010-06-25 02:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/minizip/Makefile
  * external/zlib/Makefile
  * external/sqlite3/Makefile
  * external/png/Makefile
  * external/jpeg/Makefile
  * external/bzip2/Makefile
  * external/libhpdf/Makefile
  * external/pcre/Makefile
    + Applied patch by Tamas Tevesz, adding metadata for patchup tool.
      (also completing pending TODO)

  * external/patchup.prg
    + Enabled -w3 option via pragma
    ! Fixed one -w3 warnings
    ! Fixed to not stop due to missing .dif file in -rediff mode.
    ! Applied fix patch by Tamas Tevesz.

  * src/rtl/inkeyapi.c
    * Formatting.
2010-06-25 00:33:18 +00:00
Viktor Szakats
f751b21d31 2010-06-25 00:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + Added two new abstract types: HB_AREANO, HB_FIELDNO

  * src/rdd/wacore.c
  * src/rdd/dbcmd.c
  * src/rdd/dbcmd53.c
  * src/rdd/wafunc.c
    + Using above abstract types as casts to pacify long time 
      msvc warnings.
    + Using HB_USHORT cast to pacify msvc warnings in hb_rddList()
      and hb_rddRegister() (shouldn't these have 'int' parameters?)

  * contrib/xhb/xhb.hbp
    * Synced with actual file list.
2010-06-24 22:23:13 +00:00
Przemyslaw Czerpak
8434f5ab14 2010-06-24 23:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtinfo.ch
  * harbour/include/hbgtcore.h
  * harbour/src/rtl/hbgtcore.c
    + added HB_GTI_INKEYFILTER which allows to set/get codeblock used to
      filter inkey key codes. This codeblock receives as 1-st parameter
      actually processed inside INKEY() function key code. It should return
      final inkey code (it can be the same or 0 if key should be ignored.
      I.e. this code change key 'a' to 'B' and blocks 'c':

         hb_gtInfo( HB_GTI_INKEYFILTER, { | nKey |
                                          SWITCH nKey
                                             CASE ASC( 'a' )
                                                RETURN ASC( 'B' )
                                             CASE ASC( 'c' )
                                                RETURN '0'
                                          ENDSWITCH
                                          RETURN nKey
                                       } )

    + added HB_GTI_INKEYREAD which allows to set/get codeblock executed
      just before INKEY() reads key code from the GT typeahead buffer.
      If it returns non 0 numeric value then this value is returned instead
      as inkey code. Otherwise standard inkey procedure is activated and
      key code is read from the GT typeahead buffer.

  * harbour/include/hbextern.ch
  * harbour/src/rtl/inkey.c
    - removed HB_INKEYSETPREBLOCK() and HB_INKEYSETPOSTBLOCK() functions

  * harbour/contrib/xhb/Makefile
  * harbour/contrib/xhb/xhbgt.c
  + harbour/contrib/xhb/xhbinkey.prg
  * harbour/contrib/xhb/hbcompat.ch
    * updated emulation of xHarbour hb_SetInkeyBeforeBlock() and
      hb_SetInkeyAfterBlock() functions to use new HB_GTI_* functionality.
      Incompatibility warning!
      In Harbour timeout value passed to inkey() is correctly respected
      and not reset internally on each call to inkey after block.
      If inkey before block returns non 0 numeric value then it's not
      ignored but returned as INKEY() function result without touching
      GT typeahead buffer.
2010-06-24 21:21:48 +00:00
Viktor Szakats
73db2d44f1 2010-06-24 18:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/inkey.c
  * include/hbextern.ch
    + Enabled .prg level control function for pre/post INKEY() block
      with names below:
         HB_INKEYSETPREBLOCK([<bBlock>]) -> <bOldBlock>
         HB_INKEYSETPOSTBLOCK([<bBlock>]) -> <bOldBlock>

  * contrib/xhb/xhbgt.c
  * contrib/xhb/hbcompat.ch
    + Added translations for just enabled HB_INKEYSET*() functions
      to/from xhb function equivalents:
         HB_INKEYSETPREBLOCK() <-> HB_SETINKEYBEFOREBLOCK()
         HB_INKEYSETPOSTBLOCK() <-> HB_SETINKEYAFTERBLOCK()
2010-06-24 16:32:34 +00:00
Viktor Szakats
b99a44d190 2010-06-23 19:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/runner.c
    + Module name will now be filled with the .hrb filename if known, 
      and default 'pcode.hrb' will only be used if running direct 
      binary .hrb stream. This means that also PROCFILE() will 
      return usable results. (f.e. in script run via hbrun)

  * contrib/hbmisc/hbeditc.c
    % int -> char. Dropped some casts.
2010-06-23 17:09:42 +00:00
Viktor Szakats
3d52caf679 2010-06-23 13:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/runner.c
    * Changed to use hex notation instead of octal in recent change.
      (see: 2010-02-20 01:03 UTC+0100, 2009-06-05 20:59 UTC+0200, 
      2008-11-09 11:48 UTC+0100)

  * include/hbdefs.h
    - Deleted HB_RECNO.
2010-06-23 11:03:05 +00:00
Przemyslaw Czerpak
46e9900a91 2010-06-23 12:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbextern.ch
  * harbour/src/vm/runner.c
    + added new PRG function
         HB_HRBSIGNATURE() -> <cSig>
      which returns HRB file signature
    + added internal function hb_hrbCheckSig() to keep HRB file
      signature checking in one place

  * harbour/include/hbextern.ch
  * harbour/src/vm/cmdarg.c
    + added new PRG function
         HB_ARGSHIFT( [<lProgName>] ) -> NIL
      which updates HB_ARG*() parameter list removing the 1-st one
      and replacing it by others. If <lProgName> is .T. then first
      non internal parameter is moved to hb_argv(0) (hb_progname())
      and all next are shifted.

  * harbour/utils/hbrun/hbrun.prg
    + when extension does not allow to recognize file type then check
      passed file signature. If it's HRB file then execute directly
      otherwise use it as PRG script.
      This modification allows to use any names (except the ones using
      known for HBRUN extensions like .hrb amd .dbf) as PRG script names.
    + Call HB_ARGSHIFT(.T.) to strip HBRUN executable file name from
      parameter list when PRG script or HRB file is executed
2010-06-23 10:47:41 +00:00
Viktor Szakats
89ef883626 2010-06-23 11:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + Added new abstract type: HB_RECNO.
      To replace HB_ULONG usage where it means record number.

  * src/vm/hvm.c
  * src/vm/cmdarg.c
  * include/hbapi.h
  * include/hbvm.h
    * HB_ULONG -> HB_U32 for VM flags.
2010-06-23 10:00:00 +00:00
Viktor Szakats
6ff29efe36 2010-06-23 00:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour-win-spec
  * harbour-wce-spec
  * harbour.spec
  * include/hbver.h
  * config/global.mk
    + Changed version number to:
         2.1.0beta2 (from 2.1.0beta1)

  * src/compiler/hbopt.c
    * Formatting.
2010-06-22 22:10:26 +00:00
Viktor Szakats
11c4faee46 2010-06-22 23:17 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/macro/macrolex.c
    * Added casts to pacify long-time msvc warnings.
2010-06-22 21:18:03 +00:00
Viktor Szakats
8935689e6a 2010-06-22 20:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    - Deleted unused/unnecessary Windows type declarations.
2010-06-22 18:04:05 +00:00
Viktor Szakats
dfaad25c46 2010-06-22 17:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbsha2.c
  * src/rtl/hbsha2hm.c
    + Added Win64 support for SHA1 functions.
    ; NOTE: HMAC keys longer than 2^32 bytes are not support 
            (unlike with SHA1), probably not huge limitation.
2010-06-22 15:59:51 +00:00
Viktor Szakats
80e33f6c7f 2010-06-22 17:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbsha2hm.c
  * src/rtl/hbsha2.c
    * Switched to use triplet API instead of the all-in-one calls,
      in preparation for Win64 support.
2010-06-22 15:38:52 +00:00
Viktor Szakats
91a0e2a77e 2010-06-22 17:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbsha1.c
  * src/rtl/hbsha1hm.c
    + Added Win64 support for SHA1 functions.
    ; Please review it.
2010-06-22 15:29:08 +00:00
Viktor Szakats
161c55cf8e 2010-06-22 17:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/macro/macro.yyc
  * src/macro/macro.y
    + Added cast (similar to the one found in compiler .y code) 
      to pacify long time msvc warning.
2010-06-22 15:00:49 +00:00
Viktor Szakats
496ea57dae 2010-06-22 16:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/dynsym.c
  * include/hbapi.h
    * Minimal cleanup: using HB_LONG in place of long, just to make
      this type usage easier to find in the future.

  * src/vm/hvm.c
    + Added cast to pacify long time msvc warning

  * src/vm/fm.c
    + Added pragmas to silence msvc64 warnings in dlmalloc (foreign) code.

  * src/vm/extend.c
    * Formatting.
2010-06-22 14:51:57 +00:00
Przemyslaw Czerpak
f9d684041f 2010-06-22 16:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbcmd.c
    * changed HB_LONG to int in dbSelectArea()
2010-06-22 14:49:36 +00:00
Przemyslaw Czerpak
6b5602c1e9 2010-06-22 14:28 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/thread.c
    * cleaned to use hb_storns() instead of casting to long and hb_stronl()
2010-06-22 12:29:07 +00:00
Viktor Szakats
c17dccbf57 2010-06-22 13:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- src/compiler/genobj32.c
    - Deleted unused source file.
2010-06-22 11:56:46 +00:00
Viktor Szakats
2275a9cd09 2010-06-22 13:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/compiler/complex.c
    ! HB_ULONG -> HB_SIZE in one cast.

  * src/pp/pplib.c
    ! HB_ULONG -> HB_ERRCODE

  * contrib/hbgt/asciisgt.c
    ! HB_ULONG -> HB_MAXUINT
2010-06-22 11:52:11 +00:00
Viktor Szakats
817700c0dc 2010-06-22 13:33 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/fm.c
    ! Replaced 'long' with HB_ISIZ in FM stats code.

  * src/vm/classes.c
    * Replaced 'unsigned long' with HB_ULONG.
2010-06-22 11:34:11 +00:00
Przemyslaw Czerpak
61762c7a5b 2010-06-22 13:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/classes.c
    * use HB_U32 as class flag holder
    * changed HB_ULONG -> HB_SIZE
2010-06-22 11:13:54 +00:00
Viktor Szakats
d5d1e56b33 2010-06-22 11:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/itemapi.c
    % Changed to use hb_itemPutNS() instead of hb_itemPutNInt() to
      push enum offset/value to RTE param.
2010-06-22 09:24:00 +00:00
Przemyslaw Czerpak
6a91dc422d 2010-06-22 11:14 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
    + added HB_VMUINT_MAX macro

  * harbour/src/vm/hvm.c
  * harbour/src/vm/itemapi.c
    % use conditional #if compilation for code which depends on
      HB_SIZE range. It should eliminate dummy code and pacify
      warnings in some compilers.
      NOTE: do not forget to update such #if conditions when we
            switch to signed HB_SIZE type.
2010-06-22 09:14:54 +00:00
Przemyslaw Czerpak
22259e8cfe 2010-06-22 09:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/macro/macro.y
  * harbour/src/macro/macro.yyh
  * harbour/src/macro/macro.yyc
  * harbour/src/macro/macrolex.c
    * changed type of valChar.length from int to HB_SIZE
2010-06-22 07:58:53 +00:00
Viktor Szakats
59a257f1b2 2010-06-22 05:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/estack.c
  * src/vm/debug.c
  * src/vm/hvm.c
  * src/vm/pvalue.c
  * src/vm/arrays.c
  * src/vm/proc.c
  * src/vm/memvars.c
  * src/vm/eval.c
  * src/vm/classes.c
  * include/hbstack.h
  * include/hbapi.h
    + Win64 support for HVM stack and other related internals.
      (HB_ULONG -> HB_SIZE, HB_LONG -> HB_ISIZ, long -> HB_ISIZ)
    + Using size API in debug functions.
    ; TOFIX: These two warnings remain in HVM (not counting dlmalloc):
      ---
      hvm.c(10695) : warning C4244: 'argument' : conversion from 'HB_MAXINT' to 'double', possible loss of data
      macro.c(1315) : warning C4310: cast truncates constant value
      ---

  * src/vm/eval.c
    * HB_FORNEXT() loop value can now be 64-bit values (was 32).

  * src/vm/runner.c
    * Formatting.
2010-06-22 03:39:16 +00:00
Viktor Szakats
00c92c1711 2010-06-22 04:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/common/expropt1.c
  * src/compiler/genc.c
  * src/compiler/gencc.c
  * include/hbexpra.c
    + Use HB_PFS format string for HB_SIZE values.

  * src/common/Makefile
    * Sorted.
2010-06-22 02:49:22 +00:00
Viktor Szakats
0cbaf318af 2010-06-22 04:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbhash.h
  * src/common/hbhash.c
    + hash key changed from HB_ULONG to HB_SIZE.

  * src/rtl/cdpapi.c
  * src/compiler/hbmain.c
    * Added casts to pacify long time msvc warnings.

  * include/hbapi.h
    ! HB_IS_VALID_INDEX() macro fixed to use HB_SIZE.
    * Changed hb_struRefer.offset structure member from HB_LONG to
      HB_ISIZ, fixing one pending Win64 type mismatch.
      The change doesn't modify HB_ITEM size.

  * include/hbapicls.h
    + Added parameter name to one declaration.
2010-06-22 02:36:40 +00:00
Przemyslaw Czerpak
3405220dc9 2010-06-22 02:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/harbour.y
  * harbour/src/compiler/harbour.yyc
  * harbour/src/compiler/harbour.yyh
    * modified to operate on HB_SIZE values
2010-06-22 00:57:23 +00:00
Viktor Szakats
a99675b91d 2010-06-22 01:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbcomp.h
  * include/hbcompdf.h
  * include/hbexpra.c
  * include/hbexprb.c
  * include/hbexprop.h
  * include/hbmacro.h
  * src/common/expropt1.c
  * src/common/expropt2.c
  * src/compiler/genc.c
  * src/compiler/gencc.c
  * src/compiler/harbour.y
  * src/compiler/harbour.yyc
  * src/compiler/hbdbginf.c
  * src/compiler/hbdead.c
  * src/compiler/hbident.c
  * src/compiler/hblbl.c
  * src/compiler/hbmain.c
  * src/compiler/hbopt.c
  * src/compiler/hbpcode.c
  * src/vm/macro.c
    + Adding Win64 support for compiler/macro subsystems.
      * HB_ULONG -> HB_SIZE where applicable.
      * HB_LONG -> HB_ISIZ where applicable.
      * Some now unnecessary cast deleted.
      * hb_compExprAsStringLen() return value changed to HB_SIZE from int.
      * hb_compNOOPfill() 3rd parameter changed to HB_ISIZ from int.
      - Deleted unused hb_compExprMacroListLen().
    ; TOFIX: Use '$<lNumber>$' (or maybe newly added sNumber)
             instead of '$<iNumber>$' in .y code.
             Przemek, what do you think?

  * src/compiler/Makefile
    * C files sorted.

  * src/vm/hvm.c
    ! hb_vmStaticsCount() changed to use HB_SIZE instead of
      HB_ULONG. Fixing pending warnings.

  * include/hbapi.h
    * Changed hb_struEnum.offset structure member from HB_LONG
      to HB_ISIZ, fixing one more pending Win64 type mismatch
      problem. The change doesn't modify HB_ITEM size.
      Please verify me.

  * src/vm/classes.c
    ! Using size API after above change.
    ; QUESTION: In itemapi asEnum.offset is stored using
                hb_itemPutNInt(). Should this be changed to
                hb_itemPutNS()?

  * contrib/hbct/ctstr.c
    + Cleaned away some HB_ULONG casts and using HB_PFS format
      strings instead.

  * contrib/hbct/tab.c
    ! Fixed regression from 2010-06-20 12:34 UTC+0200 Viktor Szakats,
      by deleting now unnecessary casts. Shown by mingw64 4.6.0exp.
      I'd appreciate if someone could check me!!
2010-06-21 23:20:16 +00:00
Viktor Szakats
df2f699897 2010-06-20 18:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
    ! Fixed typo in last commit affecting Windows builds.
2010-06-21 16:58:21 +00:00
Przemyslaw Czerpak
67ed6e53e6 2010-06-21 17:51 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
    ! fixed typo reportyed by Tamas - thanks
2010-06-21 15:51:27 +00:00
Przemyslaw Czerpak
70e0ef5890 2010-06-21 16:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
    * removed HAVE_POSIX_IO and HB_FS_FILE_IO macros
    * replaced !HB_FS_LARGE_OPTIMIZED macro with HB_FS_IO_16BIT
    * cleaned code covered by HB_FS_IO_16BIT
    ! fixed some direct castings between DWORD* and HB_SIZE*
    ! fixed direct casting from BOOL to HB_BOOL

  * harbour/src/rtl/gtcrs/gtcrs.c
  * harbour/src/rtl/cdpapi.c
  * harbour/src/rtl/gtsln/gtsln.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/src/compiler/hbopt.c
  * harbour/src/compiler/gencc.c
  * harbour/contrib/xhb/fparse.c
    * pacified CLANG warnings
2010-06-21 14:47:39 +00:00
Viktor Szakats
da2d18d622 2010-06-20 15:24 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/thread.c
    * Added casts to pacify msvc64 warnings.
      Of some the ones related to pMutex->events I'm unsure of,
      probably it's better to use 'int' instead of HB_ULONG for 
      internal variable in some cases to make it look cleaner, 
      though I assume there was a reason for it, so I left it.
      Please check me.

  * src/vm/classes.c
    * Added casts to pacify msvc64 warnings.
2010-06-21 13:25:29 +00:00
Viktor Szakats
f30ab9479e 2010-06-20 15:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extend.c
    ! Fixed typo in hb_retns().
2010-06-21 13:10:39 +00:00
Viktor Szakats
0c610bcb02 2010-06-20 23:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rdd/dbcmd.c
  * src/rdd/dbcmd53.c
  * src/rdd/hbsix/sxord.c
  * contrib/hbct/screen2.c
  * contrib/xhb/bkgtsks.c
  * contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbnf/fttext.c
  * contrib/hbnf/n2color.c
  * contrib/hbnf/ftattr.c
  * contrib/hbgd/gdwrp.c
    % Changed to use hb_parl*def() functions.

  * contrib/hbqt/*
    * Regenerated.
2010-06-20 21:49:06 +00:00