Commit Graph

13667 Commits

Author SHA1 Message Date
Viktor Szakats
57cb7dd3cc 2010-03-07 14:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/tframe.prg
    ! Using IS*() macros instead of NIL checks.
    % Using IS*() macros instead ValType() calls.
    % Several minor optimizations.
    * Changed to use standard class declaration syntax.

  * contrib/xhb/tframe.prg
  * contrib/hbide/ideharbourhelp.prg
  * contrib/hbide/idehome.prg
    ! Fixed to generate lowercase HTML code. This is basic requirement
      for HTML to validate with any newer than legacy HTML standard (f.e. XHTML).
      Should be fixed in other places in Harbour.

  * contrib/xhb/tframe.prg
  * contrib/xhb/cgi.ch
    * Formatting.
2010-03-07 13:56:54 +00:00
Viktor Szakats
75ea8020d9 2010-03-07 14:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* doc/Makefile
    ! Fixed 'en-EN' - 'en'.
2010-03-07 13:31:41 +00:00
Viktor Szakats
d5e9e6d7e4 2010-03-07 14:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/utils.c
  * contrib/hbtip/encb64c.c
  * contrib/hbtip/encurlc.c
    ! Type cleanup.

  * contrib/hbtip/cgi.prg
    * Minor formatting.
2010-03-07 13:14:28 +00:00
Viktor Szakats
fa124b295d 2010-03-07 13:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/Makefile
  - contrib/hbtip/encmthd.c
  + contrib/hbtip/encb64c.c
  + contrib/hbtip/encurlc.c
    * Split and renamed source file containing low-level encoder/decoder 
      functions.
2010-03-07 12:16:32 +00:00
Viktor Szakats
95db3b5391 2010-03-07 13:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/encmthd.c
    - Deleted __TIP_QP_[ENCODE|DECODE](). Either I'm misunderstanding 
      their purpose or they simply didn't work (pbly because they 
      were not even used by hbtip code).
2010-03-07 12:14:00 +00:00
Viktor Szakats
0ced59cdc6 2010-03-07 13:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/encmthd.c
  * contrib/hbtip/encurl.prg
  * contrib/hbtip/encb64.prg
    ! Cleaned this quite strange and dangerous hack which made the
      exact nature of the logic fully hidden for anyone expecting
      regular programming techniques. I even reimplemented QP
      encoding not knowing about it.
      Now the class/function interface is completely standard
      without any hidden interdependencies and internal logic
      to access class vars from C level function and mapping C
      level functions as methods.
      Now it's possible to replace these TIP specific encoder/decoder
      functions with core ones, or move these ones to core.
      INCOMPATIBLE: Old function names have been changed from
         TIPENCODER*_[DECODE|ENCODE]() to __TIP_*_[ENCODE|DECODE]().
    ; TOFIX: Old C implementation of QP encoding/decoding doesn't
             seem to work.
    ; TODO: Try eliminating redundancy in base64 encoding/decoding
            between hbtip and core.

  * contrib/hbtip/cgi.prg
  * contrib/hbtip/url.prg
  * contrib/hbtip/httpcli.prg
    * Changed to use new internal function names for encoding/decoding.

  * src/rdd/dbf1.c
    * Minor formatting.
2010-03-07 12:09:47 +00:00
Przemyslaw Czerpak
566cb5730c 2010-03-07 12:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/dbf1.c
    * removed unnecessary function call
2010-03-07 11:25:25 +00:00
Viktor Szakats
f85a7b5b47 2010-03-07 12:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/encmthd.c
    * Formatting.
    ; TOFIX: I've just realized the nature of this hack.
2010-03-07 11:21:58 +00:00
Viktor Szakats
e1fd2e7a1e 2010-03-07 12:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
    ! Further fix to HB_SETMIMETYPE() returned strings.
    ; Pls review/test.
2010-03-07 11:06:40 +00:00
Przemyslaw Czerpak
1daa4ee6c5 2010-03-07 12:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/xhb/tframe.prg
    % small optimization
