Commit Graph

12210 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
d95f99ceb6 2009-09-28 12:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbnetio/netio.h
  * harbour/contrib/hbnetio/netiocli.c
  * harbour/contrib/hbnetio/netiosrv.c
    * added dummy sync messages which can be used as non waiting confirmation
    % added separate messages for UNLOCK actions which are confirmed by
      dummy message
    * updated version number in login string to force client and server
      synchronization with new protocol (both have to be recompiled with
      current SVN code)
2009-09-28 10:57:53 +00:00
Pritpal Bedi
010f38d159 2009-09-27 12:58 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
    ! Modified TO implement destructors IN a different way.

  * contrib/hbqt/qth/QAbstractItemModel.qth
    + Added more CLASS members.

  * contrib/hbqt/hbqt.ch
  * contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_slots.cpp
  * contrib/hbqt/hbqt_slots.h
  * contrib/hbqt/moc_slots.cpp
    + Added more members plus re-worked event management to support multi-threads
      and multi-windows in a different perspective. It is an effort to locate where
      Harbour's Qt implementation is buggy with respect to ever increasing memory usage
      plus Qt's Paint Engine which appears to be dependant on thread's idle time.
      [ This is the way I preceive this fact ]

  * contrib/hbqt/QAbstractButton.cpp
  * contrib/hbqt/QAbstractItemModel.cpp
  * contrib/hbqt/QAbstractItemView.cpp
  * contrib/hbqt/QAbstractListModel.cpp
  * contrib/hbqt/QAbstractScrollArea.cpp
  * contrib/hbqt/QAbstractSlider.cpp
  * contrib/hbqt/QAbstractSpinBox.cpp
  * contrib/hbqt/QAbstractTableModel.cpp
  * contrib/hbqt/QAction.cpp
  * contrib/hbqt/QApplication.cpp
  * contrib/hbqt/QBitmap.cpp
  * contrib/hbqt/QBoxLayout.cpp
  * contrib/hbqt/QBrush.cpp
  * contrib/hbqt/QButtonGroup.cpp
  * contrib/hbqt/QCalendarWidget.cpp
  * contrib/hbqt/QColor.cpp
  * contrib/hbqt/QColorDialog.cpp
  * contrib/hbqt/QComboBox.cpp
  * contrib/hbqt/QCoreApplication.cpp
  * contrib/hbqt/QCursor.cpp
  * contrib/hbqt/QDateTime.cpp
  * contrib/hbqt/QDesktopWidget.cpp
  * contrib/hbqt/QDial.cpp
  * contrib/hbqt/QDialog.cpp
  * contrib/hbqt/QDir.cpp
  * contrib/hbqt/QDirModel.cpp
  * contrib/hbqt/QDockWidget.cpp
  * contrib/hbqt/QDragMoveEvent.cpp
  * contrib/hbqt/QErrorMessage.cpp
  * contrib/hbqt/QEvent.cpp
  * contrib/hbqt/QEventLoop.cpp
  * contrib/hbqt/QFileDialog.cpp
  * contrib/hbqt/QFileSystemModel.cpp
  * contrib/hbqt/QFocusFrame.cpp
  * contrib/hbqt/QFont.cpp
  * contrib/hbqt/QFontComboBox.cpp
  * contrib/hbqt/QFontInfo.cpp
  * contrib/hbqt/QFontMetrics.cpp
  * contrib/hbqt/QFontMetricsF.cpp
  * contrib/hbqt/QFormLayout.cpp
  * contrib/hbqt/QFrame.cpp
  * contrib/hbqt/QFtp.cpp
  * contrib/hbqt/QGridLayout.cpp
  * contrib/hbqt/QGroupBox.cpp
  * contrib/hbqt/QHBoxLayout.cpp
  * contrib/hbqt/QHeaderView.cpp
  * contrib/hbqt/QHttp.cpp
  * contrib/hbqt/QIcon.cpp
  * contrib/hbqt/QImage.cpp
  * contrib/hbqt/QImageReader.cpp
  * contrib/hbqt/QImageWriter.cpp
  * contrib/hbqt/QInputDialog.cpp
  * contrib/hbqt/QIODevice.cpp
  * contrib/hbqt/QKeyEvent.cpp
  * contrib/hbqt/QKeySequence.cpp
  * contrib/hbqt/QLabel.cpp
  * contrib/hbqt/QLayoutItem.cpp
  * contrib/hbqt/QLCDNumber.cpp
  * contrib/hbqt/QLineEdit.cpp
  * contrib/hbqt/QList.cpp
  * contrib/hbqt/QListView.cpp
  * contrib/hbqt/QListWidget.cpp
  * contrib/hbqt/QListWidgetItem.cpp
  * contrib/hbqt/QMainWindow.cpp
  * contrib/hbqt/QMenu.cpp
  * contrib/hbqt/QMenuBar.cpp
  * contrib/hbqt/QMessageBox.cpp
  * contrib/hbqt/QModelIndex.cpp
  * contrib/hbqt/QMouseEvent.cpp
  * contrib/hbqt/QMoveEvent.cpp
  * contrib/hbqt/QObject.cpp
  * contrib/hbqt/QPaintDevice.cpp
  * contrib/hbqt/QPainter.cpp
  * contrib/hbqt/QPalette.cpp
  * contrib/hbqt/QPen.cpp
  * contrib/hbqt/QPicture.cpp
  * contrib/hbqt/QPixmap.cpp
  * contrib/hbqt/QPoint.cpp
  * contrib/hbqt/QPrintDialog.cpp
  * contrib/hbqt/QPrintEngine.cpp
  * contrib/hbqt/QPrinter.cpp
  * contrib/hbqt/QPrintPreviewDialog.cpp
  * contrib/hbqt/QProcess.cpp
  * contrib/hbqt/QProgressDialog.cpp
  * contrib/hbqt/QPushButton.cpp
  * contrib/hbqt/QRect.cpp
  * contrib/hbqt/QRectF.cpp
  * contrib/hbqt/QRegion.cpp
  * contrib/hbqt/QResource.cpp
  * contrib/hbqt/QScrollArea.cpp
  * contrib/hbqt/QScrollBar.cpp
  * contrib/hbqt/QSignalMapper.cpp
  * contrib/hbqt/QSize.cpp
  * contrib/hbqt/QSizeF.cpp
  * contrib/hbqt/QSizeGrip.cpp
  * contrib/hbqt/QSlider.cpp
  * contrib/hbqt/QSound.cpp
  * contrib/hbqt/QSplashScreen.cpp
  * contrib/hbqt/QSplitter.cpp
  * contrib/hbqt/QStandardItem.cpp
  * contrib/hbqt/QStandardItemModel.cpp
  * contrib/hbqt/QStatusBar.cpp
  * contrib/hbqt/QStyle.cpp
  * contrib/hbqt/QStyledItemDelegate.cpp
  * contrib/hbqt/QStyleOption.cpp
  * contrib/hbqt/QSystemTrayIcon.cpp
  * contrib/hbqt/QTabBar.cpp
  * contrib/hbqt/QTableView.cpp
  * contrib/hbqt/QTableWidget.cpp
  * contrib/hbqt/QTableWidgetItem.cpp
  * contrib/hbqt/QTabWidget.cpp
  * contrib/hbqt/QTextBoundaryFinder.cpp
  * contrib/hbqt/QTextCursor.cpp
  * contrib/hbqt/QTextDecoder.cpp
  * contrib/hbqt/QTextDocument.cpp
  * contrib/hbqt/QTextDocumentFragment.cpp
  * contrib/hbqt/QTextDocumentWriter.cpp
  * contrib/hbqt/QTextEdit.cpp
  * contrib/hbqt/QTextEncoder.cpp
  * contrib/hbqt/QTextFormat.cpp
  * contrib/hbqt/QTextFrame.cpp
  * contrib/hbqt/QTextLayout.cpp
  * contrib/hbqt/QTextStream.cpp
  * contrib/hbqt/QTimer.cpp
  * contrib/hbqt/QToolBar.cpp
  * contrib/hbqt/QToolBox.cpp
  * contrib/hbqt/QToolButton.cpp
  * contrib/hbqt/QTreeView.cpp
  * contrib/hbqt/QTreeWidget.cpp
  * contrib/hbqt/QTreeWidgetItem.cpp
  * contrib/hbqt/QUrl.cpp
  * contrib/hbqt/QVariant.cpp
  * contrib/hbqt/QVBoxLayout.cpp
  * contrib/hbqt/QWebHistoryInterface.cpp
  * contrib/hbqt/QWebHistoryItem.cpp
  * contrib/hbqt/QWebHitTestResult.cpp
  * contrib/hbqt/QWebPage.cpp
  * contrib/hbqt/QWebPluginFactory.cpp
  * contrib/hbqt/QWebSecurityOrigin.cpp
  * contrib/hbqt/QWebView.cpp
  * contrib/hbqt/QWidget.cpp
  * contrib/hbqt/QWidgetAction.cpp
  * contrib/hbqt/QWindowsStyle.cpp
  * contrib/hbqt/QWindowsXPStyle.cpp
  * contrib/hbqt/QWizard.cpp
  * contrib/hbqt/TQAbstractItemModel.prg
    ! Result of change in implemention of destructors in hbqtgen.prg.

    [ In this commit I had concentrated on two pit-falls which may 
      certainly prevent Qt's efficacy in Habour applications:

          1. Ever-growing memory usage.
          2. GPF in multi-threaded multi-windows

      Though I have tried my level best to pin-point where memory usage
      keeps up growing, I could not find anything worth control. I changed the 
      way destructors were implemented before, but that also seems to be 
      insufficent. But as we have better control over the events, some 
      of you will be able to locate what exactly is the problem.

      GPF in multi-threaded multi-window scenario is caused by PAINT event
      which produces GPF is CPU is not released momentarily for that thread.
      So I inserted hb_idleSleep( 0.2 ) in the code where PAINT event is about 
      to be returning, and the GPF went away. But this insertion has a greater
      damaging effect that it slows down the application considerably as 
      with each single keystroke, appln becomes idle for that much period.
      I have guarded this under QT_EXECUTE_IN_THREADS constant for now.
      If you want to play with this feature than compile HBQT with it
      and then open <Dialogs><One more instance> menu option. Do not 
      bother about how slow appln executes but simply open as mamny 
      dialogs as you want and navigate different components.
      NOTE: you may require to increase nMilliSeconds in hb_idleSleep( 0.2 )
            from 0.2 to 0.5 as this value is heavily CPU dependant.

      Hope someone will be able to locate exact fixes to above two issues. ]
