Commit Graph

12604 Commits

Author SHA1 Message Date
Viktor Szakats
b6090bac2f 2009-11-25 11:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/os2/gcc.mk
    ! Fixed (after recent cleanup of CFLAGS usage) to add -Zomf 
      for gccomf target to link command.
2009-11-25 10:15:54 +00:00
Viktor Szakats
0f02c19ad3 2009-11-25 09:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * -bm watcom option disabled for linux to get in sync with
      GNU Make system.
2009-11-25 08:38:43 +00:00
Przemyslaw Czerpak
5f878fd336 2009-11-25 03:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/fm.c
    * removed not longer used HVM stack pointer variables
2009-11-25 02:24:50 +00:00
Pritpal Bedi
6667503c73 2009-11-24 18:20 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
    + Started <Project Properties> Dialog.
      Your comments are welcome. I am interested what else might be required for
      peoject management property so that we are comfortable in future.
2009-11-25 02:21:22 +00:00
Przemyslaw Czerpak
a8768c8546 2009-11-25 02:18 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/tests/bldtest/bldtest.c
    * disabled requirement for signed 'char' type - current Harbour code
      should work with 'char' defined as signed and unsigned value.
2009-11-25 01:19:03 +00:00
Przemyslaw Czerpak
04d825b402 2009-11-25 00:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/fm.c
    * enabled HB_FM_DL_ALLOC by default in OS2 OpenWatcom builds

  * harbour/config/os2/watcom.mk
    ! enabled -bm flag (MT code) in OS2 OpenWatcom builds - now when
      HB_FM_DL_ALLOC is enabled by default it should not kill the
      performance. Please make tests with OS2 OpenWatcom builds.
2009-11-24 23:50:57 +00:00
Pritpal Bedi
aa83980736 2009-11-24 14:20 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbxbp/xbplistbox.prg

  + contrib/hbide/resources/zoomin.png
  + contrib/hbide/resources/zoomout.png

  * contrib/hbide/ideactions.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/hbide.prg
    + Added ZoomIn, ZoomOut toolbar buttons for in-place zoom-in/out 
        text decoration. Very handy visualization.
    + Implemented undo/redo/cut/copy/paste/select all/to upper/to lower/invert case/ icons.
    ! Fixed many artifacts.

    Please play with the tool and report back your experiences.
2009-11-24 22:26:30 +00:00
Viktor Szakats
c227481f42 2009-11-24 16:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/fscopy.c
    ! Fixed to use the same file opening method as in __COPYFILE().
      This should fix creating zero byte file on OS/2 when the source
      and target file is the same.
    ; Please test.

  * contrib/hbwin/win_prn3.c
    * Minor.
2009-11-24 15:58:17 +00:00
Przemyslaw Czerpak
33ac359145 2009-11-24 16:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/dlmalloc.c
    % use harbour spin locks if available by default in all builds

  * harbour/include/hbatomic.h
    * removed HB_SPINLOCK_SLEEP macro and enable code to always yield
      the processor in spin locks
    * cover double spin lock setting by HB_SPINLOCK_REPEAT

  * harbour/src/vm/garbage.c
    * removed unused HB_SPINLOCK_SLEEP macro

  * harbour/include/hbstack.h
  * harbour/src/vm/estack.c
    + added new internal function hb_stackAllocator()
    * disable hb_stackTotalItems() stack macro so this function can be
      used also in internal HVM code to check if stack is initialized

  * harbour/src/vm/fm.c
    ! use hb_stackAllocator() to access pointer to DLMALLOC mspace
      It should fix GPF when DLMT was used in OS2 builds - please test.
2009-11-24 15:49:02 +00:00
Pritpal Bedi
e983c99933 2009-11-24 07:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbxbp/xbplistbox.prg
  * contrib/hbxbp/xbptreeview.prg
  * contrib/hbide/hbide.hbp
  * contrib/hbide/hbide.prg
  + contrib/hbide/ideactions.prg
    + More grandulariy.
  * contrib/hbide/idemisc.prg
    + Added and fixed many artifacts.
2009-11-24 15:45:54 +00:00
Przemyslaw Czerpak
151c7d4881 2009-11-24 14:29 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbsetup.h
    * minor extension to CPU detection macros
