Commit Graph

10246 Commits

Author SHA1 Message Date
Viktor Szakats
ff4bdc2bce 2009-03-19 19:49 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* xhb/Makefile
  * xhb/dumpvar.prg
  + xhb/decode.prg
    + Added HB_DECODE().
    * Syntax adapted for Harbour.
2009-03-19 18:50:21 +00:00
Viktor Szakats
7589f0c672 2009-03-19 19:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/maindll.c
  * source/vm/maindllp.c
    ! HB_EXPORT moved to beginning of declaration.

  * contrib/hbmysql/tmysql.prg
  * contrib/hbmysql/tsqlbrw.prg
    * More formatting.

  * xhb/Makefile
  * xhb/hbcompat.ch
  + xhb/xhbis.c
  + xhb/xhbscr.c
  + xhb/xhbat.c
  + xhb/txtline.c
  + xhb/dumpvar.prg
    + Added xhb remaining stuff:
      ISALNUM()
      ISSPACE()
      ISXDIGIT()
      ISCNTRL()
      ISGRAPH()
      ISPRINT()
      ISPUNCT()
      ISASCII()
      SCROLLFIXED()
      ATSKIPSTRINGS()
      HB_TABEXPAND()
      HB_READLINE()
      __OutDebug()
      HB_DumpVar()
      HBCONSOLELOCK() (emulation, might be wrong)
      HBCONSOLEUNLOCK() (emulation, might be wrong)
    ; Please review, my only goal was to make them compile.
2009-03-19 18:13:33 +00:00
Viktor Szakats
6b55002024 2009-03-19 18:06 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/maindll.c
  * source/vm/maindllp.c
    ! Fixed placement of HB_EXPORT in declaration.

  * contrib/hbmysql/tmysql.prg
    * Reformatting (heavy). Minor optimizations along the way. Pls test.
    ! S&R typo fixed.
    + Added lFormat parameter to FieldDec() method.
      Submitted by Mitja Podgornik.

  * contrib/xhb/Makefile
  + contrib/xhb/fparse.c
    + Added part from xhb RTL.
      (pls review changed PHB_ITEM usage)
2009-03-19 17:08:33 +00:00
Pritpal Bedi
c546c923d5 2009-03-19 09:20 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbqt/hbqt.h
    ! Fix to last commit.
2009-03-19 16:20:04 +00:00
Pritpal Bedi
e43d315d4f 2009-03-19 08:10 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbqt/hbqt.h
  * harbour/contrib/hbqt/hbqt_qdialog.cpp
  * harbour/contrib/hbqt/hbqt_qabstractbutton.cpp
  + harbour/contrib/hbqt/hbqt_qabstractitemview.cpp
  + harbour/contrib/hbqt/hbqt_qabstractprintdialog.cpp
  + harbour/contrib/hbqt/hbqt_qwidget.cpp
    ! Formatting and new additions.
2009-03-19 15:18:05 +00:00
Viktor Szakats
04e0670135 2009-03-19 15:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
  * contrib/Makefile
    + Added QT to the mainstream build. See INSTALL how to 
      enable it. We will disable it before release if it will 
      be a build blocker.

  + contrib/hbqt/hbqt_base.cpp
    + Added missing file from previous commit.

  * utils/hbmk2/hbmk2.prg
    + Added -dflag: and -aflag: options.