2009-09-27 20:29:12 +00:00
Viktor Szakats
1788fba41e 2009-09-24 19:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Sections numbered for easier reference when pointing to it 
      in e-mail answers.
2009-09-24 17:17:23 +00:00
Viktor Szakats
90ecce3331 2009-09-24 18:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.sh
    ! Commented messing around with include attribs.
      I guess this should only be done if HB_INSTALL_PREFIX is some 
      temp area where we assemble distro package.
      Fixme.
2009-09-24 16:43:03 +00:00
Viktor Szakats
91c3593b31 2009-09-24 17:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* Makefile
  * utils/Makefile
    * Changed to build hbrun and hbmk2 in HB_BUILD_PARTS=compiler mode.
    + Added running bin/postinst.prg.

  + bin/postinst.prg
    + Added postinst.prg with test content.

  * package/winuni/RELNOTES
    * Added information about new MinGW CEGCC build.

  * utils/Makefile
    * Changed HB_UTILS setting name to HB_UTIL_ADDONS. To be 
      in sync with rest of similar settings.

  * INSTALL
    + Documented HB_UTIL_ADDONS setting. (formerly HB_UTILS)
2009-09-24 15:43:10 +00:00
Viktor Szakats
61b9f8613c 2009-09-24 16:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour/config/globsh.mk
    + Added command $(TRUE) as dummy one for all shells. Pls check.
      The goal is to have a command which does nothing just returns success.