2009-11-24 13:29:59 +00:00
Przemyslaw Czerpak
a59eecc1b9 2009-11-24 13:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/cdpapi.c
    ! fixed bad typo in hb_cdpTranslateChar() function
2009-11-24 12:20:59 +00:00
Viktor Szakats
4b0774530b 2009-11-24 12:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwin.ch
  * contrib/hbwin/win_prn2.c
    + Added support for server name in WIN_PRINTERLIST() (GETPRINTER())

  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/legacycp.c
  * ChangeLog
    * Some renaming, to keep all functions in the WIN_PRINT*() namespace.
      Prev entry updated.

  * contrib/hbwin/tests/testprn.prg
  * contrib/hbwin/tests/testprn2.prg
  * contrib/hbwin/tests/testprn3.prg
  * contrib/hbwin/tests/testprn4.prg
    * Updated tests to use new function names.
2009-11-24 11:09:37 +00:00
Viktor Szakats
576536b6ba 2009-11-24 10:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  + contrib/hbwin/legacycp.c
    + Added new names for Windows printer support functions:
        WIN_PRINTEREXISTS()     (old name: PRINTEREXISTS())
        WIN_PRINTERSTATUS()     (old name: XISPRINTER())
        WIN_PRINTERPORTTONAME() (old name: PRINTERPORTTONAME())
        WIN_GETPRINTERS()       (old name: GETPRINTERS())
        WIN_GETDEFAULTPRINTER() (old name: GETDEFAULTPRINTER())
        WIN_SETDEFAULTPRINTER() (old name: SETDEFAULTPRINTER())
        WIN_PRINTFILERAW()      (old name: PRINTFILERAW())

    ; Old names still work, and they are guarded with HB_WIN_LEGACY_LEVEL_OFF
      macro, in case someone would like to disable them.
    ; Please use new names, old ones will be deleted enventually.
2009-11-24 10:00:36 +00:00
Viktor Szakats
1c1751e91f 2009-11-24 10:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwin.ch
    + Added copy of HB_WINPRN_* constants from .c source.
      (Ugly, but currently there is no way to include hbwin.ch 
      to .c code due to lots of colliding names)
2009-11-24 09:49:16 +00:00
Viktor Szakats
f6bf427239 2009-11-24 10:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  + contrib/hbwin/win_prn3.c
  + contrib/hbwin/tests/testprn4.prg
    + Added SETDEFAULTPRINTER().
      This is Microsoft sample code taken from xhb repository,
      formatting, fixes and other modifications applied (like
      to use Harbour memory allocation functions),
      also added support for UNICODE mode.

  * contrib/hbwin/tests/testprn3.prg
    * Minor.

  * ChangeLog
    * Marked change as DONE.
2009-11-24 09:38:23 +00:00
Viktor Szakats
8d9da52017 2009-11-24 09:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwin.ch
    + Added new macros submitted by Xavi.
      Formatting (tab removal/alignment) applied.

  * config/detfun.mk
    + Displays "Configure with HB_WITH_*" text on non-*nix systems,
      when an external component is not found.
      Comments are welcome whether this is useful, it looks a bit
      verbose/ugly to me.

  * INSTALL
    * Minor change in wording.
2009-11-24 08:43:38 +00:00
Pritpal Bedi
baca1c614a 2009-11-23 18:09 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
    ! Few more additions.
2009-11-24 02:08:19 +00:00
Przemyslaw Czerpak
f429a739b4 2009-11-24 02:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/dlmalloc.c
  * harbour/src/vm/hvmall.c
    + added support for DLMALLOC in OS/2 builds.
      I would like to ask OS/2 users to make harbour OS/2 build tests
      using WATCOM and GCC with HB_USER_CFLAGS=-DHB_FM_DL_ALLOC to
      check if it works.
2009-11-24 01:51:43 +00:00
Pritpal Bedi
e59e5767ba 2009-11-23 17:21 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.hbp
  * contrib/hbide/hbide.prg
  + contrib/hbide/idemisc.prg
    ! Implemented to execute context sensitive popups.
      Right click on <Funtions List> right-hand area.

  * contrib/hbxbp/xbpdialog.prg
  * contrib/hbxbp/xbplistbox.prg
  * contrib/hbxbp/xbptreeview.prg
  * contrib/hbxbp/xbpwindow.prg
    + Neccessary constructs to honour context menu requests.