2010-03-07 11:02:01 +00:00
Viktor Szakats
b9f7254c8d 2010-03-07 11:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/hvm.c
    ! Adjustment to symEval declaration after last change.

  * contrib/hbmysql/tmysql.prg
    ! Fixed CLIPVALUE2SQL() to return NULL for NIL
      values. Should fix sf.bet bug #2964744.
    % Optimized CLIPVALUE2SQL().

  * contrib/xhb/tframe.prg
    ! Fixed HB_ENUMINDEX() to :__enumIndex().
    % Minor optimization.
    * Some formatting.

  * contrib/xhb/hblog.prg
    ! Fixed HB_ENUMINDEX() to :__enumIndex().

  * contrib/hbtip/sendmail.prg
    ! Fixed mime type spec: "text/plain;filename=" -> "text/plain; name="

  ; Latter two suggested by Lorenzo.
2010-03-07 10:48:30 +00:00
Przemyslaw Czerpak
4ca2baffd5 2010-03-07 10:57 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
    * small cleanup in marking hb_symEval with HB_LEGACY_LEVEL3
      It should be available for core HVM functions.
2010-03-07 09:57:44 +00:00
Viktor Szakats
91ba8932cf missed one file from last entry:
2010-03-07 04:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
  * src/vm/hvm.c
  * include/hbapi.h
    * Marked hb_synEval public symbol with HB_LEGACY_LEVEL3

  * src/rtl/gtwin/gtwin.c
    ! Copyright header update.

  * src/rtl/objfunc.prg
  * include/hboo.ch
    * Minor cleanup and formatting.

  * INSTALL
    * Minor refinement in wording.

  * contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideprojmanager.prg
    ! "Codec" -> "Encoding" in a few more places.
    ! "..." added to some more menu items.
    ! Double "(.ext)" text in filetypes in open project dialog.
    ; Please review me.
2010-03-07 03:36:34 +00:00
Viktor Szakats
a682aa5d86 2010-03-07 04:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/hvm.c
  * include/hbapi.h
    * Marked hb_synEval public symbol with HB_LEGACY_LEVEL3

  * src/rtl/gtwin/gtwin.c
    ! Copyright header update.

  * src/rtl/objfunc.prg
  * include/hboo.ch
    * Minor cleanup and formatting.

  * INSTALL
    * Minor refinement in wording.

  * contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/idedocks.prg
    ! "Codec" -> "Encoding" in a few more places.
    ! "..." added to some more menu items.
    ! Double "(.ext)" text in filetypes in open project dialog.
    ; Please review me.
