Commit Graph

13221 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
937d616405 2010-01-19 09:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/ppcore.c
    * pacified BCC warning

  * harbour/src/compiler/harbour.yyc
  * harbour/src/compiler/harbour.yyh
    * regenerated with patched bison to pacify BCC warnings

  * harbour/include/hbwinuni.h
    + added HB_ITEMCOPYSTR() macro

  * harbour/src/common/hbwince.c
    * redirected Beep() to MessageBeep() - it does not allow to set
      time and duration but should generate some default system voice
      signal - please test the results with real devices using WinCE/
      Win Mobile

   TODO: New MinGW support LockFileEx() and UnlockFileEx() but they are
         part of coredll6 library not coredll. I guess it's designed to
         use with Windows Mobile 6.x. Add compile and link time support
         for it.
   TODO: Add link time support for MinGWCE and non ARM processors.
         New MinGWCE supports x86 compatible Intel CPUs for pocket devices.
2010-01-19 08:42:19 +00:00
Pritpal Bedi
146b37e8e5 2010-01-18 17:52 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_base.cpp
  * contrib/hbqt/hbqt_hbevents.cpp
  * contrib/hbqt/hbqt_hbslots.cpp
    ! HB_TRUE/FALSE <=> true/false.

  * contrib/hbide/hbide.prg
  * contrib/hbide/ideeditor.prg
    ! Updated to manage split windows properly.
      Presently the behavior is as such:
        Horizontal Split - Top row is columns are splitted
        Vertical Split - More row is added at the bottom.
        Delete Splitted Window - Focus is always shifted to 
           main edit window. i.e., parent of all.
      Please comment.
2010-01-19 02:03:23 +00:00
Viktor Szakats
67c143f7f4 2010-01-19 00:40 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
  * contrib/gtwvg/gtwvg.c
    ! Fixed GFX drawing functions to forward success/failure
      results from Windows API calls.
2010-01-18 23:41:57 +00:00
Viktor Szakats
b822fa0dbf 2010-01-18 20:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/extrap.c
  * src/rtl/diskspac.c
  * src/rtl/disksphb.c
  * src/rtl/gtwvt/gtwvt.c
  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvgwin.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
    + Using HBTEXT() macro on 2nd parameter of GetProcAddress()
      in _all_ cases. This can't hurt, but it's useful to never
      forget it for WinCE targets/branches.
      Recent change got also simplified after this.
      Pls review me.
2010-01-18 19:37:26 +00:00
Przemyslaw Czerpak
6dbdd9e61a 2010-01-18 20:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_tprn.prg
    ! fixed GetDefaultPrinter() => win_PrinterGetDefault()

  * harbour/contrib/hbwin/win_prn2.c
  * harbour/contrib/hbwin/win_prn3.c
    ! fixed to compile with WinCE
2010-01-18 19:09:05 +00:00
Viktor Szakats
d09ab089b8 2010-01-18 19:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbwince.c
    - Deleted definition of FreeResource(). It's noe used anywhere
      in Harbour, and its declaration was also missing.

  * contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_destruct.cpp
    - Deleted no longer used macros: hbqt_ret_*().
    + Added TOFIX to hbqt_par_*() where essentially the GC 
      pointer type checking is completely worked around, which 
      makes it easy to create GPFs by passing wrong pointer 
      type to functions. Probably its unavoidable to introduce 
      parameter validation to HBQT wrappers. Such validation 
      could decide which types are accepted (f.e. objects and 
      parent objects, whether NULL is accepted or rejected).
      If not accepted a proper RTE should be thrown instead
      of letting the app GPF.
    + Added two TOFIXes where low-level parameter 
      retrieving function returns NULL.
2010-01-18 18:58:02 +00:00
Pritpal Bedi
04e44f2eed 2010-01-18 09:55 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideobject.prg
  * contrib/hbide/idesources.prg
  * contrib/hbide/idethemes.prg
    ! Updated to honor latest changes.
    + Added: ZoomIn, ZoomOut feature, currently via toolbar.
    ! Fixed: open dialog respecting last opened path.
    ! Fixed: to display codec in the statusbar at the startup.
    ! Fixed: context menu gpf'ing if no prompt is selected.
    + Prepared: to allow extended book-"Mark" feature.
    + Prepared: to handle extended syntax highlighting.
    ! More artifacts I must be missing.