2009-11-24 01:25:05 +00:00
Viktor Szakats
2053cdaf47 2009-11-23 22:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to use '-ofilename' to spec C compiler object
      output, instead '-o filename'. Following linux/clang.mk.
      (There is utter chaos with this -o option)

  * config/darwin/clang.mk
    + Documented fact that '-ofilename' also works (just
      like in linux/clang).

  * config/linux/gcc.mk
  * config/linux/icc.mk
  * config/linux/clang.mk
  * config/linux/sunpro.mk
  * config/linux/global.mk
    % Moved strip configuration to global.mk.
2009-11-23 21:50:47 +00:00
Viktor Szakats
1e3e6b7f8e 2009-11-23 22:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Turn on detailed maps for bcc targets when -map option is used.
2009-11-23 21:03:31 +00:00
Mindaugas Kavaliauskas
4c0938d4ab 2009-11-23 22:42 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/rddsql/sqlbase.c
    ! fixed connection counter decrementation for not connected areas
2009-11-23 20:44:39 +00:00
Viktor Szakats
4528304446 2009-11-23 20:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_tprn.prg
  * contrib/hbwin/win_prn1.c
    ! Fixed ::SETPEN() and WIN_SETPEN() to not leak objects.
      Patch submitted by Xavi.

  * config/wce/poccarm.mk
  * config/win/pocc.mk
    % Removed some unnecessary logic, thus making it similar to all
      other compiler setups.

  * ChangeLog
    * TODO marked as DONE.
2009-11-23 19:27:18 +00:00
Przemyslaw Czerpak
645fa32181 2009-11-23 16:28 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/mpkg_rpm_win.sh
    + added yet another path for cross-mingw compiler detection
2009-11-23 15:28:31 +00:00
Przemyslaw Czerpak
bee89c95db 2009-11-23 14:05 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/filesys.c
    % eliminated memory allocation from hb_fsCurDirBuff() if non UNICODE
      WIN32 API is used
2009-11-23 13:06:05 +00:00
Viktor Szakats
044107d4a2 2009-11-23 13:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/beos/gcc.mk
  * config/bsd/gcc.mk
  * config/wce/mingwarm.mk
  * config/wce/poccarm.mk
  * config/wce/msvcarm.mk
  * config/darwin/gcc.mk
  * config/darwin/icc.mk
  * config/darwin/clang.mk
  * config/hpux/gcc.mk
  * config/dos/watcom.mk
  * config/dos/djgpp.mk
  * config/win/xcc.mk
  * config/win/mingw.mk
  * config/win/pocc.mk
  * config/win/bcc.mk
  * config/win/watcom.mk
  * config/win/icc.mk
  * config/win/pocc64.mk
  * config/win/cygwin.mk
  * config/win/msvc.mk
  * config/linux/watcom.mk
  * config/linux/gcc.mk
  * config/linux/icc.mk
  * config/linux/clang.mk
  * config/linux/sunpro.mk
  * config/os2/watcom.mk
  * config/os2/gcc.mk
  * config/sunos/gcc.mk
  * config/sunos/sunpro.mk
    + Uniformly using CFLAGS to store C compilation flags, instead
      of a previous mixture of CPPFLAGS and CFLAGS.

  * config/rules.mk
    - Deleted CPPFLAGS.

  * INSTALL
  * bin/postinst.bat
    ! Minor fixes in texts.
2009-11-23 12:17:30 +00:00
Viktor Szakats
5064ad4326 little typos in last entry 2009-11-23 09:29:34 +00:00
Viktor Szakats
31be7ebd33 2009-11-23 10:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    ! Commented buggy code dealing with Chr( 256 ) strippage in PRINTFILERAW().
      While I can imagine Chr( 26 ) may cause a little inconvenience
      when sent to printer, it will just be a small visual one, and it's
      very easy to overcome by using HB_MEMOWRIT() instead of MEMOWRIT()
      to create the disk file, if the file was created by other means,
      the Chr( 26 ) won't be there anyway. Anyhow I opted to have a clear cut
      behavior even if it's slightly incompatible because old implementation
      was buggy, and IMO such printing function shouldn't do behind-the-scenes
      alterations on the data to be printed. After all the function is called
      "RAW".
      INCOMPATIBLE for files which has an ending Chr( 26 ).

  * contrib/hbide/hbide.prg
    ! Removed CURDRIVE() and CURDIR() usage.
      Notice that on *nix platforms there is no such thing as
      drive letter, plus some platforms don't even have the
      concept of current dir. CURDRIVE() is also an XBase++
      specific call, so it may not be available in Harbour core.
    ! Removed hard-wired Windows specific path from save dialog.
      (it was a template yet)

  * config/rules.mk
    ! Deleted CFLAGS from default link rule.
      After quick scan through the make files this shouldn't cause
      problems. Please test and if it does, we should add missing
      options to LDFLAGS.
    ; TODO: Clean CPPFLAGS vs. CFLAGS usage in all .mk files.
            They should all uniformly use CFLAGS now.