2009-03-19 14:34:33 +00:00
Viktor Szakats
10ce64a632 2009-03-19 12:58 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* config/rules.cf
    % Removed -ko option as it slightly decreases performance in -gc3 mode.
      (it's better in -gc[0-2] only)
2009-03-19 11:59:40 +00:00
Viktor Szakats
1679d18aef 2009-03-19 12:27 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/xhb/Makefile
  + contrib/xhb/hbserv.h
  + contrib/xhb/hbserv.ch
  + contrib/xhb/trpccli.prg
  + contrib/xhb/hbrpc.ch
  + contrib/xhb/ttable.prg
  + contrib/xhb/trpc.prg
  + contrib/xhb/ttable.ch
  + contrib/xhb/hbserv.c
    + Added few components from xhb. They compile without warnings, 
      but I didn't try any of them.

  * contrib/hbqt/hbqt_qabstractbutton.cpp
  * contrib/hbqt/hbqt_qdialog.cpp
  * contrib/hbqt/hbqt.h
  * contrib/hbqt/Makefile
    + Added QT_VERSION(), QT_VERSION_STR()
    + Added QT version protection.
    ! Fixed to use forward slashes in #include filenames.
    * Changed Linux include dir autodetection.
    * Changed autodetection to look for qglobal.h.

  * contrib/rddads/tests/testmg.prg
    - Removed unnecessary lines.
2009-03-19 11:28:18 +00:00
Viktor Szakats
c0b89965bf 2009-03-19 09:10 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/postinst.bat
    - Removed generation of odbc32.lib for BCC.
      You should configure BCC to include <bcc>/Lib/PSDK in
      the lib paths in bcc32.cfg and ilink32.cfg. It's not
      Harbour's job to generate it.

  - contrib/hbodbc/tests/harbour.mdb
  + contrib/hbodbc/tests/test.mdb
  * contrib/hbodbc/tests/odbcdemo.prg
  * contrib/hbodbc/tests/odbccall.prg
  * contrib/hbodbc/tests/testodbc.prg
    * Created working test table from test.dbf.
      (previous .mdb was broken)

  * contrib/hbodbc/tests/odbcdemo.prg
  * contrib/hbodbc/tests/odbccall.prg
  * contrib/hbodbc/tests/testodbc.prg
  * contrib/hbodbc/todbc.prg
  * contrib/hbodbc/browodbc.prg
  * contrib/hbodbc/sql.ch
    * Formatting.
    * Optimizations and cleanups. (could still use a lot more)
    ! Fixed to not use Alert().
2009-03-19 08:14:22 +00:00
Viktor Szakats
a2f3932fd1 2009-03-19 01:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbmysql/mysql.c
  * contrib/hbmysql/tmysql.prg
    * Renamed all functions to standard mysql equivalents.
      Please update your code and turn off old function
      names with -DHB_MYSQL_LEGACY_LEVEL_OFF to test for
      success. Legacy function names will be removed from
      Harbour in the next release. This move allows to use
      hbmysql and hbodbc in the same app.
      SQLAND() has to be replaced with HB_BITAND(), be aware
      that latter will RTE when non-numeric var is passed,
      while SQLAND() was silently ignoring it.
      Changed functions names:
      SQLVERSION()      => mysql_get_server_version()
      SQLCONNECT()      => mysql_real_connect()
      SQLCLOSE()        => mysql_close()
      SQLCOMMIT()       => mysql_commit()
      SQLROLLBACK()     => mysql_rollback()
      SQLSELECTD()      => mysql_select_db()
      SQLQUERY()        => mysql_query()
      SQLSTORER()       => mysql_store_result()
      SQLUSERES()       => mysql_use_result()
      SQLFREER()        => mysql_free_result()
      SQLFETCHR()       => mysql_fetch_row()
      SQLDATAS()        => mysql_data_seek()
      SQLNROWS()        => mysql_num_rows()
      SQLFETCHF()       => mysql_fetch_field()
      SQLFSEEK()        => mysql_field_seek()
      SQLNUMFI()        => mysql_num_fields()
      SQLFICOU()        => mysql_field_count()
      SQLLISTF()        => mysql_list_fields()
      SQLGETERR()       => mysql_error()
      SQLLISTDB()       => mysql_list_dbs()
      SQLLISTTBL()      => mysql_list_tables()
      SQLAFFROWS()      => mysql_affected_rows()
      SQLHOSTINFO()     => mysql_get_host_info()
      SQLSRVINFO()      => mysql_get_server_info()
      DATATOSQL()       => mysql_escape_string()
      FILETOSQLBINARY() => mysql_escape_string_from_file()
      SQLAND()          => hb_bitAnd()

  * source/vm/maindll.c
  * source/vm/maindllh.c
  * source/vm/maindllp.c
  * contrib/hbodbc/odbc.c
    * Minor formatting.
2009-03-19 00:16:43 +00:00
Viktor Szakats
970ec4e61d 2009-03-18 20:17 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/vm/Makefile
  + source/vm/maindllp
  + source/vm/maindllp/Makefile
    + Added generation of hbmaindllp lib, to create pcode .dlls
      on Windows platform. -DHB_DYNLIB is always defined for
      this lib. This is just the first step, we will need compiler,
      hbmk2 and other changes. I'll contribute with hbmk2 changes.

  * source/vm/maindllp.c
    % Code made less verbose.
    ! Created HB_EXPORT declaration for DllEntryPoint().

  * config/win/icc.cf
    * Changed optimization to -O3 (from MSVC ones).
      With max optim (-Ox) it was just a bit faster than MSVC 2008.

  + contrib/hbqt
  + contrib/hbqt/hbqt_qabstractbutton.cpp
  + contrib/hbqt/hbqt_qdialog.cpp
  + contrib/hbqt/hbqt.h
  + contrib/hbqt/Makefile
    + Added initial QT wrapper lib layout with content posted
      by Pritpal to the list. (I did a few renames, please check
      them)

  * contrib/hbwin/hbwapi.h
    * Fixes in header.
2009-03-18 19:22:47 +00:00
Przemyslaw Czerpak
e640c9db4f 2009-03-18 20:07 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/minmax.c
    ! fixed min()/max() functions to always return the 1-st item when
      items are equal. It's Clipper behavior and can be important when
      two items with the same wight have different other attributes
      like formatted value size or number of decimal places.
2009-03-18 19:01:29 +00:00
Przemyslaw Czerpak
e61276d63e 2009-03-18 19:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-mkdyn.bat
  * harbour/config/linux/icc.cf
  * harbour/contrib/xhb/xhbcls.ch
  * harbour/contrib/hbblat/tests/f_listtext.txt
  * harbour/contrib/hbblat/tests/f_sample.txt
  * harbour/contrib/hbblat/tests/f_ps.txt
  * harbour/contrib/hbblat/tests/f_sample1.txt
  * harbour/contrib/hbblat/tests/blattest.prg
  * harbour/contrib/hbblat/tests/f_subjectline.txt
  * harbour/contrib/hbblat/tests/blatcmd.prg
  * harbour/contrib/hbblat/syntax.txt
  * harbour/contrib/hbblat/hbblat.ch
  * harbour/contrib/hbblat/blatcls.prg
  * harbour/contrib/hbblat/blatwrp.c
  * harbour/contrib/hbblat/Makefile
  * harbour/contrib/examples/uhttpd/session.prg
  * harbour/tests/ac_test2.prg
  * harbour/tests/gtxfnt.prg
    * updated SVN attributes

  * harbour/tests/speedtst.prg
    * use chr(13)+chr(10) as EOL in outstd() in Clipper and XPP builds.

  * harbour/source/compiler/genc.c
    ! fixed one printf modifier

  * harbour/source/compiler/gencc.c
  * harbour/include/hbcompdf.h
    % do not call hb_xvmExitProc() if hb_xvmEndProc() was not executed
      inside function compiled by -gc3
2009-03-18 18:54:17 +00:00
Viktor Szakats
0020046c28 2009-03-18 15:11 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdyn.bat
    + Added .dll generation support for win/icc.
2009-03-18 14:12:53 +00:00
Viktor Szakats
0211fce921 2009-03-18 13:09 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbapi.h
    ! Added HB_EXPORT declaration for hb_vmSetLinkedMain().

  * utils/hbmk2/hbmk2.prg
    ! Regression regarding -ldflag: option handling.
2009-03-18 12:10:16 +00:00
Przemyslaw Czerpak
65182bc4f2 2009-03-18 12:16 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/tests/speedtst.prg
    ! fixed typo.
2009-03-18 11:16:40 +00:00
Viktor Szakats
2ec4c76d15 2009-03-18 11:58 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Enabled lib grouping for minwgce.

  * include/hbtypes.h
  * source/vm/maindllp.c
    * Formatting.
2009-03-18 10:59:10 +00:00
Viktor Szakats
b2e3ea60e2 2009-03-18 10:09 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbsqlit3/tests/blob.prg
  * contrib/hbsqlit3/tests/pack.prg
  * contrib/hbsqlit3/tests/metadata.prg
  * contrib/hbsqlit3/tests/sqlite3_test.prg
  * contrib/hbsqlit3/hbsqlit3.ch
  * contrib/hbsqlit3/hbsqlit3.c
    * Changed GPL license to GPL + Harbour exception with 
      kind permission of author Petr Chornyj. Many thanks!
2009-03-18 09:09:41 +00:00
Viktor Szakats
306bd6ee45 2009-03-18 09:49 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for multiple input files when using pocc.
    ! Fixed some mingw/mingwce mis-identifications.
2009-03-18 08:50:04 +00:00
Przemyslaw Czerpak
7771bb4673 2009-03-18 02:16 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbatomic.h
    ! fixed inline assembler code for atomic inc/dec operations.
      It's late and I haven't wrote anything in assembler using
      Intel syntax for years.
    * reenabled inline assembler code for atomic inc/dec operations
      for POCC/XCC builds - such version should work. Please check.
2009-03-18 01:16:35 +00:00
Przemyslaw Czerpak
111895ba2b 2009-03-18 01:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbtest/rt_hvma.prg
    * use #pragma -ko- / #pragma -ko+ to make 3 RTE messages clipper
      compatible
2009-03-18 00:14:47 +00:00
Viktor Szakats
a7ca93b8a7 2009-03-18 01:04 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbatomic.h
    ! Typo (__inline__ -> __inline).
    ! Temply disabled new _MSC_VER inline asm code, because it causes this with POCC5:
      include\hbatomic.h(268): error #3114: [asm] Invalid combination of opcode and operands.
      include\hbatomic.h(273): error #3114: [asm] Invalid combination of opcode and operands.
2009-03-18 00:12:03 +00:00
Viktor Szakats
5e744ca9e4 2009-03-18 00:50 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for -o for executables in win/pocc.
2009-03-17 23:52:46 +00:00
Przemyslaw Czerpak
196d6a529e 2009-03-18 00:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbatomic.h
    % removed unnecessary in such version xor
2009-03-17 23:51:07 +00:00
Przemyslaw Czerpak
2c2f722708 2009-03-18 00:49 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbatomic.h
    + added atomic inc/dec inline assembler code for 32bit MSVC builds
      and probably also to other compilers which defines _MSC_VER
      macro (XCC/POCC). Thanks to Viktor for help. Please make some tests.
      
  * harbour/source/compiler/hbopt.c
    ! disabled one assert() in PCODE optimization code.
      Mindaugas, I left note which explains why.
2009-03-17 23:49:49 +00:00
Viktor Szakats
c7d56abd33 2009-03-18 00:31 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* config/rules.cf
    + Added -ko optimization switch for Harbour.
    ; TODO: Disable it for specific places of hbtest.

  * bin/hb-mkdyn.bat
    + Added missing pocc implib generation.

  * utils/hbmk2/hbmk2.prg
    + mingwce support synced with mingw some more.
      F.e. now resources are supported for mingwce executables.
2009-03-17 23:31:50 +00:00
Viktor Szakats
f8c4e8bafc 2009-03-17 20:15 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdyn.sh
  * bin/hb-func.sh
    ! mingw/cygwin .dll name generation tweaked to work 
      properly. This fixes both TOFIXes in prev commit.

  * mpkg_win.bat
    + Added -9 switch to zip.

  - contrib/examples/hbdoc/examples/core_es/hbpplib.txt
  * contrib/examples/hbdoc/examples/core_es/dirstruc.txt
    * Cleanup.
2009-03-17 19:15:32 +00:00
Viktor Szakats
9903514888 2009-03-17 17:52 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbmysql/readme.txt
  * contrib/hbapollo/readme.txt
  * contrib/gtwvg/tests/demowvg.prg
  * contrib/rddads/doc/en/readme.txt
  * contrib/rddads/readme.txt
  * contrib/hbbtree/hb_btree.c
    * Minor updates to make method/b32 references.
2009-03-17 16:52:59 +00:00
Viktor Szakats
dccd59cf69 2009-03-17 17:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdyn.sh
  * bin/hb-mkdyn.bat
  * source/vm/maindllp.c
  * utils/hbmk2/hbmk2.prg
    + Renamed all Windows Harbour .dlls to harbour-11.dll and
      harbourmt-11.dll. This means that MinGW will now have a versioned
      name to be in sync with other builds. It also means that
      -vc, -pocc, -ow postfixes are gone (and additionally DMC
      could also be supported). What remains is -x64 to
      signal an x64 and -ia64 to signal a IA64 build. Another thing
      which remains is -b32 (now renamed to -bcc to be in sync with
      rest of Harbour), because Borland has an non-standard
      name mangling, and while it can be made work with other
      compilers since the calling convention is the same, it requires
      the .dll user applications to be rebuilt with some implib tricks.
      Overall Borland isn't recommended for .dll creation.
      Please do further tests for binary compatibility.

    ; TOFIX: Location of .dll still differs for mingw/cygwin, they
             are created in lib while rest of compilers create it in
             bin. I think we should sync them by creating a copy
             of the .dlls in bin for mingw/cygwin. Przemek, could
             you help here?
    ; TOFIX: "Making <dllname>..." screen messages. I'll need some  
             help here also.

  * bin/hb-mkdyn.sh
    * ${MAJOR} default set to 1.

  * make_gnu_os2.cmd
    * Minor formatting.

  * contrib/hbgd/gdwrp.c
    ! Minor correction to recent change. (avoiding warning for MinGW)
2009-03-17 16:30:35 +00:00
Przemyslaw Czerpak
583352f5d1 2009-03-17 16:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/tests/speedtst.prg
    + added new tests of dynamic code blocks performance
    * modified to compile by __XPP__ and __CLIP__ - now for single
      thread only
2009-03-17 15:15:18 +00:00
Viktor Szakats
0a96f4ec34 2009-03-17 13:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* harbour-win-spec
  * harbour-wce-spec
  * make_gnu_xmingw.sh
  * make_gnu_xmingwce.sh
  * mpkg_rpm_win.sh
  * mpkg_tgz.sh
  * bin/hb-mkdyn.sh
  * bin/hb-func.sh
  * bin/postinst.sh
  * config/win/mingwce.cf
  * config/win/mingw.cf
    * CCPATH -> HB_CCPATH
    * CCPREFIX -> HB_CCPREFIX
2009-03-17 12:41:13 +00:00
Viktor Szakats
52410317a6 2009-03-17 12:22 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ tests/server.prg
  * tests/Makefile
    + Added inet example from xhb.

  * source/vm/thread.c
    ! Fixed nested comment.

  * contrib/xhb/hbcompat.ch
  * contrib/xhb/xhb.ch
    ! Moved xhb.lib dependent translation to xhb.ch.

  * contrib/examples/hbdoc/examples/core_es/Makefile
  * contrib/examples/hbdoc/examples/core_en/genhtm.bat
  - contrib/examples/hbdoc/examples/core_en/genhtm.sh
    * Cleanup.
2009-03-17 11:23:27 +00:00
Viktor Szakats
f745af7218 2009-03-17 10:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* debian/rules
  * harbour-win-spec
  * harbour-wce-spec
  * harbour.spec
  * mpkg_tgz.sh
    - hbdoc removed from core.

  - doc/Makefile
  - doc/es
  + contrib/examples/hbdoc/examples/core_es
    * Moved.

  - doc/man/hbdoc.1
  + contrib/examples/hbdoc/hbdoc.1
    * Moved.

  - doc/en/genhtm.lnk
  - doc/en/genhtm.sh
  - doc/en/genhtm.rsp
  - doc/en/genhtm.bat
  + contrib/examples/hbdoc/examples/core_en/genhtm.rsp
  + contrib/examples/hbdoc/examples/core_en/genhtm.lnk
  + contrib/examples/hbdoc/examples/core_en/genhtm.bat
  + contrib/examples/hbdoc/examples/core_en/genhtm.sh
    * Moved.

  - contrib/hbgt/doc/gendoc.bat
  - contrib/hbgt/doc/libgt.lnk
  - contrib/hbgt/doc/libgt.rsp
  - contrib/rddads/doc/gendoc.bat
  - contrib/rddads/doc/rddads.lnk
  - contrib/rddads/doc/rddads.rsp
    - Deleted.

  * utils/Makefile
  - utils/hbdoc
  + contrib/examples/hbdoc
  - contrib/hbmisc/doc/gendoc.bat
  - contrib/hbmisc/doc/hbmisc.lnk
  - contrib/hbmisc/doc/hbmisc.rsp
  + contrib/examples/hbdoc/examples/hbmisc/gendoc.bat
  + contrib/examples/hbdoc/examples/hbmisc/hbmisc.lnk
  + contrib/examples/hbdoc/examples/hbmisc/hbmisc.rsp
    * Moved.

  - contrib/hbgt/doc/en/ht_gt.txt
  + contrib/hbgt/doc/en/hbgt.txt
    * Renamed.
2009-03-17 09:09:00 +00:00
Viktor Szakats
708076ce5a 2009-03-17 09:26 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbdoc/genos2.prg
  * utils/hbdoc/genng.prg
  * utils/hbdoc/genasc.prg
  * utils/hbdoc/genchm.prg
  * utils/hbdoc/genhpc.prg
  * utils/hbdoc/ft_funcs.prg
  * utils/hbdoc/hbdoc.prg
  * utils/hbdoc/genhtm.prg
  * utils/hbdoc/genpdf1.prg
  * utils/hbdoc/gentrf.prg
  * utils/hbdoc/genrtf.prg
    + Enabled line number for all files to aid finding crashes.
    ! Few crashes fixed. Still far from usable state.

  * source/vm/thread.c
    + Added short Harbour level API description. (from Przemek)

  * contrib/xhb/Makefile
  * contrib/xhb/hbcompat.ch
  + contrib/xhb/xhbmt.prg
    + Added translation for all xhb MT functions.
      (Thanks a lot Przemek)
2009-03-17 08:28:01 +00:00
Viktor Szakats
d13d5324dd 2009-03-17 00:18 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed mingw -fmstat in static mode. (shared mode gives
      warnings and doesn't work)
    + Added -[no]fmstat for all compilers. (untested)
2009-03-16 23:18:28 +00:00
Viktor Szakats
85559adb23 2009-03-16 23:18 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* harbour-win-spec
  * harbour-wce-spec
    % Removed forced -O2 options, -O3/-O2 are the defaults already.

  * mpkg_win.bat
    + Adds -DHB_FM_STATISTICS_OFF to HB_USER_CFLAGS.

  * utils/hbmk2/hbmk2.prg
    ! Setting gtwvt for msvcce targets as default GT.

  * source/debug/debugger.prg
    % Minor optimization. (platform branching done at PP 
      time rather than runtime).

  * contrib/xhb/hbcompat.ch
    + Added DestroyMutex() compatibility #translate.
2009-03-16 22:18:54 +00:00
Viktor Szakats
65c1dfc0fb 2009-03-16 18:31 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added __PLATFORM__* macro support for cross-compilation situations.

  * include/hbsetup.ch
    * Minor
2009-03-16 17:32:26 +00:00
Pritpal Bedi
abce362c05 2009-03-16 09:39 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wincallb.c
  * harbour/contrib/gtwvg/wvgwin.c
    ! Fixed MSVC warnings.
2009-03-16 16:41:05 +00:00
Pritpal Bedi
bbc5b54a6d 2009-03-16 09:07 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgcuig.c
  * harbour/contrib/gtwvg/wvgsink.c
  * harbour/contrib/gtwvg/wvgwin.c
    ! Fixes for warnings on all compilers.
2009-03-16 16:08:42 +00:00
Viktor Szakats
4e914984e5 2009-03-16 15:35 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/postinst.bat
    ! Typo in bcc / fbclient.
    % Cleanup for owatcom, fbclient fixed.
2009-03-16 14:36:13 +00:00
Viktor Szakats
80323481d9 2009-03-16 15:18 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
    + Added 3.81 or upper as GNU Make requirement. Older ones
      have bugs exploitet by current .cf files.

  * contrib/hbssl/Makefile
    - Disabled for owatcom.

  * config/win/msvc.cf
    ! Fixed -TP switch. Stopped using CFLAGS.
    * Changed to use link.exe directly instead of cl.exe.

  * config/win/msvcce.cf
    * Minor cleanup.
2009-03-16 14:24:15 +00:00
Viktor Szakats
a17a6cdaef 2009-03-16 13:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for win/mingwce.
    + Honoring HB_CCPATH for ar in gcc *nix.
    + Honoring HB_CCPATH for gcc win.
2009-03-16 12:25:17 +00:00
Viktor Szakats
2cad8acaeb 2009-03-16 12:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
    + Enabled new Harbour types. Still incomplete, and relying
      on old unsafe types in places.

  * contrib/gtwvg/gtwvg.c
    ! Warning.

  * contrib/gtwvg/wvgcuig.c
    ! Cast errors.

  * config/win/msvc.cf
    + Enabled C++ mode. This should result in stricter compiler
      warnings/errors, and also enables to use standard init
      method (non-C++ method is broken when using LTCG
      and potentially in other scenarios like IA64). Note, this
      doesn't mean we'd allow non-ANSI C usage inside Harbour,
      so no C++ features are allowd. This won't cause any
      drawbacks for the user AFAIK, if you know otherwise, pls
      speak up. [Notice that we're using C++ mode for owatcom
      on all platforms.]

  * doc/whatsnew.txt
    + Documented win/owatcom and OpenSSL incompatibility.
      (maybe it can be resolved, I didn't spend time on it)

  * INSTALL
    * C compiler -> ANSI C compiler.
2009-03-16 12:08:23 +00:00
Viktor Szakats
78ecf1f338 2009-03-16 11:30 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdyn.bat
    ! Fixed typo in prev.

  * bin/hb-mkdyn.bat
    ! owatcom IMPLIB generation restored.

  * source/lang/msgpt.c
  * source/lang/msgeo.c
  * source/lang/msgfr.c
  * source/lang/msgptiso.c
  * source/lang/msgko.c
    ! Fixed missing commas.

  * source/vm/dynsym.c
  * source/vm/hvm.c
  * source/rdd/dbfnsx/dbfnsx1.c
    * while( TRUE ) -> for( ;; ) to avoid warning.

  * utils/hbmk2/hbmk2.prg
    ! Fixed to owatcom support.
    ! Fixed to honor HB_CCPREFIX in mingw detection.

  * config/dos/owatcom.cf
  * config/win/owatcom.cf
  * config/linux/owatcom.cf
  * config/os2/owatcom.cf
    + Enabled -w3 warning level (from -w2)
    + Added -bm (MT) switch for win.
    + Using -5s and -3s (when NOOPT) in win.
    * Synced win owatcom options with GNU Make.

  ; TOFIX: ../../dbf1.c(208): Warning! W007: col(55) '&array' may not produce intended result
2009-03-16 10:32:34 +00:00
Pritpal Bedi
d3507d2a79 2009-03-15 23:10 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wvgcuig.c
    ! A fix for UNICODE | non-UNICODE. Not sure if it is the 
      right way, but it works. Please fix me.
2009-03-16 06:13:40 +00:00
Viktor Szakats
394831e5d4 2009-03-16 01:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdyn.bat
  * source/vm/maindllp.c
  * utils/hbmk2/hbmk2.prg
    + Added .dll generation for pocc.
    + Added -shared support for pocc.

  * utils/hbmk2/hbmk2.prg
    ! Warning after prev commit is fixed.

  * source/vm/Makefile
    * All win targets will generate maindllh lib.
2009-03-16 00:36:06 +00:00
Pritpal Bedi
e07462e564 2009-03-15 16:42 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/hbgtwvg.ch
    + #define HB_GTI_SETPOSANDSIZE
    + #define HB_GTI_HB_GTI_REFRESH
      + Two more events to manage new CUI-GUI objects.

    + #define GOBJ_OBJSTATE_*
    + #define GOBJ_OBJDATA_*
    + #define GOBJ_IMAGESOURCE_*
      + Constants to manage CUI=GUI objects.

  * harbour/contrib/gtwvg/gtwvg.h
  * harbour/contrib/gtwvg/wvggui.h
    ! Updated to be compilable for WinCE builds.

  * harbour/contrib/gtwvg/gtwvg.c
    ! Updated to honor WinCE builds.
    ! Implemented double-buffering of console. Now flickering
      should be the topic of the past.

  * harbour/contrib/gtwvg/wvggui.c
    ! Updated to honor WinCE builds.

  * harbour/contrib/gtwvg/wvgcuig.c
    + Implemented a highly optimized GUI controls for CUI consoles.
      Implementation includes auto-destruction, data-substitution,
      enable/disable feast, etc. These controls are almost identical
      which are available with Wvt_Draw*() namespace but with a 
      great difference that these are tied to the urrent GT and 
      are handelled transparently by the GT itself. Developer 
      has only to define it. The only requirement is that 
      SaveScreen()/RestScreen() needs to be changed to new 
      Modal GT window. Appln screens will never get blurred. It 
      also employs optimized double-buffering and hence almost 
      eliminates screen flickering. 

  * harbour/contrib/gtwvg/wvgcore.c
  * harbour/contrib/gtwvg/wvgsink.c
  * harbour/contrib/gtwvg/wvgutils.c
  * harbour/contrib/gtwvg/wvgwin.c
    ! Updated to honor WinCE builds.

  * harbour/contrib/gtwvg/wvgcrt.prg
    ! A couple of methods fine-tuned.
    ! Modal GT's more responsive to user needs.

  * harbour/contrib/gtwvg/tests/demowvg.prg
    ! Demonstrated the latest implemention of CUI-GUI controls. See below.
      Please try <Traditional><WVG Console with CGUI> option in the main menu.
      Also note the usage of Modal GT to simulate Alert() in new window.
      Every GUI object returns a handle to it which may be used to 
      change its parameters.

    ; TOFIX( WINCE BUILDS ) - GetSystemDirectory()


    /*    IMPLEMENTATION OF CUI-GUI CONTROLS - A CODE PREVIEW



         #xTranslate Alert( => MyAlert(

         PROCEDURE GCUIConsole( oCrt )
            LOCAL dDate      := date()
            LOCAL cName      := pad( 'Some Usefule Name'   , 35 )
            LOCAL cAdd1      := pad( 'Linda Goldman Avenue', 35 )
            LOCAL cAdd2      := pad( 'Excellent Street'    , 35 )
            LOCAL cAdd3      := pad( 'Suit #415'           , 35 )
            LOCAL nSlry      := 9000
            LOCAL nColGet    := 8
            LOCAL GetList    := {}
            LOCAL cLabel     := "VOUCH, that GROWS with you"
            LOCAL oTab, oStat, hBoxR, hTxt

            SET SCOREBOARD OFF

            SetColor( "N/W,N/GR*,,,N/W*" )
            CLS
            hb_gtInfo( HB_GTI_WINTITLE, "WVG Simplified yet Powerful CUI-GUI Console!" )

            @ MaxRow(), 0 SAY PadC( "Navigate the Gets", maxcol()+1 ) COLOR "W+/B"

            @  2, nColGet SAY "< Date >"
            @  5, nColGet SAY "<" + PadC( "Name"   , 33 ) + ">"
            @  8, nColGet SAY "<" + PadC( "Address", 33 ) + ">"
            @ 15, nColGet SAY "< Salary >"

            @  3, nColGet GET dDate  ;
                                     WHEN  {|| Wvg_SetGObjData( hTxt, 1, FetchText( 1 ) ) } ;
                                     Valid {|| Wvg_SetGObjData( hTxt, 6, RGB( 255,0,0 ) ), .t. }
            @  6, nColGet GET cName  ;
                                     WHEN  {|| Wvg_SetGObjData( hTxt, 1, FetchText( 2 ) ) } ;
                                     Valid {|| Wvg_SetGObjData( hTxt, 6, RGB( 255,255,0 ) ), ;
                                                           Wvg_SetGObjState( hBoxR, 3 ), .t. }
            @  9, nColGet GET cAdd1  ;
                                     WHEN  {|| Wvg_SetGObjData( hTxt, 1, FetchText( 3 ) ) } ;
                                     Valid {|| Wvg_SetGObjData( hTxt, 6, RGB( 255,0,255 ) ), .t. }
            @ 11, nColGet GET cAdd2  ;
                                     WHEN  {|| Wvg_SetGObjData( hTxt, 1, FetchText( 4 ) ) } ;
                                     Valid {|| Wvg_SetGObjData( hTxt, 6, RGB( 255,255,255 ) ), ;
                                                           Wvg_SetGObjState( hBoxR, 1 ), .t. }
            @ 13, nColGet GET cAdd3  ;
                                     WHEN  {|| Wvg_SetGObjData( hTxt, 6, RGB( 198,21,140 ) ), .t. }
            @ 16, nColGet GET nSlry PICTURE "@Z 9999999.99" ;
                                     WHEN  {|| Wvg_SetGObjData( hTxt, 6, RGB( 0,0,0 ) ), .t. }

            // The only additional calls to render your console GUI
            //
            // The GETLIST  : This can be embedded via  @ GET preprocessor command
            aEval( GetList, {|oGet| Wvg_BoxGet( oGet:Row, oGet:Col, Len( Transform( oGet:VarGet(), oGet:Picture ) ) ) } )
            //
            hBoxR := Wvg_BoxRaised( 1,2,18,49, {-5,-5,5,5} )
            //
            Wvg_BoxRecessed( 1,2,18,49 )
            //
            // Wvg_BoxGroup( 2,4,17,47 )
            //
            Wvg_BoxGroupRaised( 2,4,17,47, {-7,-7,7,7} )
            //
            hTxt := Wvg_TextBox( 3,57,16,75, {10,10,-10,-10}, 'This is first TextBox Line!', 2, 2 )
            //
            Wvg_Image( 15,36,16,42, {-3,-3,3,3}, GOBJ_IMAGESOURCE_FILE, 'Vouch1.bmp' )
            //
            Wvg_BoxRaised( 15,36,16,42,{-2,-2,2,2} )
            //
            Wvg_ShadedRect( 1,54,18,79, { -5,-5,5,5 }, 0, {65000,21000,7000,56000}, {255,32255,16000,32500} )
            //
            Wvg_BoxRaised( 1,54,18,79, {-5,-5,5,5} )

            // Instruct GT to Repaint the Screen with GUI elements.
            oCrt:refresh()

            // Issue the read
            READ

            Alert( 'How did you like the "Alert" replacement?', { 'WOW','OK','OOps'} )

            RETURN
         /*----------------------------------------------------------------------*/
         #xUntranslate alert( =>

         FUNCTION MyAlert( cMsg, aOpt )
            LOCAL nSel, oCrt

            oCrt := WvgCrt():New( , , { -1,-1 }, { 9, MaxCol()-6 }, , .t. )
            oCrt:lModal := .t.
            oCrt:icon   := "dia_excl.ico"
            oCrt:create()
            oCrt:resizable := .t.

            SetColor( 'N/W' )
            CLS
            hb_gtInfo( HB_GTI_WINTITLE, cMsg )

            nSel := Alert( cMsg, aOpt )

            oCrt:destroy()

            RETURN nSel

         #xTranslate Alert( => MyAlert(
         /*----------------------------------------------------------------------*/
         STATIC FUNCTION FetchText( nMode )
            LOCAL cText

            DO CASE
            CASE nMode == 1
               cText := 'Do you know Harbour is gaining a popularity what Clipper enjoyed at one time! '
               cText += 'Enjoy it.'
            CASE nMode == 2
               cText := 'Do you know Harbour can host pure console, cui+gui console, pure gui consoles applications? '
               cText += 'This demonstration is a proof of that.'
            CASE nMode == 3
               cText := 'Do you know Harbour is a multi-gt, multi-window, multi-thread compiler far superior than others in the market! '
               cText += 'And is FREE.'
            CASE nMode == 4
               cText := 'Enjoy and contribute to the project any way you can. Develop, Debug, Support, and spread a word of mouth!'
            ENDCASE

            RETURN cText
         /*----------------------------------------------------------------------*/
    */

    ;TODO - Write a comprehensive help to exploit CUI-GUI functionality.
            Will do in a few days.
2009-03-15 23:55:29 +00:00
Viktor Szakats
a6569d6ef9 2009-03-16 00:38 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/postinst.bat
    + Added owatcom and pocc support for implib generation.

  * utils/hbmk2/hbmk2.prg
    + Fixed win/pocc support.
    + Added resource support for win/pocc.
    + Added .dll support for win/pocc.
    + Added win/xcc support (untested).
    + -DHB_DYNLIB is passed to C compiler in -hbdyn (.dll) mode
      for win targets. (still need fixing to create usable .dlls)
    ; NOTE: pocc support is very limited as pocc compiler doesn't
            support multiple input files.
2009-03-15 23:40:53 +00:00
Viktor Szakats
4e1e358ed1 2009-03-15 20:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
    + Documented cross-build config for minwgce.

  * utils/hbmk2/hbmk2.prg
    + Added static lib generation support for owatcom compilers on
      platforms.
    + Added static lib generation support for gcc family.
      Please review it's probably incomplete.
    + Honoring HB_CCPREFIX on win platform for gcc family.
    ! Fixed typo on .c stub function declaration for bcc/owatcom.

  * contrib/xhb/hbcompat.ch
    + #xtranslate hb_funcptr(<x>) => __dynsn2sym(<x>)
2009-03-15 19:52:01 +00:00
Viktor Szakats
b17e5a0163 2009-03-14 16:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbgt/strasint.c
    % Using HB_ISDIGIT()
    ! Fixed to not include hbtrace.h directly.

  * make_gnu.bat
    % make clean and install phases merged in HB_BUILD_DLL mode.

  * bin/postinst.bat
    ! Fix to recent change.

  * include/hbdefs.h
    ! Moved #include hbtrace.h after HB_EXPORT is defined.
      (hack)
2009-03-14 15:17:52 +00:00