2009-09-24 14:01:03 +00:00
Przemyslaw Czerpak
c4094316b1 2009-09-24 15:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/instsh.mk
    ! added global protection against installing files to source location

  * harbour/config/global.mk
    * removed previous partial protection
2009-09-24 13:21:13 +00:00
Przemyslaw Czerpak
0574cea7be 2009-09-24 14:14 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbmemio/memio.c
    * pacified warning
2009-09-24 12:15:16 +00:00
Przemyslaw Czerpak
386083bbd1 2009-09-24 13:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/itemapi.c
    * modified (optimized manually) hb_itemPutNLen() to not exploit bug
      in ICC optimizer when itemapi.c is compiled by ICC with -fpic switch.

  * harbour/source/vm/vmmt/Makefile
    * removed hack for ICC compilers which disabled HB_VM_ALL in ICC builds
       BTW it was not enough (my mistake) and the problem was exploited also
           when itemapi.c was compiled standalone
2009-09-24 11:58:08 +00:00
Viktor Szakats
e70086da86 2009-09-24 13:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    % Using -undef:.ARCH.
    ! Fixed all potential unused tmp3 errors.

  * config/global.mk
    % Using -undef:.ARCH.
2009-09-24 11:52:43 +00:00
Przemyslaw Czerpak
7f5400d2ba 2009-09-24 13:26 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbthread.h
    * modified some internal structure definitions (used nameless unions)
      to pacify possible warnings on structure initialization.