2009-11-23 09:27:08 +00:00
Viktor Szakats
1e74552081 2009-11-23 09:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/filesys.c
    ! Fixed leak in hb_fsCurDirBuff() report by Pritpal.
      Please test/review.

  * contrib/hbwin/win_prn2.c
    * Changed prefix of HB_SIZE type variables.
2009-11-23 08:14:24 +00:00
Pritpal Bedi
fb442bc0f4 2009-11-22 22:27 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
  * contrib/hbide/idetags.prg
    ! Changed the way <Function List> was being populated.
    ! Fixed to not enter in Editing mode when double-clicked in <Function List>.
2009-11-23 06:31:57 +00:00
Viktor Szakats
c0df906c25 2009-11-23 02:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/diskspac.c
  * src/rtl/disksphb.c
  * contrib/hbwin/win_prn2.c
    ! Fixed to use WIDE version of dynamically called
      functions in UNICODE builds.

  * ChangeLog
    + TODO marked as DONE.
2009-11-23 01:14:54 +00:00
Viktor Szakats
e23934c9ce 2009-11-23 01:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    + Added support for fifth 'share' element to GETPRINTERS()
      returned array. This syncs it with xhb.

  - contrib/hbide/hbide.hbm
  + contrib/hbide/hbide.hbp
    * Renamed project file to have .hbp extension.

  - contrib/hbide/hbmk.hbm
    - Not needed anymore. Deleted.

  * contrib/hbide/ideparseexpr.c
    ! strnicmp() -> hb_strnicmp()
2009-11-23 00:25:53 +00:00
Pritpal Bedi
0d8e65daf1 2009-11-22 15:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.hbm
    ! Call hbmk2 hbid.hbm which includes all required files.

  + contrib/hbide/idestylesheets.prg
    + Added to implement Qt's powerful feature to apply style sheets to a widget.

  + contrib/hbide/idetags.prg
  + contrib/hbide/ideparseexpr.c
    + Code provided by Andy Wos almost an year back. Never thought 
      it will be of much use for this purpose. Big thank you Andy.

  + contrib/hbide/freadlin.c
    ! Pulled from contrib/xhb. There may be a better option.
    
  * contrib/hbqt/hbqt.ch
    + Added more constants.

  * contrib/hbqt/hbqt_destruct.cpp
    + New PRG level function HB_FUNC( HBQT_QTPTR_FROM_GCPOINTER ) which
      returns Qt pointer sent the GC pointer as only parameter.

  * contrib/hbxbp/xbptabpage.prg
    ! Changed the way callback slots were implemented.

  * contrib/hbide/hbide.prg
    + Implemented right-hand <Functions List>.
      Just click on it and editor tab will scroll to the begining of function.
      It was very tricky and has the potential to improve. Please play.

    ! Implemented "Save" with <ESC> or via <Save> icon.
      You can start real-time editing if you want to.

      Open many sources, change the tabs, press <ESC>s or edit and save.
      Let me know if this behavior is ok. Note: after last tab is closed, hbide.exe 
      terminates.
2009-11-23 00:11:34 +00:00
Viktor Szakats
e2e3b952b3 2009-11-23 01:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/axcore.c
  * contrib/hbwin/oleinit.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/win_misc.c
  * contrib/hbwin/hbwinole.h
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_dll.c
    * BOOL -> HB_BOOL (where applicable)
    * ULONG, unsigned long -> HB_SIZE (where applicable)

  * contrib/hbwin/wce_smsc.c
    % Optimized out BOOL var.

  * contrib/hbwin/win_dll.c
    * ULONG -> unsigned long

  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_regc.c
  * contrib/hbwin/win_osc.c
  * contrib/hbwin/win_dll.c
    ! Formatting.