2010-03-07 03:35:31 +00:00
Pritpal Bedi
4c5a91c3ca 2010-03-06 15:32 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
+ contrib/hbide/resources/fl_c.png
  + contrib/hbide/resources/fl_dll.png
  + contrib/hbide/resources/fl_exe.png
  + contrib/hbide/resources/fl_ini.png
  + contrib/hbide/resources/fl_lib.png
  + contrib/hbide/resources/fl_prg.png
  + contrib/hbide/resources/fl_res.png
  + contrib/hbide/resources/fl_txt.png
  * contrib/hbide/resources/hb-16x16.png
  * contrib/hbide/resources/hb-32x32.png
  * contrib/hbide/resources/hbide.png
  + contrib/hbide/resources/hbidesplashwatermark.png
  + contrib/hbide/resources/panel_2.png
  + contrib/hbide/resources/panel_3.png
  + contrib/hbide/resources/panel_4.png
  + contrib/hbide/resources/panel_5.png
  + contrib/hbide/resources/panel_6.png
  + contrib/hbide/resources/panel_7.png
  + contrib/hbide/resources/source_c.png
  + contrib/hbide/resources/source_cpp.png
  + contrib/hbide/resources/source_h.png
  + contrib/hbide/resources/source_o.png
  + contrib/hbide/resources/source_prg.png
  + contrib/hbide/resources/source_res.png
  + contrib/hbide/resources/source_txt.png
  + contrib/hbide/resources/source_unknown.png
    + Added more images for user interface. 

  * contrib/hbide/resources/projectpropertiesex.ui
  * contrib/hbide/resources/projectpropertiesex.uic
    - Removed xMate ".xhp" project loading icon.

  * contrib/hbxbp/xbpwindow.prg
    ! Commented out "resize" event as it was hanging the 
      applications without any graspable reason. Will be 
      investigated deeply in future.

  * contrib/hbide/hbide.hbp
  * contrib/hbide/hbide.prg
  * contrib/hbide/ideactions.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idehome.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideobject.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idesaveload.prg
  * contrib/hbide/idestylesheets.prg
  + contrib/hbide/idethemes.prg
    
    ! This commit corrects/fixes issues reported by Viktor.
      Please scratch them again. I might have missed a couple
      of them.

    + Implemented: A root panel called "Stats" containing,
      presently, "Welcome" and "FAQ's" tabs, detailed below.
      Now hbIDE has a mechanism to hold as many informative 
      slots as the development will demand in future.

      <Welcome>: It holds the exiting "Projects" information:
        Title   Type   Sources   Last_Modified    Location

      The field <Title> is a link to open detailed view of its 
      contents which contain fields:
        Source   Type   Size   Last_Modified   Location

      Clicking on a <Source> opens it in the editor under "Main" panel.

      <Home> icon is added in the top-toolbar next to <Exit> icon
      which leads you to <Stats> panel holding <Welcome> and <FAQs> tabs.

      Projects -> Detail -> Source : backward navigation is enabled 
      through context menu withing browser. The options within thus
      context menu has <Print> option which leads to print preview
      dialog and eventually to printing on the paper.

      <FAQs>: This holds short questions and answers as per the 
      industry standards. I could put only two of them still. 
      Please forward the ones you consider should go to this list.

    ! Changed: main window icon as previous one was not giving a 
      strong impression to be remember for long.
    
    ! Loading/Opening a project: now offers .hbp or .xhp options.
      .xhp is converted to .hbp and is written to disk and project
      is loaded as usual. This should be a one-time process.

    ! Click on function list now position the clicked function 
      in the center of the editor.

    ! IdeSettings.ini is now hbide.set and is saved where hbide.ini 
      is residing. The change is name was nessary as to avoid
      wrong impression of .ini nature as a text file. It is binary
      by nature.

    ! Many more artifacts which I tend to forget, please bear it 
      with my age.
2010-03-07 00:06:49 +00:00
Przemyslaw Czerpak
e80a2ad13d 2010-03-06 23:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/evalhb.c
  * harbour/src/vm/asort.c
  * harbour/src/vm/hvm.c
  * harbour/src/vm/arrays.c
  * harbour/src/vm/thread.c
  * harbour/src/vm/eval.c
  * harbour/src/vm/classes.c
  * harbour/src/rtl/do.c
  * harbour/contrib/gtwvg/wvgwing.c
    * use hb_vmPushEvalSym() instead of hb_vmPushSymbol( &hb_symEval )
      Please try to eliminate direct hb_symEval usage from 3-rd party code.
2010-03-06 22:44:51 +00:00
Przemyslaw Czerpak
29fa3151d5 2010-03-06 21:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/gencc.c
    ! fixed wrongly used HB_LONG_{MAX,MIN} instead of LONG_{MAX,MIN}.
2010-03-06 20:27:13 +00:00
Przemyslaw Czerpak
3d6de8244c 2010-03-06 18:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbxvm.h
  * harbour/src/compiler/gencc.c
  * harbour/src/vm/hvm.c
    % added few functions increasing the execution speed of some PRG code
      compiled with -gc3 switch
2010-03-06 17:34:15 +00:00
Viktor Szakats
082671ac6f 2010-03-05 23:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* external/pcre/Makefile
    - Disabled stdint.h for all targets to make some Harbour
      supported legacy compilers happy which don't support it
      (f.e. bcc 5.5)