2009-09-24 11:26:33 +00:00
Przemyslaw Czerpak
7d8dad6605 2009-09-24 11:23 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/include/hbcompdf.h
  * harbour/source/pp/pplib.c
  * harbour/source/pp/ppcore.c
  * harbour/source/compiler/cmdcheck.c
  * harbour/source/compiler/ppcomp.c
    + added support for disabling all automatically set platform dependent
      macros by '-undef:.ARCH.' switch.
      .ARCH. is meta flag to select all architecture dependent macros:
      __PLATFORM__*, __ARCH??BIT__, __*_ENDIAN__
      It should simplify cross build harbour compiler settings in
      core make system and hbmk2 or hb* scripts.

  * harbour/config/dos/watcom.mk
  * harbour/config/os2/watcom.mk
  * harbour/config/win/pocc.mk
  * harbour/config/win/bcc.mk
  * harbour/config/win/watcom.mk
  * harbour/config/linux/watcom.mk
    * disable C compiler warnings when HB_BUILD_WARN=no. Some compilers
      enable warnings by default.
      It pacifies warnings when external libraries are compiled.
2009-09-24 09:23:34 +00:00
Viktor Szakats
938b5e2540 2009-09-24 09:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    % Optimized arch bit macro redefinition.
    + Added arm CPU to arch bit target macro definition.