2009-11-23 00:05:57 +00:00
Viktor Szakats
f6515c6b1d 2009-11-23 00:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/arrays.c
  * src/debug/dbgentry.c
  * contrib/xhb/xhbarr.c
  * contrib/xhb/xhberrc.c
  * contrib/xhb/cstructc.c
    * Changed to use native Harbour API function names instead of
      xhb compatibility ones:
         hb_itemForwardValue() -> hb_itemMove()
         hb_itemPutCStatic()   -> hb_itemPutCConst()

  * contrib/hbbmcdx/bmdbfcdx.c
  * contrib/rddsql/sqlbase.c
  * contrib/rddads/adsfunc.c
  * contrib/hbwin/wce_simc.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
    % hb_itemNew() + hb_arrayNew() combination replaced
      with single hb_itemArrayNew() call.

  * include/hbapi.h
  * include/hbapiitm.h
    * Marked some legacy/compatibility functions with HB_LEGACY_LEVEL2.
      This means they will be deleted in next major release version:
        LEGACY/DEPRECATED        RECOMMENDED EQUIVALENT
        ----------------------   -----------------------
        hb_retcAdopt()           hb_retc_buffer()
        hb_retclenAdopt()        hb_retclen_buffer()
        hb_retcStatic()          hb_retc_const()
        hb_storclenAdopt()       hb_storclen_buffer()
        hb_itemPutCRawStatic()   hb_itemPutCLConst()
        hb_itemForwardValue()    hb_itemMove()
        hb_itemPutCStatic()      hb_itemPutCConst()
        hb_arraySetCPtr()        hb_arraySetCLPtr()

  * contrib/hbwin/win_tprn.prg
    * Minor formatting.

  * contrib/hbwin/win_osc.c
    * Using HB_BOOL.
    * Varible type notation fixed.
2009-11-22 23:46:57 +00:00
Przemyslaw Czerpak
61df4df2b0 2009-11-23 00:43 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/global.mk
    + added yet another path for cross-mingw compiler detection

  * harbour/contrib/hbwin/win_prn2.c
    ! fixed iResult defined twice by mistake
2009-11-22 23:43:56 +00:00
Viktor Szakats
ea326ffcd7 2009-11-22 21:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
    * Using HB_BOOL for Harbour variables.
    * Few minor cleanups.
    ; TOFIX: CreateFile() is used in one place instead of Harbour 
             File I/O. Anyone?