2010-01-18 18:01:06 +00:00
Pritpal Bedi
772123dbab 2010-01-18 09:14 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_base.cpp
  * contrib/hbqt/hbqt_destruct.cpp
  * contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/hbqt_hbdbfmodel.cpp
  * contrib/hbqt/hbqt_hbevents.cpp
  * contrib/hbqt/hbqt_hbevents.h
  * contrib/hbqt/hbqt_hbqsyntaxhighlighter.cpp
  * contrib/hbqt/hbqt_hbqsyntaxhighlighter.h
  * contrib/hbqt/hbqt_hbqtableview.cpp
  * contrib/hbqt/hbqt_hbslots.cpp
  * contrib/hbqt/hbqt_hbslots.h

  * contrib/hbqt/qth/HBQTextBlockUserData.qth
  * contrib/hbqt/qth/QAbstractItemModel.qth
  * contrib/hbqt/qth/QSyntaxHighlighter.qth
  * contrib/hbqt/qth/QTableView.qth

  + contrib/hbqt/qth/HBQTableView.qth
  + contrib/hbqt/qth/HBDbfModel.qth
  + contrib/hbqt/qth/HBQSyntaxHighLighter.qth
    + Separated parts to auto/static generation.

  + contrib/hbqt/qth/HBEvents.qth
  + contrib/hbqt/qth/HBSlots.qth
    + Prepared to bring Events/Slots management on OO level.
      Stll not activated as I have some technical issues on  
      c++ level. Just a matter of time...

  * contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/generator/qt45.qtp
    
    + This commit is generally towards separation of static/auto
      generated parts of classes which has been hanging in for
      manual updates to the structures indivisually if changes
      were made effective overhaul.

  * contrib/hbqt/qtcore/*
  * contrib/hbqt/qtgui/*
  * contrib/hbqt/qtnetwork/*
2010-01-18 17:54:15 +00:00
Przemyslaw Czerpak
298ee0015d 2010-01-18 17:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
  * harbour/src/common/hbwince.c
    - removed added for WinCE builds and not longer used wrappers
      for some C RTL functions
2010-01-18 16:03:09 +00:00
Viktor Szakats
a894400a85 2010-01-18 16:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbcompdf.h
  * src/compiler/cmdcheck.c
  * src/compiler/hbmain.c
  * src/compiler/hbcomp.c
  * src/compiler/hbopt.c
  * src/compiler/hbusage.c
  * src/compiler/hbgenerr.c
    + Added options to control error/warning output format/style
      in Harbour, to make it possible to switch to formats which
      are handled by popular IDEs, like Eclipse, Code::Blocks.
      Currently these are supported:
        -ge[0]: Clipper compatible (default)
        -ge1:   "IDE friendly". Mimics the one submitted by Lorenzo
                for Eclipse.
      The goal is to cover the most IDEs with the less options,
      so please test them to reach this optimum.
2010-01-18 15:36:56 +00:00
Przemyslaw Czerpak
dd01a942b1 2010-01-18 15:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/hbwince.c
    - removed LocalLock()/LocalUnlock()/LocalHandle() function wrappers
      for WinCE builds - we do not use these functions in current code

  * harbour/contrib/xhb/xhw32prn.prg
    - removed commented :AskProperties - it's already implemented in
      WIN_PRN class
2010-01-18 14:54:31 +00:00
Przemyslaw Czerpak
ea0937ea3e 2010-01-18 15:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
  * harbour/src/common/hbwince.c
    - disabled not longer necessary in WinCE builds system() and strerror()
      functions
2010-01-18 14:41:12 +00:00
Viktor Szakats
f2d2214ef5 2010-01-18 15:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/tests/testprn.prg
    + Brings up printer setup dialog if run with 'ask' cmdline parameter.
2010-01-18 14:31:20 +00:00
Przemyslaw Czerpak
8f9973afd5 2010-01-18 14:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
  * harbour/src/common/hbver.c
    + added BOOL hb_iswin9x( void ) C function

  * harbour/src/rtl/version.c
    + added HB_OSISWIN9X() PRG function

  * harbour/src/rtl/gttone.c
    % simplified the code using hb_iswin9x() function

    TODO: Check if WinCE support WinNT file IO functions and if yes then
          replace in src/rtl/filesys.c 'if( hb_iswinnt() )' with 
          'if( !hb_iswin9x() )'

  * harbour/contrib/hbwin/win_tprn.prg
  * harbour/contrib/hbwin/win_prn1.c
    + added ::AskProperties in WIN_PRN class
      If it is assigned .t. prior to calling ::Create(), a DocumentProperties
      dialog is displayed. By Budyanto Dj. borrowed from xHarbour.
      NOTE: this modification does not contain win9x hack present in
            xHarbour. Please make tests and update this code if necessary
2010-01-18 13:57:04 +00:00
Viktor Szakats
5a3c61ba54 2010-01-18 14:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* hbwin/hbwapi.h
  * hbwin/win_prn1.c
    + Added HFONT GC interface.
2010-01-18 13:37:42 +00:00
Viktor Szakats
0ef977b36e 2010-01-18 13:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn1.c
  * contrib/hbwin/hbwapi.h
    + Added public functions to return and retrieve HDC and HPEN
      handles. This makes it possible to use these in 3rd party
      code and other parts of hbwin lib. F.e. to create pure
      wrappers for GDI functions.
    + win_prn1.c now uses hbwapi_ret_*() functions to return
      HDC and HPEN handles.
    * Renamed static GC related functions.
    ! WIN_SETPEN() fixed to retrieve pointer from _2nd_ param.
      (it was 1st previously, pls review me)
    ! WIN_SETPEN() fixed to not allocate new GC pointer if
      an existing GC pointer was passed as 2nd parameter.
      (please review me)

  * contrib/hbwin/mapi.c
  * contrib/hbwin/wapi_commctrl.c
    ! Fixed to compile with Cygwin.
      [TOMERGE 2.0]

  * contrib/hbwin/win_prn1.c
    - Deleted unnecessary winspool.h header.

  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
    - Deleted winspool.h header for LCC compiler.
      We don't support LCC compiler in Harbour.
    ! Cleaned windows.h inclusion.

  * contrib/hbfimage/fi_winfu.c
  * contrib/hbfimage/fi_wrp.c
    * Formatting.
    + TOFIX added to use GC collected pointers.
2010-01-18 12:30:26 +00:00
Viktor Szakats
aa2cb9c96f 2010-01-18 11:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwin.ch
  * contrib/hbwin/win_tprn.prg
    + Added constants for WIN_SETBKMODE() mode parameter.
2010-01-18 10:40:16 +00:00
Przemyslaw Czerpak
1b9a7424b9 2010-01-18 11:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/dbinfo.ch
  * harbour/include/hbrdddbf.h
  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
    * renamed DB_DBFLOCK_XHB64 => DB_DBFLOCK_HB64

  * harbour/contrib/hbwin/win_tprn.prg
    * updated some comments and formatting

  * harbour/contrib/xhb/Makefile
  + harbour/contrib/xhb/xhw32prn.prg
    + added WIN32PRN class, it inherits from WIN_PRN class hiding some
      differences between Harbour and xHarbour in paper size setting and
      separated horizontal and vertical alignment setting
2010-01-18 10:21:26 +00:00
Viktor Szakats
b3f7ff7e11 2010-01-18 11:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_tprn.prg
    ! Fix to prev.
2010-01-18 10:04:53 +00:00
Viktor Szakats
887c622da0 2010-01-18 10:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_tprn.prg
    ! Using constant.
    * Minor formatting/cleanup.

  * contrib/hbhpdf/harupdf.c
    ! HPDF_Page_GetMiterLimit() fixed to return double instead of long.
      As suggested by Saulius.
      [TOMERGE 2.0]
    * Formatting.
2010-01-18 10:00:41 +00:00
Viktor Szakats
ee2a5a6737 2010-01-17 23:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* hbqt/hbqt.h
  * hbqt/hbqt.ch
  * hbqt/hbqt_destruct.cpp
  * hbqt/hbqt_hbqsyntaxhighlighter.cpp
  * contrib/hbqt/tests/demoqt.prg
    - Deleted unused remains of memory release method selection.
2010-01-17 22:09:09 +00:00
Viktor Szakats
f36decdc53 2010-01-17 22:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwin.ch
    + Added HB_WINFONT_* constants for WIN_ENUMFONTS() returned
      array positions.
    + Now possible to disable legacy defintions by defining
      HB_WIN_NO_LEGACY. This paves the way to include this file 
      in .c files.

  * contrib/hbwin/win_prn1.c
    ! WIN_ENUMFONTS() fixed to return empty array (instead of NIL)
      in error cases.
2010-01-17 21:52:34 +00:00
Viktor Szakats
97abb02ed9 2010-01-17 20:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_reg.prg
  * contrib/hbwin/win_os.prg
  * contrib/hbwin/win_tprn.prg
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/hbwin.h
  * contrib/hbwin/hbwin.ch
  * contrib/hbwin/tests/testprn.prg
  * contrib/hbwin/tests/testcom1.prg
  * contrib/hbwin/tests/testcom2.prg
  * contrib/hbwin/tests/testreg.prg
  * contrib/hbwin/tests/testmapi.prg
  * contrib/hbwin/win_com.c
  * contrib/hbwin/win_prn1.c
    * MM_TO_INCH macro moved from hbwin.ch to win_tprn.prg.
      (INCOMPATIBLE is someone happened to use this in app code)
    + Prefixed all Windows constants with WIN_ in hbwin.ch.
    + Prefixed all hbwin specific constants with HB_ in hbwin.ch.
    + Retained all old legacy / deprecated hbwin.ch constants
      for compatibility. Users are encourages to use the new
      ones, as the old ones will be deleted in the future.
    * Changed WIN_MULDIV() to use hb_retni() (instead of hb_retnl())
    * WIN_MULDIV() renamed to WAPI_MULDIV() and moved
      to wapi source. (INCOMPATIBLE, although it's unlikely anyone
      is using WIN_MULDIV() so I didn't keep it.)
    + Added some additional printing related Windows constants.
    + Added comments to hbwin.ch saying which constant is used
      in which WIN_*() function.
    * HB_WIN_MAPI_* constants renamed to WIN_MAPI_*.
      (I haven't dealt with compatibility as this is brand new
      functions with not much users yet)
    + Marked all hbwin.ch deprecated macros with HB_LEGACY_LEVEL3
    ! Fixed to use hbwin.ch constants in few remaining places in testprn.prg
    ; Now it's possible to include hbwin.ch in .c files.
    ; QUESTION: Why RGB_* color constants aren't using pure colors?
                If there is no special reason, I think it should be
                changed to pure ones (with 0xFF components).

  * src/compiler/hbgenerr.c
    * Formatting.
2010-01-17 19:43:19 +00:00
Viktor Szakats
ae28ec336e 2010-01-17 15:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_tprn.prg
    ! Fixed to not refer to legacy function WIN_GETEXEFILENAME().
      Probably this was causing the link-time symbol collision 
      problem once reported by Mindaugas.

  * contrib/hbwin/hbwin.ch
    + Added WIN_RGB() macro to replace RGB(). Latter is now 
      deprectaed.

  * ChangeLog
    + TOMERGE added to prev entry.
2010-01-17 14:07:04 +00:00
Viktor Szakats
bcaacdef0a 2010-01-17 10:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbhpdf/harupdf.c
    ! HPDF_Page_TextWidth() fixed to return double instead of long.
      As suggested by Francesco Perillo.

  * contrib/hbwin/hbwin.ch
  * contrib/hbwin/tests/testprn.prg
    + Renamed FORM_* to WIN_PRN_DMPAPER*.
      (old constants are still there for compatibility.
    + Added new WIN_PRN_DMPAPER* constants. (the list is far
      from complete, but my first goal was to be about in sync
      with hbhpdf)
2010-01-17 09:38:30 +00:00
Pritpal Bedi
2d95edc21f 2010-01-16 23:14 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idemisc.prg
    ! Updated to respect latest changes.
2010-01-17 07:18:48 +00:00
Pritpal Bedi
665579dcda 2010-01-16 22:29 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/generator/qt45.qtp
  * contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_base.cpp
  * contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/hbqt_hbdbfmodel.cpp
  * contrib/hbqt/hbqt_hbevents.cpp
  * contrib/hbqt/hbqt_hbqmainwindow.cpp
  * contrib/hbqt/hbqt_hbqsyntaxhighlighter.cpp
  * contrib/hbqt/hbqt_hbqsyntaxhighlighter.h
  * contrib/hbqt/hbqt_hbqtableview.cpp
  * contrib/hbqt/hbqt_hbslots.cpp

  + contrib/hbqt/qth/HBQTextBlockUserData.qth
  * contrib/hbqt/qth/QAbstractTextDocumentLayout.qth
  * contrib/hbqt/qth/QApplication.qth
  * contrib/hbqt/qth/QClipboard.qth
  * contrib/hbqt/qth/QComboBox.qth
  * contrib/hbqt/qth/QCursor.qth
  * contrib/hbqt/qth/QDragEnterEvent.qth
  * contrib/hbqt/qth/QDragLeaveEvent.qth
  * contrib/hbqt/qth/QDropEvent.qth
  * contrib/hbqt/qth/QFocusEvent.qth
  * contrib/hbqt/qth/QGradient.qth
  * contrib/hbqt/qth/QKeyEvent.qth
  * contrib/hbqt/qth/QLabel.qth
  * contrib/hbqt/qth/QLayoutItem.qth
  * contrib/hbqt/qth/QLineEdit.qth
  * contrib/hbqt/qth/QMoveEvent.qth
  * contrib/hbqt/qth/QPaintDevice.qth
  + contrib/hbqt/qth/QPaintEngine.qth
  * contrib/hbqt/qth/QPrintEngine.qth
  * contrib/hbqt/qth/QResizeEvent.qth
  * contrib/hbqt/qth/QSplitter.qth
  * contrib/hbqt/qth/QStandardItemModel.qth
  * contrib/hbqt/qth/QStyleHintReturn.qth
  * contrib/hbqt/qth/QStyleHintReturnMask.qth
  * contrib/hbqt/qth/QStyleHintReturnVariant.qth
  * contrib/hbqt/qth/QTextBlock.qth
  * contrib/hbqt/qth/QTextCursor.qth
  + contrib/hbqt/qth/QTextList.qth
  * contrib/hbqt/qth/QWheelEvent.qth
  * contrib/hbqt/qth/QWidget.qth

  * contrib/hbqt/tests/demoqt.prg

  * contrib/hbxbp/tests/demoxbp.prg

  * contrib/hbxbp/xbpgeneric.prg
  * contrib/hbxbp/xbpmenubar.prg

  * contrib/hbqt/qtcore/*.cpp
  * contrib/hbqt/qtgui/*.cpp
  * contrib/hbqt/qtnetwork/*.cpp

    ! This commit change some rules to parse .qth files to 
      prepare the wrappers to be encapsulated in hb_retptrGC 
      envelop. It also attempts to pin-point the spots where
      mem-leak could occur. Only very few calls are left to 
      plain hb_retptr() which eventually will be handled
      the other way.

      Only delete ( Q* ) p; is retained. Other two methods are
      eliminated. Demos are updated to respect it.

      demoQT and demoXBP now consume very less memory when new 
      dialogs are opened. It means memory management has 
      improved with this commit. Anyhow still I can see 
      memory growing specially in browser navigation. As I 
      remember sometime in past I could manage the sonstant memory,
      but now I do not remember at what stage we were on Qt.

      Though all the three variants, demoQT, demoXBP, hbIDE are 
      working properly, still there could be regression, please test.
2010-01-17 07:11:24 +00:00
April White
1df5cb8b4d 2010-01-16 13:43 UTC+0500 April White (april users.sourceforge.net)
* contrib/hbbtree/test/test.prg
    * moved existing code into procedures in preparation for
      introducing more robust testing; a work in progress

  * contrib/hbbtree/test/test.hbp
    * added switches to reduce memory footprint and standard gt
2010-01-16 15:44:44 +00:00
Viktor Szakats
b704a9d436 2010-01-16 15:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* external/libpng/LICENSE
  * external/libpng/Makefile
  * external/libpng/png.c
  * external/libpng/png.h
  * external/libpng/pngrio.c
  * external/libpng/pngerror.c
  * external/libpng/pngconf.h
  * external/libpng/pngwrite.c
  * external/libpng/pngset.c
  * external/libpng/pngpread.c
  * external/libpng/pngwtran.c
  * external/libpng/pngwio.c
  * external/libpng/pngrutil.c
  * external/libpng/pngwutil.c
  * external/libpng/pngread.c
  * external/libpng/pngmem.c
  * external/libpng/pngget.c
  * external/libpng/pngrtran.c
  * external/libpng/pngtrans.c
  - external/libpng/pngvcrd.c
  - external/libpng/pnggccrd.c
  + external/libpng/pngpriv.h
    * Updated to 1.4.0 (from 1.2.40)

  * external/libpng/Makefile
    + Added -DPNG_NO_SETJMP for watcom builds to prevent these errors
      from happening:
         wcc386   -zq -bt=nt -bm -w0 -6s -fp6 -onaehtr -s -ei -zp4 -zt0 -oi -i. -i..\..\..\..\..\include -IF:\work\harbour\harbour\external\zlib -DUSE_FAR_KEYWORD -fo=pngread.obj  ..\..\..\pngread.c
         ..\..\..\pngread.c(86): Error! E1071: Type of parameter 2 does not agree with previous definition
         ..\..\..\pngread.c(86): Note! N2003: source conversion type is 'void (__watcall *)(unsigned int __p1[],int __p2)'
         ..\..\..\pngread.c(86): Note! N2004: target conversion type is 'void (__cdecl *)(unsigned int __p1[],int __p2)'
         wcc386   -zq -bt=nt -bm -w0 -6s -fp6 -onaehtr -s -ei -zp4 -zt0 -oi -i. -i..\..\..\..\..\include  -IF:\work\harbour\harbour\external\zlib  -fo=pngwrite.obj  ..\.
         .\..\pngwrite.c
         ..\..\..\pngwrite.c(507): Error! E1071: Type of parameter 2 does not agree with previous definition
         ..\..\..\pngwrite.c(507): Note! N2003: source conversion type is 'void (__watcall *)(unsigned int __p1[],int __p2)'
         ..\..\..\pngwrite.c(507): Note! N2004: target conversion type is 'void (__cdecl *)(unsigned int __p1[],int __p2)'

  * external/sqlite3/sqlite3.c
  * external/sqlite3/sqlite3.h
    + sqlite upgraded to 3.6.22 (from 3.6.21)
2010-01-16 14:45:52 +00:00
Przemyslaw Czerpak
238975d961 2010-01-16 12:25 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/hbwin.ch
  * harbour/contrib/hbwin/win_tprn.prg
  * harbour/contrib/hbwin/win_prn1.c
    + added support for custom paper size - based on code borrowed from
      xHarbour by Peter Rees and Budyanto Dj.
      Unlike in xHarbour to use custom page size it's necessary to set
      :FormType to FORM_CUSTOM
2010-01-16 11:26:08 +00:00
Viktor Szakats
d0741bbb40 2010-01-16 12:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/Makefile
  + contrib/hbct/diskhb.prg
  - contrib/hbct/diskhb.c
    + GETVOLINFO() rewritten in pure .prg code. It means it will
      work on all OSes which we have core support for.
      This currently means dos and win. OS/2 and other systems
      still have this as TODO. Anyone to add them?
2010-01-16 11:21:38 +00:00
Viktor Szakats
6f328f5600 2010-01-16 12:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/dattime3.c
    ! Cleaned windows header inclusion.
2010-01-16 11:09:09 +00:00
Viktor Szakats
0646355a18 2010-01-16 12:05 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/files.c
    - Deleted no longer necessary OS/2 and Windows specific headers.

  * contrib/hbct/print.c
    ! Fixed PRINTSEND() to return permanent zero (instead of NIL)
      on non-win/djgpp targets.
2010-01-16 11:06:59 +00:00
Viktor Szakats
86e5fc2ca4 2010-01-16 12:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/ctnet.c
  * contrib/hbct/disk.c
    ! Fixed all functions to be present in non-win builds and
      return permanent error.
    ! NETDISK() fixed to not throw two RTEs in a rare case.
2010-01-16 11:01:41 +00:00
Viktor Szakats
edba3b4829 2010-01-16 11:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv.prg
    ! Fixed server not setting password.
    + Added command history support.
    + Added sysinfo command.
    + Added clipboard paste support.
    + Implemented suggestions by Przemek (QOUT(), HB_STRCLEAR())
2010-01-16 10:40:33 +00:00
Przemyslaw Czerpak
2c7b6af1ce 2010-01-16 09:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_tprn.prg
    * updated some comments

  * harbour/contrib/hbwin/win_prn1.c
    ! replaced yet another constant value by DMORIENT_LANDSCAPE macro
2010-01-16 08:53:28 +00:00
Pritpal Bedi
a382606815 2010-01-15 21:14 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/qt45.qtp
  * contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/qtgui/filelist.mk
  + contrib/hbqt/qtgui/QMdiArea.cpp
  + contrib/hbqt/qtgui/QMdiSubWindow.cpp
  + contrib/hbqt/qtgui/TQMdiArea.prg
  + contrib/hbqt/qtgui/TQMdiSubWindow.prg
  + contrib/hbqt/qth/QMdiArea.qth
  + contrib/hbqt/qth/QMdiSubWindow.qth
    + Added QMDiArea() and QMdiSubWindow() classes.
2010-01-16 05:18:36 +00:00
Viktor Szakats
c07ce7ddf9 2010-01-16 02:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/tests/netiotst.prg
    ! Fixed to REQUEST dir related functions to avoid RTE.

  - contrib/hbnetio/tests/data
    - Deleted. Now it's created by RPC call.

  * contrib/hbwin/tests/testprn.prg
    * Formatting.

  * contrib/hbwin/win_prn1.c
    ! Using constants for dmOrientation.
2010-01-16 01:13:05 +00:00
Przemyslaw Czerpak
729c66f1e6 2010-01-16 01:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_prn1.c
    % eliminated some unnecessary HB_ISNUM( <n> ) calls
    ! fixed numeric values directly assigned to HB_BOOL
2010-01-16 00:37:34 +00:00
Przemyslaw Czerpak
3db2d99644 2010-01-16 00:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_tprn.prg
    + added automatic destructors to avoid resource leak
    + added support for late new page initialization by:
         oWinPrn:newPage( .T. )
      it allows to eliminate blank page when nothing is printed after
      :newPage() method
2010-01-15 23:48:31 +00:00
Pritpal Bedi
3734b30614 2010-01-15 15:36 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/ideobject.prg
  * contrib/hbide/idethemes.prg
    ! Fixed: to ensure that next invocation correctly sets the last
      working codec. [ Marco Bra ]
    ! Fixed: to correctly dispay the last line nos while inserting
      or deleting bottom lines. [ Marco Bra ]
    ! Enabled HBQT_RELEASE_WITH_DELETE protocol for hbIDE.
2010-01-15 23:39:52 +00:00
Przemyslaw Czerpak
310e8cc4ad 2010-01-15 21:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_prn1.c
    * changed 7-th parameter of WIN_TEXTOUT() function to operate on
      TA_* constant value instead of custom 0, 1, 2
    * modified WIN_SETBKMODE() to return current BkMode setting when called
      without 2-nd parameter

  * harbour/contrib/hbwin/win_tprn.prg
    + added BkMode member to WIN_PRN class
    * modified TextOut(), TextOutAt() and TextAtFont() methods to use
      nAlign as windows TA_* value instead of custom 0, 1, 2 and set
      default alignment to ( TA_BOTTOM + TA_LEFT )
    * formatting
2010-01-15 20:24:12 +00:00
Przemyslaw Czerpak
8517f3b274 2010-01-15 20:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbnetio/netiosrv.c
    ! fixed c&p typo - it should fix problem reported by Viktor in netiostv

  * harbour/contrib/hbwin/win_prn1.c
    * casting
2010-01-15 19:48:16 +00:00
Viktor Szakats
b943e3f350 2010-01-15 20:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/disk.c
    ! TRUENAME() compiler time error fixed for non-win OS after recent change.

  * contrib/hbct/diskhb.c
    ! GETVOLINFO() fixed to return empty string on non-win OS.
2010-01-15 19:26:34 +00:00
Przemyslaw Czerpak
a2c63946e8 2010-01-15 20:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_tprn.prg
    ! removed left by mistake unused variable
    * save only numeric parameters in SetColor() method.
      QUESTION: TextOut() method uses 4-th parameter to control text
                alignment but it uses own constant values:
                  0 == left, 1 == right, 2 == centered
                instead of TA_* constants. Should we keep it or rather
                use windows constant values adding also support for vertical
                alignment? In current xHarbour code this parameter was changed
                to accept windows constants and 5-th parameter was added which
                is OR-ed with the 4-th one but for me this part is redundant.
  * harbour/contrib/hbwin/win_prn1.c
    % minor optimization
2010-01-15 19:10:19 +00:00
Viktor Szakats
57369ad95c 2010-01-15 19:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/set.c
    ! ULONG -> HB_FATTR. Missed this occurrence of this ULONG
      in previous global modification pass.
      Error reported by Istvan Bisz.

  * contrib/hbct/Makefile
  * contrib/hbct/disk.c
  + contrib/hbct/diskhb.c
    ! Cleaned the way Windows headers are included.
    * Cleaned TRUENAME(), GETVOLINFO() and VOLSERIAL().
    + Using new UNICODE macros in TRUENAME(), GETVOLINFO() and VOLSERIAL().
    ! GETVOLINFO(), which is not a CT function, got moved
      to a separate source file to avoid name collisions.
    ; TOFIX: It should be moved to xhb lib eventually.

  * contrib/hbct/ctnet.c
    * Cleaned NETREDIR() and NETRMTNAME() functions.
    + Reworked NETREDIR() and NETRMTNAME() functions to use new UNICODE macros.
    + Extended return buffer in network functions to 128 (from 80).
    + NETRMTNAME() got support to return embedded zeros in name string.
    + Documented a hidden xhb extension in NETREDIR().
    % hb_WNetErrorHandler() static function merged into NETREDIR().
    ; TOFIX: Above hidden extension in NETREDIR() very much looks like
             a debugging feature, so I left a TOFIX to convert it to
             HB_TRACE() call.
    ; Please test them.

  * contrib/hbsqlit3/hbsqlit3.c
  * contrib/hbmisc/dates2.c
    - Deleted two functions which were recently made static,
      and it turned out they're not even used by Harbour.
      Warning reported by Istvan Bisz.

  * src/vm/hashfunc.c
  * src/vm/asort.c
  * src/rtl/cdpapi.c
  * contrib/xhb/xhbat.c
  * contrib/xhb/txtline.c
    * LONG -> HB_ISIZ

  * contrib/xhb/bkgtsks.c
    * SHORT -> int

  * contrib/xhb/hbcomprs.c
  * contrib/xhb/xhberrc.c
    * LONG -> long
2010-01-15 18:57:35 +00:00
Przemyslaw Czerpak
0ee3aa6d4f 2010-01-15 19:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbclass.ch
    * enable strict parameters validation in method declaration and
      implementation when warning level (-w?) is 3 or higher
    * small modification in error messages

  * harbour/contrib/hbwin/win_prn1.c
    ! fixed WIN_FILLRECT() to return logical value (result of FillRect()
      function)
    + extended WIN_SETPEN() to accept previously created by this function
      HPEN handles
    ! fixed WIN_SETCOLOR() to return previously allocated color.
      This function is used in such context in WIN_PRN class.

  * harbour/contrib/hbwin/win_tprn.prg
    + added PageNumber member
    ! fixed printer output detection to respect also graphic primitives
    ! fixed SetColor() not changed to win_SetColor() when code was ported
      from xHarbour
2010-01-15 18:25:14 +00:00
Viktor Szakats
9b462b15d0 2010-01-15 17:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/cmdarg.c
  * contrib/hbct/disk.c
    % Using HB_SIZEOFARRAY() instead of repeating declaration size.

  * src/vm/maindllp.c
  * src/vm/extend.c
  * include/hbtypes.h
  * include/hbapi.h
    + 'parinfa' retval ULONG -> HB_SIZE

  * src/vm/arrayshb.c
  * src/rtl/substr.c
  * src/rtl/replic.c
  * src/rtl/padr.c
  * src/rtl/padc.c
  * src/rtl/strtran.c
  * src/rtl/padl.c
  * src/rtl/lang.c
  * src/rtl/right.c
  * src/rtl/left.c
  * src/rtl/space.c
  * src/rtl/hbstrsh.c
  * src/rtl/rat.c
  * contrib/hbct/charsprd.c
  * contrib/xhb/xhbarr.c
  * contrib/hbpgsql/postgres.c
  * contrib/hbclipsm/stack.c
  * contrib/hbmisc/stringsx.c
    + 'long' -> HB_ISIZ

  * src/common/hbwince.c
  * include/hbwince.h
  * contrib/xhb/xhbat.c
  * contrib/xhb/cstructc.c
    + 'unsigned long' -> HB_SIZE

  * src/rtl/fstemp.c
  * src/rtl/net.c
    ! L'x' -> TEXT( 'x' ).
      'L' was used also in non-UNICODE mode, which doesn't seem right.

  * src/rtl/diskspac.c
  * contrib/hbct/disk.c
  * contrib/hbwin/win_com.c
  * contrib/hbwin/win_prn3.c
    * TCHAR literals enclosed inside TEXT() macro.

  * contrib/hbwin/win_prn1.c
    ! WIN_GETPRINTERFONTNAME(): Fixed buffer overrun in UNICODE
      mode for font names longer than 64 bytes.
      [TOMERGE 2.0]

  * ChangeLog
    + Added two missed changed to this entry:
      2010-01-15 12:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
        * include/hbdefs.h
          + Added HB_ISIZ temporary type to mark string/array/hash 
            index/length variable already using signed 'long' type.
            This will have to converted to HB_SIZE, one HB_SIZE
            gets also mapped to 'long'.
          * HB_FATTR mapped to HB_U32 (was: unsigned long)
2010-01-15 16:39:54 +00:00
Viktor Szakats
17a7f91323 2010-01-15 15:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbexprb.c
    ! s&r error bug in recent change.

  * utils/hbmk2/hbmk2.prg
    + Accepting name=, description=, verison= .hbc lines.
      Just a step, no real purpose.

  * contrib/hbodbc/odbc.c
    * long -> HB_SIZE
    * ULONG -> HB_SIZE
2010-01-15 14:12:58 +00:00
Viktor Szakats
af966c6e85 2010-01-15 12:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
    + Marked BOOL, TRUE and FALSE as HB_LEGACY_LEVEL3.
      This means these types will disappear from Harbour after next 
      major release.
      Please start to migrate to the new, pure Harbour replacement 
      types for portable Harbour code:
         HB_BOOL, HB_TRUE, HB_FALSE.

      Notice that you still may (and should) use BOOL, TRUE, FALSE
      when dealing with Windows API (and some other 3rd party APIs),
      where these are valid types in their own context.

  * include/clipdefs.h
    + Added BOOL, TRUE and FALSE as Clipper compatibility type.
      TRUE equals to 1 here for better Clipper compatibility
      (was: !0)
2010-01-15 11:21:32 +00:00