2010-03-05 22:18:56 +00:00
Viktor Szakats
8a8ae50ff3 2010-03-05 21:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* external/Makefile
    + Added bzip2.

  * external/bzip2/Makefile
    ! Fixed to avoid stupid BCC tlib warning by enabling
      "case-sensitive library" option.

  * config/global.mk
  * 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/djgpp.mk
  * config/common/watcom.mk
  * config/win/xcc.mk
  * config/win/mingw.mk
  * config/win/pocc.mk
  * config/win/bcc.mk
  * config/win/icc.mk
  * config/win/cygwin.mk
  * config/win/msvc.mk
  * config/linux/gcc.mk
  * config/linux/icc.mk
  * config/linux/clang.mk
  * config/linux/sunpro.mk
  * config/os2/gcc.mk
  * config/sunos/gcc.mk
  * config/sunos/sunpro.mk
    + Added support for HB_AFLAGS. Only bcc needs it ATM.
2010-03-05 20:21:44 +00:00
Viktor Szakats
0a520d6534 2010-03-05 20:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbverdsp.c
    % "Language options" merged into "Build options"

  * src/rtl/gtwin/gtwin.c
    - Deleted not working undocumented SetConsolePalette() code sections.
    * HB_GTI_PALETTE will return zeroes (black) on platforms/builds which
      don't support console palette API.
    + Enabled SetConsoleMenuClose() undocumented call in default builds.
      It seems so simple function that it's unlikely it will change
      (worst case it will be deleted). Return value confirmed to be
      BOOL (don't ask how).
      This feature requires Windows 2000 for final apps, no build-time
      requirement.
      Can be disabled using HB_GTWIN_USE_SETCONSOLEMENUCLOSE_OFF macro.
    % Minor optimization.

  * contrib/hbwin/win_reg.prg
    ! Changed to use local emulation of BIN2U() instead of XPP
      specific original implementation.
2010-03-05 20:02:08 +00:00
Viktor Szakats
d79a1b7b81 2010-03-05 19:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    + Added more code (probably the ugliest I've ever had a chance
      to create while touching Windows API) for undocumented
      SetConsolePalette() hack, following Saulius Zrelskis's
      suggestion. Now it doesn't GPF, but it does nothing else
      either (could be wrong SYSPAL_ constant, could be anything).
      From this point I'll let others continue, or delete all
      undocumented code sections.
2010-03-05 18:29:41 +00:00
Viktor Szakats
1a9fe1279d 2010-03-05 18:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmysql/hbmysql.hbc
  * contrib/rddsql/sddmy/sddmy.hbc
    ! Fixed library name for Linux platforms.
      I hope it also works for other *nix systems.
      (On darwin/macports it doesn't because they placed
      the lib in a subdir, but at least the lib name is
      right)

  + external/bzip2
  + external/bzip2/LICENSE
  + external/bzip2/Makefile
  + external/bzip2/cnv_hb2o.bat
  + external/bzip2/cnv_o2hb.bat
  + external/bzip2/blocksor.c
  + external/bzip2/bzip2.c
  + external/bzip2/bzlib.c
  + external/bzip2/compress.c
  + external/bzip2/crctable.c
  + external/bzip2/decompre.c
  + external/bzip2/huffman.c
  + external/bzip2/randtabl.c
  + external/bzip2/bzlib.h
  + external/bzip2/bzlib_pr.h
    + Add locally hosted bzip2 library. Experimental, we
      don't use it yet. Will be deleted if of no use, or
      not portable enough. ATM OS/2, DOS and WCE targets
      are not supported.

  * external/pcre/pcre.dif
    - Deleted not more required local patch, since
      we're not using legacy (Windows) types anymore
      in Harbour.

  * external/pcre/pcre.h
  * external/pcre/pcreexec.c
  * external/pcre/pcreinal.h
  * external/pcre/pcredfa.c
  * external/pcre/pcrecomp.c
  * external/pcre/config.h
  * external/pcre/LICENCE
  * external/pcre/pcreprni.h
  * external/pcre/pcrestud.c
    + Updated to 8.0.1 (from 8.0.0)

  * external/libpng/pngrio.c
  * external/libpng/pngconf.h
  * external/libpng/pngwrite.c
  * external/libpng/pngset.c
  * external/libpng/pngpread.c
  * external/libpng/pngwtran.c
  * external/libpng/LICENSE
  * external/libpng/pngrutil.c
  * external/libpng/pngwutil.c
  * external/libpng/pngread.c
  * external/libpng/pngmem.c
  * external/libpng/pngget.c
  * external/libpng/png.c
  * external/libpng/png.h
  * external/libpng/pngpriv.h
  * external/libpng/pngrtran.c
    + Updated to 1.4.1 (from 1.4.0)
2010-03-05 17:54:42 +00:00
Viktor Szakats
29116c45c4 2010-03-05 15:09 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    + Added HB_GTI_PALETTE support for GTWIN. Requires Vista
      system or newer at runtime and requires Vista compatible
      SDK at build-time (this is MSVC newer versions or older
      versions with newer SDK). Unfortunately it cannot work
      with mingw and possibly other C compilers until they
      add support.
    + Added to set MS-DOS-like colors for GTWIN on Vista and
      newer systems (same requirements as above).
    + Added experimental undocumented SetConsolePalette()
      support for non-Vista systems and non-Vista SDKs,
      but it GPFs and doesn't support reading palette, so
      overall it's not enough for Harbour. I will let it there
      in case someone wants to deal with it and delete it
      after a few days.

  * contrib/rddads/ads1.c
    * Minor formatting.
2010-03-05 14:11:14 +00:00
Mindaugas Kavaliauskas
36db9d2adf 2010-03-05 14:59 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/rddads/ads1.c
    * changed errSubCode values. Now errSubCode ir equal to:
      = ADS error value, if error is returned from ADS. Values
        of error subcodes are > 1000.
      = EDBF_* - 900, if error is generated by RDD. Values of 
        error subcodes are < 1000.
    + added a detailed error description for ADS errors
2010-03-05 13:00:10 +00:00
Viktor Szakats
23f4d52dda 2010-03-05 13:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbver.c
  * include/hbapi.h
    + Added hb_iswinvista() to detect Vista and newer Windows versions.

  * src/rtl/version.c
  * include/hbextern.ch
    + Added HB_OSISWINVISTA() .prg level function with above meaning.

  * contrib/hbwin/win_os.prg
    % Changed to use HB_OSISWINVISTA() instead of hbwin specific
      WIN_OSISVISTAORUPPER().
2010-03-05 12:48:53 +00:00
Przemyslaw Czerpak
2dfec6cf2f 2010-03-05 13:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrddnsx.h
  * harbour/src/rdd/dbfnsx/dbfnsx1.c
  * harbour/include/hbrddntx.h
  * harbour/src/rdd/dbfntx/dbfntx1.c
  * harbour/src/rdd/hsx/hsx.c
  * harbour/src/rdd/usrrdd/usrrdd.c
  * harbour/src/rtl/hbsocket.c
    ! fixed casting for compilers which needs strict aliasing rules

  * harbour/harbour.spec
    ! fixed typo in hbxpp library name
    ! fixed to work with SDDSQLT3 library

  * harbour/contrib/hbwin/olecore.c
    ! fixed buffer overflow caused by wrongly used sizeof() instead of
      HB_SIZEOFARRAY()

  * harbour/contrib/rddsql/sddodbc/sddodbc.c
    ! fixed wrongly used & operator

  * harbour/src/rtl/hbsocket.c
    ! fixed to compile with OpenWatcom Linux builds
2010-03-05 12:19:49 +00:00
Viktor Szakats
0079c5478c 2010-03-05 11:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddsql/sddoci/sddoci.c
    ! Fixed OCILIB initalization to make OCI_GetLastError() work.
      (Thanks to OCILIB author Vincent Rogier for the report 
      and fix)

  * src/rtl/gtwin/gtwin.c
    % Simplified the way close button status is retrieved (based 
      on code posted Saulius Zrelskis)
    + Added code to disable 'close' menu also. This is using 
      undocumented Windows API call, so by default the logic 
      is disabled, and can be enabled with HB_GTWIN_UNDOC_WINAPI 
      macro. (Thanks to Saulius Zrelskis for this API tip)
      (NOTE: All 'close' controls are controlled by HB_GTI_CLOSABLE)
2010-03-05 10:13:33 +00:00
Przemyslaw Czerpak
aae4187975 2010-03-04 19:43 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/hvm.c
    ! removed unnecessary hbstack reference in MT builds - thanks to
      Grigory Filatov for the information
2010-03-04 18:43:51 +00:00
Viktor Szakats
8bb33ae346 2010-03-04 19:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* harbour.spec
  * contrib/Makefile
  - contrib/hbsms
    - Deleted hbsms lib.
2010-03-04 18:08:34 +00:00
Viktor Szakats
fc617333a6 2010-03-04 13:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtpathy/telepath.prg
    ! Restored for real.
2010-03-04 12:57:07 +00:00
Viktor Szakats
2668c5e235 2010-03-04 13:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtpathy/telepath.prg
    ! Restored original before-millisec/midnight fix state.
    ; Someone else pls continue/restart this task.
2010-03-04 12:12:59 +00:00
Viktor Szakats
ef0f510518 2010-03-04 13:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* examples/gtwvw/wvwcheck.c
  * examples/gtwvw/wvwedit.c
  * examples/gtwvw/hbgtwvw.h
    ! Added not terribly elegant (local) fix to missing 'hb_hInstance'
      link time errors. Not tested besides successful lib build.
2010-03-04 12:09:05 +00:00
Przemyslaw Czerpak
7da18ea3dc 2010-03-04 11:06 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcompdf.h
  * harbour/src/vm/macro.c
    % changed HB_PCODE_INFO structure to eliminate one memory allocation
      in macro compiler

  * harbour/include/hbapi.h
  * harbour/include/hbvm.h
  * harbour/src/vm/codebloc.c
  * harbour/src/vm/itemapi.c
  * harbour/src/vm/hvm.c
    * changed second parameter in hb_codeblockGet*() function to 'int'
    * merged codeblock execution context setting into one function
      hb_vmDoBlock() and removed hb_codeblockEvaluate()
    + added new internal function hb_vmEval()

  * harbour/src/vm/arrays.c
    % use hb_vmEval()

  * harbour/src/macro/macrolex.c
    * added missing const to maro text declaration

  * harbour/tests/speedtst.prg
    ! fixed to work with CLIP and xHarbour after we changed
      SECONDSCPU() to HB_SECONDSCPU() - all these compilers and FlagShip
      have SECONDSCPU() function
2010-03-04 10:06:32 +00:00
Viktor Szakats
eebfaee54d 2010-03-04 03:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/hbeditc.c
    * Reverted previous strcpy changes as they were causing GPF
      while editing.
    * Cleaned 'unsigned int', 'int' to be 'long'.
      Lots of unnecessary looking casts deleted.
      This fixed signedness warnings.
      Very rough cleanup, I didn't inspect all hundreds
      of changes one by one, so please test it.
    * Some more cleanups.
    ; The code looks more and more kludgy from the inside.
      It has quite some (seemingly) arbitrary extra space
      allocations, lots of pointer arithmetic, so
      it looks not very easy to safely modify it f.e. for
      EOL neutrality.
2010-03-04 02:23:58 +00:00
Viktor Szakats
36d2e9e8bb 2010-03-04 01:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * harbour.spec
  * mpkg_rpm.sh
    + Added freeimage to mainstream package now that
      it finally builds on *nix systems.

  * contrib/gtwvg/gtwvg.c
  * src/rtl/gtwvt/gtwvt.c
    * Deleted unnecessary cast.

  * contrib/hbmisc/hbeditc.c
    * Cleaned constant usage.

  * contrib/hbide/ideparseexpr.c
    * int -> HB_ISIZ
    % Minor optimization.
2010-03-04 00:45:05 +00:00
Pritpal Bedi
7c0086533d 2010-03-03 07:31 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
! In continuation of previous message:

    ; WARNIING: the original format of your existing .hbp 
                project file will be changed if you make use 
                of "Project Properties" docking window and 
                then click on "Save & Exit" or "Save".
                For contents viewing it will be ok.
                
                In the new format, if you save it via wizard,
                all sources will follow flags and comments 
                will be deleted.

    ; NOTE: now onwards, trace dump of command line operations
            and hbIDE output console will be the same which 
            will facilitates to resolve build issues effectively.

    ; APPRECIATION: hbmk2 is an excellent build tool I have seen  
                    so far in my development namespace. We owe
                    heavily to Viktor for this great contribution.
2010-03-03 15:39:35 +00:00
Pritpal Bedi
377582ef4d 2010-03-03 01:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/THbQtUI.prg
    ! A massive effort to stream-line GPF at exit.    
      At least now I know that it is caused by the way 
      QLayout has relation with parent and children both.
      To some extent I am been able to cover it, but not 
      completely, at least till now.

  * contrib/hbxbp/xbptreeview.prg
    + Implemented tooltip and changed the way context menu is fired.

  - contrib/hbide/projects/hbide.hbi
    ! Totally abandoned .hbi project protocol.

  * contrib/hbide/resources/environments.ui
  * contrib/hbide/resources/environments.uic
  * contrib/hbide/resources/projectpropertiesex.ui
  * contrib/hbide/resources/projectpropertiesex.uic
  * contrib/hbide/resources/themesex.ui
  * contrib/hbide/resources/themesex.uic
    ! Simplified layouts to cover GPFs at exit.

  * contrib/hbide/hbide.hbp
    + Added ideenviron.prg.

  * contrib/hbide/hbide.prg
  * contrib/hbide/idedocks.prg
  * contrib/hbide/ideeditor.prg
  + contrib/hbide/ideenviron.prg
  * contrib/hbide/idefindreplace.prg
  * contrib/hbide/ideharbourhelp.prg
  * contrib/hbide/idemisc.prg
  * contrib/hbide/ideobject.prg
  * contrib/hbide/ideprojmanager.prg
  * contrib/hbide/idesources.prg
  * contrib/hbide/idethemes.prg

    + Restructured project management.
  
    + Implemented: .hbp as project definition protocol.
      Exploited -3rd= token to keep hbIDE specific data.
      Now you can open any existing .hbp and build it 
      out of the box. You must have set the build env
      beforehand OR take use of hbIDE's .env protocol.

    + Implemented: relative paths. The relative paths are
      are computed downwards and from .hbp location.
      Upper level paths still remain absolute. If your 
      projects structure is well thought of, then this 
      feature means this project tree is transferable 
      across different OS's and drives.

      The relative paths posed many difficulties. The 
      facts had to be resolved while search operations,
      while opening the files from Project Tree, and more.
      Now all are in perfect syncronization.

    + Managed: .hbp filters on source level and are 
      handelled transparently. In Project Tree source
      is shown without filters. Search operations are 
      also transparent. So, an entry like:
        {msvc|bcc}vouch/scandocument.prg 
      is respected by hbIDE.

    ! The other changes:
      - Project Properties dialogs contents.
        It is now very simple to understand and manage.

      - Concept of meta-data is eliminated.

      - The output executable is automatically recognized
        from linker output. So "Destination folder" is 
        kept for only "Launch" option which, in fact, does
        not know where executable is located. "Build & Launch"
        and "Rebuild & Launch" options do not look for
        "Destination folder" at all.

      - Project location is always pulled from .hbp file.
        It is not retained anywhere to make the project 
        portable.

      - Many more facts I cannot recollect at present.

     ; TODO: {hbmk2} slot in hbide.env protocol to pass
       command-line parameters.

     ; NOTE: delete hbide.ini, idesettings.ini, all .hbi's
             and start with clean state.
             
             Regression is highly possible and I am eager 
             to hear from you. This commit is just for 
             stramlining project management, though there 
             few other features implemented less important
             to mention.
2010-03-03 09:02:05 +00:00
Viktor Szakats
370890e0e1 2010-03-03 03:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/hbeditc.c
    ! One fix to prev right away. (in former strcpy)
2010-03-03 02:14:31 +00:00
Viktor Szakats
bfc7084c7f 2010-03-03 03:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/hbeditc.c
    ! Replaced unsafe string calls with safe one.
      (strncpy(), strcpy() -> hb_strncpy())
    ; Now this change may contain bugs. I'd appreciate if
      someone with trained eyes for C length would review the diff.
2010-03-03 02:05:13 +00:00
Przemyslaw Czerpak
91f9a3f12c 2010-03-03 02:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/doc/en/hvm.txt
    - removed __DBGVMVARLGET() description

  * harbour/src/debug/dbgbrwsr.prg
    % small speed improvement

  * harbour/include/hbextern.ch
  * harbour/src/vm/debug.c
    + added internal debug function: __DBGVMLOCALLIST( <nLevel> ) -> <aVars>
2010-03-03 01:39:10 +00:00
Viktor Szakats
f9d70c6659 2010-03-03 02:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- examples/pe
    - Deleted empty dir.
2010-03-03 01:03:51 +00:00
Viktor Szakats
5a773e089a 2010-03-03 01:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/Makefile
  + contrib/hbmisc/hbeditc.c
  + contrib/hbmisc/hbedit.prg
  + contrib/hbmisc/tests/sample.txt
  + contrib/hbmisc/tests/testedit.prg
  - examples/pe/sample.txt
  - examples/pe/editorlo.c
  - examples/pe/pe.prg
  - examples/pe/pe.hbp
  - examples/pe/editorhi.prg
    * Editor implementation moved to hbmisc lib.
2010-03-03 01:02:16 +00:00
Viktor Szakats
2cf87c3d7a 2010-03-03 01:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- examples/pe/license.txt
  + examples/pe/sample.txt
  * examples/pe/pe.prg
    * Renamed sample file.

  * examples/pe/editorlo.c
  - examples/pe/readme.txt
    * Moved readme content inside the source as comment.
2010-03-03 00:55:13 +00:00
Viktor Szakats
ca0685d44a 2010-03-03 01:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* examples/pe/editorlo.c
  * examples/pe/pe.prg
  * examples/pe/editorhi.prg
  * examples/pe/readme.txt
    + Further cleanups (some types, unused code).
    % Minor optimization.
    * Deleted one completed (old) TOFIX item.
2010-03-03 00:52:16 +00:00
Viktor Szakats
be1d955b6d 2010-03-03 01:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* examples/pe/editorlo.c
  * examples/pe/editorhi.prg
    + Cleaned internal layout (which was speed optimized for
      286 computer-era) to use GC collected objects rather
      than various levels of static variables and additional
      logic to handle parallel editor objects. Now the code
      is fully reentrant.
    * Renamed variables.
    ! Fixed potential GPFs along the way.
    ; TODO:
        - Clean to use ANSI C and Harbour APIs only. (this is pbly okay)
        - Clean to use safe Harbour string API functions instead of unsafe ANSI C ones.
        - Clean type usage.
        - Fix to support other EOL types than CRLF.
        - etc.

  * examples/pe/pe.prg
    ! Typo in prev.
2010-03-03 00:22:28 +00:00
Viktor Szakats
54e5e9b639 2010-03-02 23:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* examples/pe/editorlo.c
  * examples/pe/pe.prg
  * examples/pe/editorhi.prg
    * Formatting/cleanups.
2010-03-02 22:55:47 +00:00
Viktor Szakats
69b7bafcf5 2010-03-02 23:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* examples/pe/editorlo.c
    ; Started to level this code to Harbour standards.
    * Changed to use native Harbour C level API instead of Clipper
      compatibility one.
    - Delete old inactive code for standalone Habrourless build.
    * Cleaned several warnings.
    ! Fixed one potential GPF.
    ! Fixed one potential memory corruption.
    + Formatting.
2010-03-02 22:31:55 +00:00
Przemyslaw Czerpak
27998d5d67 2010-03-02 18:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbxpp/hbxpp.ch
    + added TEXT INTO <varname> [WRAP [<cEOL>]] [TRIMMED]

  * harbour/contrib/hbct/atrepl.c
    ! fixed in two places buffer overflow.
      Many thanks to Alexandr Okhotnikov for the information
    % code optimized to use hb_reclen_buffer() in all cases when new buffer
      is dynamically allocated.
    * small code simplification and change prefix of HB_SIZE variables from
      's' to 'n'
2010-03-02 17:40:11 +00:00
Viktor Szakats
936dfd3191 2010-03-02 18:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/atrepl.c
    ! Fixed an 'off by one' buffer bug causing GPF in ATREPL().
      Reported by Alexandr Okhotnikov.
2010-03-02 17:26:51 +00:00