2009-11-22 20:45:27 +00:00
Viktor Szakats
4ba69f4731 2009-11-22 21:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn1.c
    * Renamed some variables to reflect their real type.
    ! Fixed to use HB_SIZE instead of int and ULONG.
    * Using long instead of LONG for non-Windows API related values.
    * Synced parn*/retn*/storn* usage with actual types used by
      Windows API (l vs. i).
    * Added a few cats and removed a few others.
    ! Fixed WIN_GETPRINTERFONTNAME() for UNICODE mode.
      (warning masked by explicit cast).
    ; Please make tests, I didn't do any functional tests on 
      any of the above (and I'm also not using them).
2009-11-22 20:30:25 +00:00
Viktor Szakats
c1243f4c75 2009-11-22 21:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_tprn.prg
  * contrib/hbwin/win_prn1.c
    ! Fixed HFONT leak in WIN_CREATEFONT(). This also means the
      function works a little bit differently, so in case you are
      using it directly, be warned that this change is INCOMPATIBLE.
      It will now return a font handle instead of boolean value
      signaling success.
    ! Fixed several functions to check for valid HDC.
    % Deleted redundant code from WIN_DELETEDC().
    ; Submitted by Xavi. Thank you.
      (plus these small modifications by me:)
    ! Fixed formatting to use the same coding style as the rest of
      the file (and all our sources).
    ! Fixed to use FALSE instead of 0.

  * INSTALL
    + Added note to HOW TO PARTICIPATE section to use the same
      coding style as found in original files when adding patches.
2009-11-22 20:04:35 +00:00
Przemyslaw Czerpak
72114c2615 2009-11-22 19:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/win_prn2.c
    * removed trailing spaces from empty lines
2009-11-22 18:39:28 +00:00
Viktor Szakats
a37557306a 2009-11-22 19:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    % Merged C level functions into Harbour level ones.
      (PRINTERPORTTONAME() got simplified a great deal as a result.)
    ! Fixed to initialize remaining numbers passed by ref to winapi.
    * More type cleanup.

  + contrib/hbwin/tests/testprn3.prg
    + Added test for printing support functions.
2009-11-22 18:14:44 +00:00
Viktor Szakats
36fc552150 2009-11-22 17:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    ! Fixed to use hb_xfree() instead of HB_TCHAR_FREE() where 
      allocation is done using hb_xgrab(). This could pbly 
      cause leaks in some rare cases.
    % PRINTEREXISTS() now uses the same method on NT and Win9x 
      systems.
    * XISPRINTER() will now fall back to default printer also 
      when an empty string is passed as parameter.
    * Some minor variable declaration, initialization and naming 
      cleanups and optimizations.
2009-11-22 17:12:34 +00:00
Viktor Szakats
9af6757d3b 2009-11-22 13:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    * And some more cleanups (name usage mainly). Hopefully the 
      last one around this area.
2009-11-22 12:27:12 +00:00
Viktor Szakats
fda6d575cb 2009-11-22 13:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    * More cleanups (name usage mainly).
2009-11-22 12:20:59 +00:00
Viktor Szakats
30fd53af2e 2009-11-22 12:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added support for linux/clang. (untested)
      (what package has to be installed? I installed llvm yesterday, 
      but couldn't find clang on Ubuntu)

  * config/linux/clang.mk
    ! Added SVN props.
2009-11-22 11:58:46 +00:00
Viktor Szakats
2db500ed1c 2009-11-22 12:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    + PRINTFILERAW(): Changed to use Harbour File I/O API instead
      of Windows one to read from a disk file.
    * More variable name / macro usage cleanup.

    ! TOFIX: PRINTFILERAW() has suspicious code aiming to delete 
      Chr( 26 ) from input files. In current implementation it can 
      strip Chr( 26 ) even from inside the file if the file is 
      larger than read buffer, which means it will corrupt input 
      and may cause wrong output to be printed (f.e. if that Chr( 26 ) 
      is part of a printer control char sequence).

  * INSTALL
    + Added linux/clang to the target mix.
2009-11-22 11:53:05 +00:00
Przemyslaw Czerpak
dc9128c46b 2009-11-22 12:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/config/linux/clang.mk
    + added support for CLANG in LINUX builds

  * harbour/include/hbatomic.h
    + added assembler code for SPINLOCKs in WATCOM x86 builds

  * harbour/src/vm/fm.c
    * enabled HB_FM_DLMT_ALLOC by default in MT HVM if HB_FM_DL_ALLOC is
      also enabled

  * harbour/src/vm/dlmalloc.c
    * modifications for non MS-Windows WATCOM builds
      TOFIX: now it compiles in Linux and OS2 builds but it still does not
             work
2009-11-22 11:38:17 +00:00
Viktor Szakats
46703d3307 2009-11-22 12:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    * Variables renamed to reflect their types.
    * Further cleanups.
    + Added TOFIX to use Harbour IO instead of win to read a disk file.
    * Changed to use HB_SIZE instead of ULONG for string lengths/sizes.
    + Added HB_SIZE casts to silence 64-bit warnings (to two places).
2009-11-22 11:29:23 +00:00
Viktor Szakats
4134128c3a 2009-11-22 04:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    % GETPRINTERS(): Changed to use printer list retrieving on NT 
      systems to the one used on Win9x systems. This greatly simplifies 
      the code.
    % GETPRINTERS(): Optimized out one PHB_ITEM variable.
    % GETPRINTERS(): Moved variables closer to their user blocks.
    * GETPRINTERS(): Using empty strings instead of inconsistent 
                     "Error"/"ERROR" texts on error.
                     (INCOMPATIBLE).
    ; Pls test.

  * src/common/hbver.c
    + Some changes to the way LLVM/CLang are detected. One 
      remaining combination was now added also.
      Pls review me.
2009-11-22 03:17:20 +00:00