2009-09-24 07:56:51 +00:00
Viktor Szakats
d5bf6a50fd 2009-09-24 09:34 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Pelles C support version numbers adjusted.
      6.0 DOESN'T work with Harbour due to multiple bugs in this compilers.
      Don't report such problems to the list.

  * package/winuni/HARBOUR_README_MINGWARM 
    * Updated for latest cegcc binary release.

  * utils/hbmk2/hbmk2.prg
    ! Typo in BSD macro redefinition.

  * config/global.mk
    + Extended platform macro redefinition for all supported platforms.
    + Extended arch bit macro redefinition (didn't test it though)

  * config/globsh.mk
    ! Fixed implib not being deleted when using POSIX shells.
    ! Fixed dynlib and implib not being deleted when using OS/2 or MS-DOS shells.
2009-09-24 07:39:25 +00:00
Przemyslaw Czerpak
40ca66681a 2009-09-23 22:05 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbffind.c
    ! do not use GetVolumeInformation() in WinCE builds

  * harbour/mpkg_rpm.sh
  * harbour/harbour.spec
    + added new switches '--with localzlib' '--with localpcre'
    * updated to work with current base make system
      TODO: better integration with current base make system
2009-09-23 20:06:33 +00:00
Przemyslaw Czerpak
1c7c124232 2009-09-23 17:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcomp.h
    * minor formatting

  * harbour/source/rdd/dbfnsx/dbfnsx1.c
    ! fixed false corruption RT error generated due to missing reset
      on cached current key offset - thanks to Jaroslav Janik for
      information and self contain example
2009-09-23 15:52:09 +00:00
Mindaugas Kavaliauskas
3bf190ea51 2009-09-23 16:30 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* contrib/hbmemio/memio.c
    ! added missing structure field initialization
2009-09-23 13:29:52 +00:00
Maurilio Longo
037de7b4b4 2009-09-23 14:15 UTC+0200 Maurilio Longo (maurilio.longo@libero.it)
* config/os2/gcc.mk
   * source/vm/Makefile
     * finalized OS/2 GCC .DLLs creation at build time.
2009-09-23 12:16:32 +00:00
Mindaugas Kavaliauskas
86c8a6a2bc 2009-09-23 14:30 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* contrib/hbmemio/memio.c
    ! fixed cleanup code
2009-09-23 11:33:00 +00:00
Mindaugas Kavaliauskas
437754c513 2009-09-23 00:13 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* contrib/hbmemio/memio.c
    ! fixed typo in hb_memfsDelete()
2009-09-22 21:11:13 +00:00
Viktor Szakats
c5f3c610ea 2009-09-22 22:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    ! Typo
2009-09-22 20:09:15 +00:00
Viktor Szakats
e6399e45fd 2009-09-22 18:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * config/global.mk
    ! Changed .dll names for OS/2 to be the same as in MS-DOS:
      harbour/harbourm. (.dll names in OS/2 are limited to 8.3)

  * config/dos/djgpp.mk
    ! Attempt to fix empty line problem when stripping isn't requested.
      Something better would be good here.

  * config/os2/gcc.mk
    ! Fixed empty line problem when stripping isn't requested.
2009-09-22 16:52:31 +00:00
Mindaugas Kavaliauskas
a8fc3a28d2 2009-09-22 17:10 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* contrib/hbmemio/memio.c
    + added cleanup on application exit
    * some warnings pacified
2009-09-22 14:09:59 +00:00
Viktor Szakats
3ad13ee5e1 2009-09-22 14:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmemio/tests/test.prg
  * contrib/hbmemio/memio.c
    * Internal name also renamed to HB_MEMIO (from HB_IODMEM).

  * source/vm/dynlibhb.c
    + cast.
2009-09-22 12:57:36 +00:00
Przemyslaw Czerpak
04de1a8cce 2009-09-22 12:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrddcdx.h
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
    + added support for national sorting using accented and multibyte
      characters.
      Warning CDX indexes created so far for such CDPs are not sorted using
      the same conditions as current SVN code so new applications should
      reindex.
      Harbour codepages with accented characters:
         cs852, csiso, cskam, cswin,
         sk852, skiso, skkam, skwin
         sv850, sviso, svwin
         fr850, friso, frwin
         el737, elwin,
      Harbour codepages with multibyte characters:
         cs852, csiso, cskam, cswin,
         sk852, skiso, skkam, skwin
      Now string keys in CDX indexes using above codepages are sorted
      in the same way as HVM sorts strings. Please only remember that
      CDX internal format was designed for byte weight sorting so such
      CPs may reduce internal compression level increasing the size of
      final indexes.
      After this modification all native index types (NTX, NSX and CDX)
      fully respects national sorting defined in Harbour CPs.
2009-09-22 10:58:10 +00:00
Viktor Szakats
400e03243e 2009-09-22 09:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/dynlibhb.c
    ! Minor typo.
2009-09-22 07:53:16 +00:00
Viktor Szakats
786dc0ec9b 2009-09-22 09:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbwince.h
  * source/common/hbwince.c
    + Added WIDE version of dummy winapi implementations for WinCE.

  * source/common/hbffind.c
  * source/common/hbfsapi.c
  * source/rtl/diskspac.c
  * source/rtl/disksphb.c
  * source/rtl/filesys.c
  * source/vm/dynlibhb.c
  * contrib/hbmzip/hbmzip.c
  * contrib/xhb/filestat.c
  * contrib/hbwin/win_dll.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
    + Changed forced ANSI version of winapi calls to native version.
    ! Fixed potential GPF in WIN_LOADBITMAPFILE().
    % Cleaned types/variables in hb_PrintFileRaw().
    % Minor type cleanup and formatting in filestat.c.
    ; TODO: There are still some forced ANSI calls in Harbour code:
            (plus some dynamically called ones)
      ---
      source/common/hbver.c:264:      if( GetVersionExA( &osVer ) )
      source/common/hbver.c:306:                  if( GetVersionExA( ( OSVERSIONINFOA * ) &osVerEx ) )
      source/common/hbgete.c:75:      DWORD size = GetEnvironmentVariableA( szName, NULL, 0 );
      source/common/hbgete.c:80:         GetEnvironmentVariableA( szName, pszBuffer, size );
      source/common/hbgete.c:114:   bRetVal = GetEnvironmentVariableA( szName, szBuffer, nSize ) != 0;
      source/common/hbgete.c:157:   return SetEnvironmentVariableA( szName, szValue ) != 0;
      source/rtl/filesys.c:2687:   fResult = GetCurrentDirectoryA( ulSize, pszBuffer );
      source/rtl/filesys.c:2876:      type = GetDriveTypeA( buffer );
      source/rtl/fstemp.c:153:         if( ! GetTempPathA( ( DWORD ) ( HB_PATH_MAX - 1 ), pszName ) )
      source/rtl/fstemp.c:270:         if( ! GetTempPathA( ( DWORD ) HB_PATH_MAX, szTempDir ) )
      source/rtl/fstemp.c:278:      fResult = GetTempFileNameA( szTempDir, pszPrefix ? pszPrefix : "hb", 0, pszBuffer );
      source/rtl/net.c:157:   GetComputerNameA( pszValue, &ulLen );
      source/rtl/net.c:186:   GetUserNameA( pszValue, &ulLen );
      contrib/hbwin/win_prn2.c:169:      DWORD dwSize = GetProfileStringA( "windows", "device", "", pPrinterName, *pdwBufferSize );
      ---

  ; Review me.
2009-09-22 07:49:14 +00:00
Viktor Szakats
7f5ce57f2c 2009-09-22 07:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmemio/memio.c
    ! Fixed warnings reported by gcc and msvc.
      Please review me.
2009-09-22 05:44:11 +00:00
Viktor Szakats
084c037d63 2009-09-22 02:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/maindllp.c
    ! Fixed for Unicode mode (msvc2010 x64).
2009-09-22 00:05:35 +00:00
Viktor Szakats
4551f563c3 2009-09-22 00:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/win/global.mk
    + Enabled UNICODE mode for all 64-bit Windows targets.
      Here there is no concern about Win9x compatibility, so
      it can be safely done, and I hope this move will make it
      easier to catch UNICODE coding problems, as it will be now
      part of some default builds.
      The ultimate litmus test is on Windows is msvc64, where
      C++, 64-bit and Unicode compatibility is tested at the
      same time.
2009-09-21 22:44:55 +00:00
Viktor Szakats
f52eb40c28 2009-09-22 00:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbmemio/tests
  + contrib/hbmemio/tests/hbmk.hbm
  + contrib/hbmemio/tests/test.prg
    + Added test dir.
    + Added test code included by Mindaugas in the ChangeLog entry.

  * contrib/hbmemio/Makefile
  + contrib/hbmemio/memio.c
  - contrib/hbmemio/iodmem.c
    * Renamed to be in sync with netio.
    ! Fixed strcpy() call to hb_strncpy().
      Review me I didn't check if the set length limit is a valid one.
    ! Fixed C++ casting errors on buffer allocation calls.
    ; TOFIX: These warnings remain:
      ---
      ../../../memio.c(170) : warning C4244: 'argument' : conversion from 'HB_FOFFSET' to 'ULONG', possible loss of data
      ../../../memio.c(423) : warning C4244: '=' : conversion from 'HB_FOFFSET' to 'ULONG', possible loss of data
      ../../../memio.c(452) : warning C4244: 'argument' : conversion from 'HB_FOFFSET' to 'ULONG', possible loss of data
      ../../../memio.c(501) : warning C4244: 'argument' : conversion from 'HB_FOFFSET' to 'ULONG', possible loss of data
      ../../../memio.c(508) : warning C4244: 'argument' : conversion from 'HB_FOFFSET' to 'ULONG', possible loss of data
      ../../../memio.c(580) : warning C4267: 'argument' : conversion from 'size_t' to 'ULONG', possible loss of data
      ../../../memio.c(627) : warning C4267: '=' : conversion from 'size_t' to 'ULONG', possible loss of data
      ../../../memio.c(674) : warning C4244: 'argument' : conversion from 'int' to 'USHORT', possible loss of data
      memio.c(373) : warning C4701: potentially uninitialized local variable 'pFile' used
      ---

  * contrib/hbmemio/hbmemio.hbc
    ! Corrected svn props to be like in howtosvn.txt.
2009-09-21 22:26:46 +00:00
Viktor Szakats
e0ca13db06 2009-09-21 00:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- contrib/iodmem
  + contrib/hbmemio
  - contrib/hbmemio/iodmem.hbc
  + contrib/hbmemio/hbmemio.hbc
  * contrib/hbmemio/Makefile
  * contrib/Makefile
    * Renamed to have 'hb' prefix and to be in line with hbnetio.
    ! Fixed props on Makefile.
    ! Corrected to list this lib in no-dependency section in contrib/Makefile.
2009-09-21 22:13:27 +00:00
Mindaugas Kavaliauskas
0c8a24aae9 2009-09-21 22:50 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/contrib/Makefile
  + harbour/contrib/iodmem/Makefile
  + harbour/contrib/iodmem/iodmem.hbc
    + added make files
  * harbour/contrib/iodmem/iodmem.c
    ! updated to be compatible with the latest SVN (rename method implemented)
    * some warnings are fixed
2009-09-21 19:51:10 +00:00
Mindaugas Kavaliauskas
ae870f642a 2009-09-21 17:20 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/contrib/iodmem
  + harbour/contrib/iodmem/iodmem.c
    + Implemented Memory file system. Public functions hb_memfs*() are 
      availible, if HB_MEMFS_PUBLIC_API is defined.
    + Implemeted I/O driver for memory file system
    ; HB_IODMEM request can be used to force linking of I/O driver and 
      memory FS into executable.
      "mem:" prefix should be used to indicate a MemFS file, ex.:

      REQUEST HB_IODMEM

      PROC main()
        LOCAL nI
        FIELD F1

        DBCREATE("mem:test", {{"F1", "N", 9, 0}},, .T., "memarea")
        FOR nI := 1 TO 1000
          DBAPPEND();  F1 := HB_RANDOM() * 1000000
        NEXT
        INDEX ON F1 TAG f1
        DBEVAL({|| QOUT(F1)})
        DBCLOSEAREA()
        DBDROP("mem:test")  // Free memory resource
      RETURN

    ; TODO: locking is not supported yet (but it is not very usefull 
      if MemFS is used to store of a temporary database opened in 
      exclusive mode).
2009-09-21 14:24:02 +00:00
Viktor Szakats
a272a7d91e 2009-09-21 15:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fix to -strip with -hblib support for gcc targets.
2009-09-21 13:29:32 +00:00
Viktor Szakats
8d643e66d9 2009-09-21 15:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added support for -strip option in -hblib mode.
    ! Fixed -strip in -hbdyn mode for darwin and sunos targets which
      use individual strip command.

  * harbour-win-spec
  * harbour-wce-spec
    * Reverted change in 2009-09-21 14:03.
    ; See related pending question on dev list.
2009-09-21 13:25:20 +00:00
Viktor Szakats
2c1f147aab 2009-09-21 15:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/sunos/global.mk
    ! Fixed to not use -s option for stripping. This doesn't seem to
      be supported on sunos platform, at least according to code found
      in hbmk2.

  * utils/hbmk2/hbmk2.prg
    + Added support for -strip in -hbdyn mode.
    + Added -strip support for sunos/gcc targets.
    ! Fixed to use strip command instead of -s option with sunos/sunpro
      targets.

  * utils/hbmk2/hbmk2.prg
  * config/bin.mk
    + Added hbmainstd lib for os/2 targets in shared mode.
      Maurilio, please restest after this change.

  ; Needless to say I couldn't test these, so I'd appreciate if sunos
    users could verify it (except -strip in -hbdyn mode).
2009-09-21 13:13:17 +00:00
Viktor Szakats
17302d7efe 2009-09-21 14:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour-win-spec
  * harbour-wce-spec
    % Deleted some unnecessary lines (related to strip feature)

  * harbour.spec
    * HB_INC_* -> HB_WITH_*
2009-09-21 12:04:11 +00:00
Viktor Szakats
c0db32322f 2009-09-21 12:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour-win-spec
  * harbour-wce-spec
  * harbour.spec
    % Using HB_BUILD_STRIP instead of stripping locally.

  * harbour.spec
    % Using HB_BUILD_SHARED instead of rebuilding tools locally.
    * Changed 'make -i' to 'make' to sync with other spec files.
2009-09-21 10:55:37 +00:00
Viktor Szakats
64bb552abd 2009-09-21 12:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/libpng/LICENSE
    ! Missed one file from prev.
2009-09-21 10:42:53 +00:00
Viktor Szakats
6093e8c3ba 2009-09-21 12:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/libpng/pngconf.h
  * external/libpng/pngset.c
  * external/libpng/pngwutil.c
  * external/libpng/png.c
  * external/libpng/png.h
    * Updated to 1.2.40 (from 1.2.39)
2009-09-21 10:40:57 +00:00
Viktor Szakats
a3999d669a 2009-09-21 12:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/beos/gcc.mk
  * config/beos/global.mk
  * config/bsd/gcc.mk
  * config/bsd/global.mk
  * config/wce/mingwarm.mk
  * config/hpux/gcc.mk
  * config/hpux/global.mk
  * config/dos/djgpp.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
  * config/linux/icc.mk
  * config/linux/sunpro.mk
  * config/os2/gcc.mk
  * config/sunos/gcc.mk
  * config/sunos/global.mk
  * config/sunos/sunpro.mk
    + Added HB_BUILD_STRIP support for rest of compilers.
    ; Please make tests.

  * bin/postinst.sh
    - Deleted strip from postinst phase.
2009-09-21 10:13:39 +00:00
Viktor Szakats
834a3120c8 2009-09-21 11:44 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
    ! Fixed to recent changes to sysloc detection.

  * config/linux/gcc.mk
    + Added HB_BUILD_STRIP for linux/gcc.

  * config/bin.mk
    ! Fixed to not try to build a shared binary for binaries not
      dependent on HVM. It's done in a little tricky way, maybe
      we should introduce a new variable to signal Harbour
      executables vs plain C ones.
      This should fix link errors in harbour reported by users.
2009-09-21 09:46:33 +00:00
Maurilio Longo
f2bc3821d0 2009-09-21 11:28 UTC+0200 Maurilio Longo (maurilio.longo@libero.it)
! ChangeLog
    ! forgot to write here my latest change
2009-09-21 09:29:30 +00:00
Viktor Szakats
047cbef865 2009-09-21 11:16 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/Makefile
  * contrib/hbqt/hbqts/Makefile
  * contrib/gtqtc/Makefile
  * contrib/gtqtc/gtqtcs/Makefile
    ! Fixed QT detection on darwin after 2009-09-18 12:19 change
      in detfun.mk.

  * utils/hbmk2/hbmk2.prg
    + Comment added (from .mk).

  * config/darwin/gcc.mk
  * config/darwin/icc.mk
  * config/darwin/clang.mk
  * config/darwin/global.mk
  * config/rules.mk
    + Implemented HB_BUILD_STRIP for darwin.
      (on darwin strip has to be called directly)
2009-09-21 09:18:24 +00:00
Viktor Szakats
2ac1c87c51 2009-09-20 23:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    ! Added missing lines from prev entry:
      * bin/postinst.sh
        + Added HB_CCPATH to strip cmd. Suggest by Przemek.
        ! Minor fix to find cmd by Tamas Tevesz.
2009-09-20 21:00:47 +00:00
Viktor Szakats
9dfc53ab9f 2009-09-20 22:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour-win-spec
  * harbour-wce-spec
  * INSTALL
  * bin/postinst.sh
  * Makefile
  * source/pp/Makefile
  * source/Makefile
  * config/global.mk
    * HB_BUILD_PART -> HB_BUILD_PARTS (simple rename)
    + HB_BUILD_STRIP added. It's dummy yet. Support will have to
      be added on the compiler level and removed from postinst phase.
2009-09-20 20:41:51 +00:00
Przemyslaw Czerpak
ec1e80e140 2009-09-20 18:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/harbour-win-spec
  * harbour/harbour-wce-spec
  * harbour/bin/hb-func.sh
  * harbour/config/global.mk
    * updated to work with modified base make internals and envvars
    * do not overload defined by user HB_TOOLS_PREF
    ! fixed c&p typo in DJGPP cross build HB_TOOLS_PREF
      Warning: it still needs export HB_BUILD_SHARED=no before creating
      RPMs but it should be fixed in base make together with native builds.
      TODO: we should agree some conditions for alternative system wide
      cross build installation, like .cfg file name and localization.
2009-09-20 16:12:43 +00:00
Viktor Szakats
48453b8c66 2009-09-20 17:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ; Fixes based on Przemek's extensive tests/suggestions on different *nix systems.
    ! -fixshared option now only effective for gcc compilers. For the rest 
      it behaves as -fullshared.
    ! Added x11 and curses/slang libpath for bsd targets in shared mode.
      hbmk2 solution is rough, but didn't see a reason to make it more 
      complicated. I hope it fixes the problem.
    + Enabled -fullstatic mode for sunpro compilers.

  * utils/hbmk2/hbmk2.prg
    ! Fixed to add /usr/X11R6/lib64 dir to libpath list on linux 
      targets only. (sync with similar guard in sunpro compiler support)

  ; TOFIX: This leaves the GPF in sunpro/linux on the pending list.
  ; TOFIX: And here comes to mind that mingw64 also GPFs in shared mode.
2009-09-20 15:05:50 +00:00
Viktor Szakats
062fb1dbea 2009-09-20 16:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * config/global.mk
    + Added beos system location detection.
    + Added system location detection based on [LD_]LIBRARY_PATH.
    ; Please review and even tweak code if needed. I didn't test these changes.

  * utils/hbmk2/hbmk2.prg
    % system location detection code disabled for non-*nix hbmk2 builds.
      It's of no use there, as far as I can overview all scenrios.

  * config/global.mk
    * Restored default lib dir to simply lib on *nixes.
    % Minor opt to system location detection.
    ! Fixed to only use 'harbour' lib/inc postfixes on beos 
      when installed on system location. Thanks Przemek for the patch.
2009-09-20 14:36:21 +00:00