Commit Graph

4715 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
37cc2dae64 2007-12-02 04:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
  * harbour/source/rdd/hsx/hsx.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/hbpcre/ChangeLog
  * harbour/source/hbpcre/pcrecomp.c
    * minor modifications to pacify some MSVC warnings
2007-12-02 03:33:17 +00:00
Przemyslaw Czerpak
bfc607d9fb 2007-12-02 04:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/mouse53.c
    * do not include unnecessary header files

  * harbour/bin/pack_src.sh
    * changed packing procedure - now it does not scan chosen directories
      and files but all contents of all .svn/entries to extract files
      stores in SVN repository and then pack them - it's very good method
      to pack whole Harbour repository without .svn/* data and risk of
      packing local files.

  * harbour/harbour.spec
  * harbour/harbour-ce-spec
  * harbour/harbour-w32-spec
    * updated for recent changes in directory and library names
2007-12-02 03:00:51 +00:00
Mindaugas Kavaliauskas
d1ecd869e0 2007-12-01 23:55 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/source/lang/msgltwin.c
    * svn properties
2007-12-01 22:00:27 +00:00
Marek Paliwoda
dba04d8750 2007-12-01 21:52 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* harbour/include/hbwince.h
    ! Fixed compilation in C++ mode by renaming local variable
      named "template" to "tmplt". "template" is a reserved
      word in MSVC C++.
    + Added few missing WINAPI function declarations under
      MSVC WinCE.

  * harbour/source/common/hbwince.c
    ! Fixed compilation in C++ mode by renaming local variable
      named "template" to "tmplt". "template" is a reserved
      word in MSVC C++.
2007-12-01 20:52:31 +00:00
Mindaugas Kavaliauskas
f2a2f8dfa6 2007-12-01 20:30 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
+ harbour/source/lang/msgltwin.c
  * harbour/source/lang/Makefile
  * harbour/common.mak
    + message file for Lithuanian language
2007-12-01 18:31:17 +00:00
Marek Paliwoda
79edb64b31 2007-12-01 15:27 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* harbour/source/rtl/hbinet.c
    ! Fixed compilation under Cygwin environment

  * harbour/make_gcc.sh
    + Added Cygwin as a detected platform
2007-12-01 14:26:48 +00:00
Przemyslaw Czerpak
d80b5e7389 2007-11-30 19:57 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
  * harbour/source/rtl/hbgtcore.c
  * harbour/source/rtl/gtalleg/gtalleg.c
  * harbour/source/rtl/gtdos/gtdos.c
  * harbour/source/rtl/gtos2/gtos2.c
  * harbour/source/rtl/gtwin/gtwin.c
  * harbour/source/rtl/gtwvt/gtwvt.c
  * harbour/source/rtl/gtgui/gtgui.c
  * harbour/source/rtl/gtxwc/gtxwc.c
  * harbour/source/rtl/gtcrs/gtcrs.c
  * harbour/source/rtl/gtsln/gtsln.c
  * harbour/source/rtl/gttrm/gttrm.c
  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
  * harbour/source/rtl/gtcgi/gtcgi.c
  * harbour/contrib/libct/ctwin.c
  * harbour/contrib/gtwvg/gtwvt.c
    + added GT ID (int s_GtId)

  * harbour/include/hbapigt.h
  * harbour/source/rtl/gtapi.c
    + added some missing wrappers for hb_gt_* functions to avoid
      including hbgtcore.h by non GT code - such functions separation
      will be important in MT mode where each thread can operate on
      different GT context (window)

  * harbour/contrib/libct/screen2.c
  * harbour/contrib/libct/screen1.c
  * harbour/contrib/libct/ctwfunc.c
    * use hb_gt* functions instead of hb_gt_*() ones

  * harbour/include/hbapigt.h
  * harbour/source/rtl/inkey.c
    * changed hb_setInkeyLast() to hb_inkeySetLast() to keep hb_inkey*()
      prefix in all inkey() related functions
    + added hb_inkeySetText()
    - removed hb_inkeyTranslate()

  * harbour/contrib/libct/setlast.c
    * use hb_inkeySetLast() instead of hb_setInkeyLast()

  * harbour/source/rdd/usrrdd/usrrdd.c
    * removed dummy xHarbour code not usable in Harbour

  * harbour/include/hbapi.h
  * harbour/source/vm/codebloc.c
  * harbour/source/vm/hvm.c
    * added const to BYTE * pCode parameter of hb_codeblockMacroNew()
2007-11-30 18:57:51 +00:00
Marek Paliwoda
38cac2f384 2007-11-28 18:30 UTC+0100 Marek Paliwoda (mpaliwoda at interia pl)
* harbour/source/common/hbfhnd.c
    * Added conditional define to disable Bcc extension
      (HB_NO_BCC_MAX_OPENFILES_HACK). Required for dll
      build with dynamic runtime (-tWR).

  * harbour/make_b32.mak
  * harbour/make_vc.mak
  * harbour/make_vcce.mak
    * $ECHO) and $(DEL) definitions moved to common.mak to avoid redundancy
2007-11-28 17:35:16 +00:00
Przemyslaw Czerpak
be8016179d 2007-11-27 20:43 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbfsapi.c
    ! fixed typo
2007-11-27 19:43:32 +00:00
Przemyslaw Czerpak
6a4c657ed7 2007-11-27 18:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbfsapi.c
    * define INVALID_FILE_ATTRIBUTES when not defined in C header
      files - temporary workaround for missing INVALID_FILE_ATTRIBUTES
      definition in new MSVC versions

  * harbour/include/hbwince.h
    * removed INVALID_FILE_ATTRIBUTES definition
2007-11-27 17:24:27 +00:00
Przemyslaw Czerpak
3bfb940135 2007-11-27 17:43 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbwince.c
    * disabled dummy GetDiskFreeSpaceA() overloading - it's not longer
      necessary
2007-11-27 16:43:57 +00:00
Przemyslaw Czerpak
a61c73f11d 2007-11-27 14:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    * inherit some parameters like -mlp{64,32}, -m{64,32} set in C_USR
      during build as default C compiler/linker switches in hb* scripts

  * harbour/config/w32/pocc.cf
    + added comdlg32.lib to linked library list

  * harbour/source/common/hbwince.c
    + added dummy FreeResource() function. This is a note from MSDN:
         FreeResource() is an obsolete function. It is provided for backward
         compatibility with 16-bit Windows applications. FreeResource() is
         not necessary for 32-bit Windows applications to free the resources
         loaded using LoadResource() function.

  * harbour/contrib/gtwvg/wvtutils.c
    + added workaround for wrong ChooseColorW() definition in header
      files include in last oficial relase (0.50) of MinGW32-CE

      Pritpal above finished modifications I was able to make using
      only pure MinGW32-CE 0.50. The following functions used by GTWVG
      are still missing:
         GetMenu(), SetMenu(),
         CreateBrushIndirect(),
         GetViewportOrgEx(),
         IsDlgButtonChecked(),
         OleLoadPicture(),
         TrackPopupMenu(),
      If you are sure that they exist in WinCE then simply create
      static import library for them or dynamic wrappers.
2007-11-27 13:47:57 +00:00
Przemyslaw Czerpak
7347a42260 2007-11-27 11:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbwince.c
    * added MulDiv() implementation for MinGW32-CE builds
2007-11-27 10:56:53 +00:00
Przemyslaw Czerpak
a6284ec5c1 2007-11-27 11:31 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/hbmain.c
    * make all hb_compI18n*() functions which do not need external access
      static - now only hb_compI18nAdd() is public function. If it will
      be necessary to make other functions public then we will make it
      but please always try to declare new functions as static if it's
      not necessary to access them externally - it helps in future
      modifications because we do not have to worry about external
      code which may access some functions.

  * harbour/config/hpux/gcc.cf
    * added commented -mlp64 GCC switch to CFLAGS and LDFLAGS - this
      switch forces 64-bit mode in HP-UX on IA64

  * harbour/source/common/hbwince.c
    + added wrapper for LocalHandle() and direct translation for LocalLock()

  * harbour/config/w32/cemgw.cf
    + added commdlg, commctrl, luuid and ole32 to linked library list
      for some contrib code
2007-11-27 10:31:28 +00:00
Jean-Francois Lefebvre
8760643646 2007-11-27 10:36 UTC+0100 J. Lefebvre Mafact 2007-11-27 09:43:43 +00:00
Przemyslaw Czerpak
dbf69c2c15 2007-11-27 00:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/pack_src.sh
    * updated for recent file name modifications

  * harbour/include/hbgtcore.h
  * harbour/source/rtl/gtclip.c
    * changed hb_gt_w32_SetClipboard() type from void to BOOL

  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
    * added basic input support for DJGPP

  * harbour/contrib/gtwvg/gtwvt.c
    ! fixed memory leak and GPF trap

  * harbour/contrib/gtwvg/wvtutils.c
    ! rewritten and fixed CLIPBOARD functions - Pritpal this functions
      should be removed, they are redundant and works only in MS-Windows
    * make WVT__GETOPENFILENAME() and WVT__GETSAVEFILENAME() Unicode
      ready and fixed possible GPF trap
2007-11-26 23:13:01 +00:00
Przemyslaw Czerpak
41520feb08 2007-11-26 14:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-mkslib.sh
  * harbour/bin/postinst.sh
    * set predefined CCPREFIX in cross build hb*-mkslib

  * harbour/make_xmingw.sh
    ! fixed BSD build cross build - problem noticed by Phil Krylov
      in xHarbour

  * harbour/source/rdd/dbffpt/dbffpt1.c
    * casting

  * harbour/config/darwin/gcc.cf
  * harbour/config/hpux/gcc.cf
  * harbour/config/linux/gcc.cf
  * harbour/config/sunos/gcc.cf
  * harbour/config/bsd/gcc.cf
    * added support for HB_CRS_LIB envvar which allow to overload platform
      default [n]curses library name
2007-11-26 13:51:21 +00:00
Przemyslaw Czerpak
9373ba73d8 2007-11-26 08:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/gtwvg/gtwvt.h
  * harbour/contrib/gtwvg/gtwvt.c
  * harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    * casting and minor formatting
2007-11-26 07:03:11 +00:00
Przemyslaw Czerpak
0c0580190a 2007-11-25 23:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    + extended GTI_WINTITLE to return window title:
         hb_gtInfo( GTI_WINTITLE [, <cNewTitle>] ) -> <prevTile>
    * formatting and code cleanup
2007-11-25 22:49:00 +00:00
Przemyslaw Czerpak
67a6e11654 2007-11-25 12:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwmain.c
  * harbour/source/vm/mainwin.c
    ! fixed unnecessary conversion of WinMain() parameters on W32/W64
      when UNICODE macro is set - thanks to Chen

  * harbour/source/rdd/sdf1.c
  * harbour/source/rdd/delim1.c
    ! fixed code wrongly synced with xHarbour - in Harbour HB_SET_EOL
      is char* not PHB_ITEM - thanks to Andi

  * harbour/source/compiler/genc.c
    ! fixed file name in generated for C inline code by escaping
      special characters - thanks to Andi

  * harbour/source/rtl/gtwvt/gtwvt.c
    * minor code cleanup

  * harbour/contrib/gtwvg/wvtcore.c
    ! fixed setting default foreground and background color when user
      does not pass it's own one. Previous versions was using _s->background
      and _s->foreground - it was wrong because this variables in all
      GTWVT base GTs (also in xHarbour) contains not default color but
      the color recently used to redraw some part of screen - f.e. after
      exposing some region - it means that they can have any value.
      Such bugs are hard to locate because the same program can be executed
      many times without any problem and suddenly he will use wrong colors
      drawing sth - if you observed such effect then it can be the results
      of the above problem. Now default color is taken from core GT code.
      Two functions make it: hb_wvt_FgColorParam() and hb_wvt_BgColorParam()
      Both accept also colors passed as standard Clipper strings.
      The same should be also fixed in xHarbour just like the problem with
      executing registered user functions when HVM is closing fixed in
      previous commit - even if now it does not cause GPF (due to race
      condition it may be exploited only sometimes) then it does not mean
      it works correctly.
2007-11-25 11:13:12 +00:00
Przemyslaw Czerpak
c1d94577cb 2007-11-24 20:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    * removed unused global hdc
    * formatting and minor code cleanup

  * harbour/source/vm/hvm.c
    + added to hb_vmRequestReenter() support for checking if HVM is
      properly initialized and working for code which may want to execute
      PCODE before HVM initialization or after HVM close - in such case
      hb_vmRequestReenter() will return FALSE.
      Please also remember that in the future hb_vmRequestReenter()
      may return FALSE also in some other cases.

  * harbour/source/vm/eval.c
    * use hb_vmRequestReenter()/hb_vmRequestRestore() in hb_itemDo[C]()
      instead of hb_vmPushState()/hb_vmPopState()

  * harbour/contrib/gtwvg/gtwvt.c
    ! always use hb_vmRequestReenter()/hb_vmRequestRestore() before
      executing .prg functions/codeblocks. It will resolve the problem
      with executing .prg functions during HVM closing. Anyhow I suggest
      to register C cleanup functions using hb_vmAtExit() for code which
      needs some additional destructor/closing procedure.
    * code formatting and indenting
2007-11-24 19:10:45 +00:00
Viktor Szakats
75d7d90be3 2007-11-24 11:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtwin/gtwin.c
   * source/rtl/gtcrs/gtcrs.h
   * source/rtl/gtsln/gtsln.h
   * source/rtl/gttrm/gttrm.c
   * source/rtl/gtwvt/gtwvt.h
     + #defining xhb compatible K_SH_* keyboard codes only if 
       they were not already defined.

   * utils/hbdoc/genasc.prg
     ! Fixed problem generating filenames for .txt output.
       Also added LFN branch to get rid of the 8.3 limitation.
2007-11-24 10:12:45 +00:00
Przemyslaw Czerpak
021bc664d5 2007-11-23 21:14 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/doc/man/harbour.1
  * harbour/source/compiler/hbusage.c
    + added description for -j switch

  * harbour/include/hbexprb.c
    * replaced // comments by /* */
    * accept <cContext> (domain) parameters of HB_i18nGettext() when
      number of parameters is two or more
      Should we generate compile time warning when wrong number of
      parameters is passed to this function or they are not literal
      strings? Maybe only after -j+ or sth like that?

  * harbour/include/hbclass.ch
  * harbour/include/tbrowse.ch
  * harbour/include/hbpers.ch
  * harbour/include/getexit.ch
    * replaced // comments by /* */
2007-11-23 20:14:30 +00:00
Przemyslaw Czerpak
521f956aa8 2007-11-23 12:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/hbmain.c
    ! fixed bad typo in hb_compI18nAdd() and memmove() range which can
      cause GPF
    * changed pFileName to FileName in hb_compI18nSave() to respect used
      by us naming convention
    * eliminated strcpy() - do not use strcpy()/strcat() - these functions
      are reported as dangerous by security restrict compilers.
      I suggest to use hb_strncpy()/hb_strncat() instead (remember about
      different size meaning in these functions) or some others depending
      on context (f.e. hb_strdup() in this case)
2007-11-23 11:37:30 +00:00
Przemyslaw Czerpak
3aa7a90209 2007-11-23 09:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbwince.c
    + added dummy Arc(), FrameRect(), FloodFill() for WinCE builds

  * harbour/make_gcc.mak
    ! restored TABs in rules definitions. Viktor TABs for GNU make
      have special meaning - your last modifications broke this file

  * harbour/contrib/libmisc/Makefile
    ! comment DIR rule as temporary workaround for problem with
      library name
2007-11-23 08:47:47 +00:00
Przemyslaw Czerpak
2e0b4cc091 2007-11-23 05:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/gtwvg/wvtcore.c
    ! casting

  * harbour/source/rtl/memofile.c
    * cleaned warning in *nixes
2007-11-23 04:55:11 +00:00
Przemyslaw Czerpak
b6112676bc 2007-11-23 05:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    * removed foreground and background from GLOBAL_DATA
      - they are not necessary
    + added support for gfxPrimitive() - fixed xHarbour code

  * harbour/contrib/gtwvg/gtwvt.c
    + added support for gfxPrimitive() - fixed xHarbour code
    * removed some methods which can be safely replaced by
      default ones

  * harbour/tests/gfx.prg
  * harbour/tests/wcecon.prg
  * harbour/tests/gtchars.prg
    * updated the order of changed font parameters

  * harbour/contrib/xhb/hbcompat.ch
    ! added missing closing square bracket
2007-11-23 04:09:55 +00:00
Viktor Szakats
630119e503 2007-11-23 03:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* make_b32.mak
   * make_gcc.mak
   * make_vc.mak
   * make_vcce.mak
   * common.mak
     ! Fixed copyrights.
     ! Tabs converted to spaces.
     - CFLAGS not advertised anymore as an official public var to set 
       compiler flags.
       C_USR should be used, which is also GNU make system compatible.

   * make_vc.mak
   * make_vcce.mak
     ! Removed /Y from copy command
       (we're using the COPYCMD trick in core make files).

   - contrib/adordd/access1.prg
   - contrib/adordd/access2.prg
   - contrib/adordd/mysql1.prg
   - contrib/adordd/mysql3.prg
   + contrib/adordd/tests
   + contrib/adordd/tests/access1.prg
   + contrib/adordd/tests/access2.prg
   + contrib/adordd/tests/mysql1.prg
   + contrib/adordd/tests/mysql3.prg
   - contrib/btree/mktest.bat
   + contrib/btree/test/mktest.bat
   - contrib/samples/testdate.prg
   - contrib/samples/testenv.prg
   - contrib/samples/testgaug.prg
   - contrib/samples/testnum.prg
   - contrib/samples/teststat.prg
   - contrib/samples/testtime.prg
   - contrib/samples/tststack.prg
   + contrib/samples/tests
   + contrib/samples/tests/testdate.prg
   + contrib/samples/tests/testenv.prg
   + contrib/samples/tests/testgaug.prg
   + contrib/samples/tests/testnum.prg
   + contrib/samples/tests/teststat.prg
   + contrib/samples/tests/testtime.prg
   + contrib/samples/tests/tststack.prg
     * Test related files moved to test dir.
     ! Added EOLs to the last line in adordd files.

   - contrib/gd/README
   + contrib/gd/readme.txt
     * Renamed to use proper extension.

   * contrib/adordd/common.mak
   * contrib/apollo/common.mak
   * contrib/bmdbfcdx/common.mak
   * contrib/btree/common.mak
   * contrib/directx/common.mak
   * contrib/firebird/common.mak
   * contrib/freeimage/common.mak
   * contrib/gd/common.mak
   * contrib/hbzlib/common.mak
   * contrib/hgf/win32/common.mak
   * contrib/htmllib/common.mak
   * contrib/ole/common.mak
   * contrib/pdflib/common.mak
   * contrib/pgsql/common.mak
   * contrib/libct/common.mak
   * contrib/libgt/common.mak
   * contrib/libnf/common.mak
   * contrib/libmisc/common.mak
   * contrib/mysql/common.mak
   * contrib/odbc/common.mak
   * contrib/rdd_ads/common.mak
   * contrib/samples/common.mak
   * contrib/telepath/common.mak
   * contrib/tip/common.mak
   * contrib/win32/common.mak
   * contrib/xhb/common.mak
     * Formatting made consistent.

   * contrib/adordd/common.mak
   * contrib/bmdbfcdx/common.mak
   * contrib/btree/common.mak
   * contrib/freeimage/common.mak
   * contrib/gd/common.mak
   * contrib/hgf/win32/common.mak
   * contrib/libct/common.mak
   * contrib/libnf/common.mak
   * contrib/mysql/common.mak
   * contrib/odbc/common.mak
   * contrib/pdflib/common.mak
   * contrib/pgsql/common.mak
   * contrib/rdd_ads/common.mak
   * contrib/samples/common.mak
   * contrib/tip/common.mak
   * contrib/xhb/common.mak
     + Added headers.

   * contrib/btree/common.mak
   * contrib/freeimage/common.mak
   * contrib/freeimage/Makefile
   * contrib/hbzlib/common.mak
   * contrib/hbzlib/Makefile
   * contrib/libct/common.mak
   * contrib/libmisc/common.mak
   * contrib/libmisc/Makefile
   * contrib/mysql/common.mak
     ! Library names synced between GNU and non-GNU 
       make systems.
     ! Some libraries renamed to not have a too common 
       or non-descriptive name, like "misc".
       non-GNU hb_btree   -> hbbtree (synced with GNU)
       non-GNU fi_lib     -> hbfreeimage
       GNU     fi_lib     -> hbfreeimage
       non-GNU hbzip      -> hbziparch
       GNU     ziparchive -> hbziparch
       non-GNU libct      -> ct (synced with GNU)
       non-GNU libmisc    -> hbmisc
       GNU     misc       -> hbmisc
       non-GNU mysql      -> hbmysql (synced with GNU)

   * contrib/apollo/Makefile
   * contrib/firebird/Makefile
     ! Fixed space to tabs.

   + contrib/msql/make_b32.bat
   + contrib/msql/make_vc.bat
   + contrib/msql/common.mak
     + Added non-GNU make files.
     ; TOFIX: I cannot compile these still.

   * contrib/msql/Makefile
     ! Added SVN header.
     ; TOFIX: This is a non-standard Makefile.
              Did anyone manage to compile this lib?

   * contrib/adordd/adordd.ch
   * contrib/adordd/adordd.prg
     ! Added EOLs to the last line.

   * utils/hbmake/hbmutils.prg
     * Lib names fixed and changed to reflect the recent 
       changes in contrib.

   * contrib/rdd_ads/rddads.h
     ! Minor cosmetic fix.

   * include/hbextern.ch
   * source/rtl/memofile.c
     ! MEMOWRIT() 3rd parameter marked as extension.
     + HB_MEMOWRIT() function added, which never write the 
       obsolete EOF char at the end of the file.
2007-11-23 02:08:37 +00:00
Mindaugas Kavaliauskas
ce44121edc 2007-11-23 03:55 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/source/include/hbcompdf.h
  * harbour/source/include/hbexprop.h
  * harbour/source/include/hbexprb.c
  * harbour/source/compiler/cmdcheck.c
  * harbour/source/compiler/hbmain.c
    + added i18n support
      Implemented -j[filename] switch to indicate output filename. Default 
      filename is <sourcefilename>.pot. If switch -o is used, this file
      is created in speficied output path.
      Output file format is compatible with 'gettext' utils, but not all
      available features are implemented.
      Harbour level function HB_i18nGettext( cText [, cContext ] ) sould be
      used to indicate translatable strings.
      All this commit is commented using #ifdef HB_I18N_SUPPORT and is in 
      development stage. Please, do not use it yet.
2007-11-23 01:55:37 +00:00
Przemyslaw Czerpak
7f59b345ce 2007-11-23 01:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvm.h
  * harbour/source/vm/hvm.c
    * make hb_vmPushNumInt() public function

  * harbour/contrib/gtwvg/wvtcore.c
    ! fixed hb_wvt_gtDlgProcMLess() and hb_wvt_gtDlgProcModal()
      - fixed GPF when codeblock are used
      - use hb_vmPushNumInt() instead of hb_vmPushLong() to push
        handles and numbers with potentially unknown size.
        I still suggest to use pointers ITEMs instead of converting
        handles to numbers but I'm leaving such modifications to library
        authors - using hb_vmPushNumInt() is a workaround for striping
        highest 32 bit from handles by hb_vmPushLong() in XP64 
      - use hb_vmRequestReenter() / hb_vmRequestRestore() to avoid crash
        when function/codeblock is executed during HVM has been serving
        an exception (f.e. BREAK/QUIT/RETURN)
2007-11-23 00:20:02 +00:00
Przemyslaw Czerpak
fc1a660dca 2007-11-22 18:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.c
    * declared two functions
         hb_gt_wvt_AddCharToInputQueue() and
         hb_gt_wvt_AddCharToInputQueue()
      as static - they were public by mistake

  * harbour/contrib/gtwvg/wvtcore.c
  * harbour/contrib/gtwvg/gtwvt.c
    * moved hb_wvt_gtDlgProcMLess() and hb_wvt_gtDlgProcModal()
      from gtwvt.c to wvtcore.c
      These both functions are wrong and have to be fixed.
    * farther cleanup:
      - declared some internal functions as static
      - synced some other with GTWVT
      - removed some repeated declarations
2007-11-22 17:34:11 +00:00
Przemyslaw Czerpak
70bd005a91 2007-11-22 12:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.c
    * formatting

  * harbour/contrib/gtwvg/gtwvt.h
  * harbour/contrib/gtwvg/gtwvt.c
    * removed some unused code and redirect some methods to common
      for all MS-Win GTs functions.
      Pritpal this code needs cleanup. Now it's xHarbour GT hacked
      to compile and link with Harbour API. It means that this code
      also inherited some small incompatibilities to Clipper which
      exists in xHarbour GTs. If you agree I'll try to systematically
      clean it and as I can see IMO the final version will look like
      GTWVT in core code plus some additional code so it can be quite
      easy separated. Probably with some small modifications in GTWVT it
      will be possible to remove these two files from GTWVG at all
      changing GTWVG to inherit from core GTWVT. Such separation will
      also show what is core GT code and what is GUI Windows extension
      what should help in defining common multi platform API.
2007-11-22 11:21:27 +00:00
Przemyslaw Czerpak
6b02648ff2 2007-11-22 01:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/fssize.c
  * harbour/source/rtl/hbffind.c
  * harbour/source/rtl/filesys.c
    * set _LARGEFILE64_SOURCE in all builds and use HB_USE_LARGEFILE64
      macro (set automatically when __USE_LARGEFILE64 is defined too or
      HB_OS_HPUX && O_LARGEFILE) to enable large file support in 32 bit
      POSIX systems. It should help to enable large file support in other
      then Linux different 32 bit *nixes.
      I hope it will resolve Sandro problems with HPUX.

  * harbour/source/vm/itemapi.c
    * do not return DATE item value in hb_itemGetNDDec()
      It was old and unused xHarbour only code - now hb_itemGetNDDec()
      is compatible with hb_itemGetND()

  * harbour/source/rtl/seconds.c
    ! fixed typo in BSD builds
      BTW can someone test current SVN code with Solaris?
      I will not be able to make such test myself in the nearest few weeks.
2007-11-22 00:44:50 +00:00
Przemyslaw Czerpak
a966524338 2007-11-21 19:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbgtcore.c
    + added emulation for clipboard in core GT code.
      Now: 
         hb_gtInfo( GTI_CLIPBOARDDATA ) -> <cClipData>
      and:
         hb_gtInfo( GTI_CLIPBOARDDATA, <cNewClipData> )
      is working in all GTs even if such functionality is not supported
      by OS.
2007-11-21 19:00:01 +00:00
Przemyslaw Czerpak
0f3a317e54 2007-11-21 05:44 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/harbour-ce-spec
  * harbour/harbour-w32-spec
  * harbour/harbour.spec
  * harbour/make_rpmce.sh
  * harbour/make_rpmw32.sh
  * harbour/make_rpm.sh
    * changed --without adsrdd to --with adsrdd
      now ADS* RDDs are not created by default

  * harbour/make_rpm.sh
    * set '--with adsrdd' when ${HOME}/ads/acesdk/ace.h or
      /usr/local/ads/acesdk/ace.h exists

  * harbour/contrib/rdd_ads/Makefile
    + added ${HOME}/ads/acesdk/ace.h as alternative ace.h location

  * harbour/source/rdd/hbsix/sxini.prg
    ! fixed typo
2007-11-21 04:44:53 +00:00
Przemyslaw Czerpak
1153e28e4b 2007-11-20 19:09 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    ! fixed using -o<name> in hbcc

  * harbour/contrib/rdd_ads/rddads.h
    ! small hack for Linux compilation and compilers which do not set
      unix macro

  * harbour/contrib/rdd_ads/Makefile
    * added /usr/local/ads/acesdk to include directory list
      Viktor the side effect of removing ace.h from our repository is
      blocking ADS* RDDs compilation by people who do not have ACE
      installed - I expect it will be serious problem in creating BETA4
      binaries because not all people who create them have ACE installed
      or even want to install it and without these RDDs for many users
      new Harbour version will be unusable.

  * harbour/source/rtl/seconds.c
    ! fixed stupid typo in milliseconds calculation

  * harbour/contrib/xhb/hbchksum.c
  * harbour/contrib/xhb/hbcomprs.c
  * harbour/contrib/xhb/hbcomprs.h
    ! use hb_retclenAdopt() instead of hb_retclenAdoptRaw()
    + svn:keywords Id
      svn:eol-style native
    TOFIX - these files have to be removed or changed to avoid name conflicts
    with ZLIB - personally I vote to add real ZLIB wrapper and only xHarbour
    compatible .prg functions when they are necessary. Probably only:
        HB_COMPRESS(), HB_UNCOMPRESS(), HB_COMPRESSBUFLEN()
    and maybe:
        HB_COMPRESSERROR(), HB_COMPRESSERRORDESC()
    In xHarbour:
        HB_CHECKSUM( <cValue> [, <nStart>] ) -> <nChkSum>
    is exactly the same function as in Harbour:
        HB_ADLER32( <cValue> [, <nStart>] ) -> <nChkSum>
    with the exception to bug with negative values fixed in Harbour only.
2007-11-20 18:09:55 +00:00
Mindaugas Kavaliauskas
1fcc352cbb 2007-11-19 19:03 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/source/compiler/hbopt.c
    ! fixed HB_P_MACROFUNC optimization
2007-11-19 17:04:06 +00:00
Viktor Szakats
fde4638c38 2007-11-18 13:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/xhb/hbcompat.ch
     + Added xhb SecondsSleep() translation.

   * contrib/freeimage/make_b32.bat
   * contrib/freeimage/make_vc.bat
   * contrib/firebird/make_b32.bat
   * contrib/firebird/make_vc.bat
     ! Some fixes.

   * contrib/libct/cttime.prg
     ! SECTOTIME() fix. Borrowed from xhb.

   * contrib/apollo/apollo.c
   * contrib/apollo/make_b32.bat
   * contrib/apollo/make_vc.bat
     ! Fixed and tested with latest downloadable package.

   * contrib/win32/w32_tprn.prg
   * contrib/win32/w32_prn.c
     + Minor fix (from xhb)

   * source/rtl/errorint.c
     ! Defaulting all string parameters to "" when they are NULL 
       to avoid any potential problems later in the function.

   * source/rtl/hbgtcore.c
     % Passing NULL instead of "" in hb_errInternal() calls.

   * source/vm/itemapi.c
     ! Internal error is lauched in case the parameters passed 
       to hb_itemPutCLConst() are violating string item rules.
       Thanks for Mindaugas for the suggestion.
       TOFIX: Since this violation will most probably happen in 
              contrib/win32 OLE code, we'll need to fix that 
              code too.

   * utils/hbmake/hbmake.prg
     ! Fixed to not request wvtgui.lib.
2007-11-18 12:46:48 +00:00
Viktor Szakats
6b9e24dd93 2007-11-17 03:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* make_vcce.bat
   * make_vcce.mak
     ! Minor corrections (syncing with existing files).

   * doc/genhtm.bat
     ! Minor fix to make it work out of the box.
     - Some obsolete stuff removed from it.

   * include/hbapiitm.h
   * include/hbapi.h
   * source/vm/itemapi.c
     + Added hb_itemPutCLConst() which is the same as 
       hb_itemPutCConst() but the buffer length can be passed.
       Same as xhb hb_itemPutCRawStatic().

   + contrib/xhb/hbcompat.h
     + Added C level compatibility header file.

   * contrib/win32/w32_ole.c
     ! hb_itemPutCRawStatic() -> hb_itemPutCLConst()
     ! Some more xhb API calls changed to Harbour ones.
     ! TraceLog() -> HB_TRACE()
     ! HB_ITEM s_OleAuto -> PHB_ITEM s_pOleAuto
       TOFIX (new): s_pOleAuto is not freed on app exit.
     ! Fixed a few more internal accesses by using API 
       calls.
     ; NOTE: There are four more complicated problems here 
             to be solved:
             1) hb_stackSetActionRequest() call
             2) Passing direct references to HB_ITEM .value 
                members to external functions.
             3) Storing "hidden" information in string ITEMs 
                prepended after the strings' actual content.
             4) Not freeing s_pOleAuto (this var BTW is used in 
                one static function only)

   * source/rtl/hbinet.c
   * source/rdd/dbcmd.c
     ! Changed some xhb C level API calls to Harbour ones.

   * contrib/xhb/Makefile
   * contrib/freeimage/Makefile
   * contrib/apollo/Makefile
   * contrib/firebird/Makefile
   * contrib/libct/Makefile
   * contrib/telepath/Makefile
   * contrib/pgsql/Makefile
   * contrib/gd/Makefile
   * contrib/libnf/Makefile
   * contrib/tip/Makefile
   * contrib/adordd/Makefile
   * contrib/rdd_ads/Makefile
   * contrib/btree/Makefile
   * contrib/samples/Makefile
   * contrib/mysql/Makefile
   * contrib/odbc/Makefile
   * contrib/pdflib/Makefile
     ! Added C and Harbour public headers to GNU makefiles.
     ! Added one missing SVN header.

   * contrib/pdflib/pdfhbdoc.ch
   * contrib/pdflib/pdf.ch
     ! Added missing SVN headers.

   - contrib/pdflib/pdflib.h
     - Removed this file which belongs to the pdflib 
       package. This package is needed anyway to use 
       this contrib. (but the contrib is badly broken)

   * contrib/pdflib/make_b32.bat
   * contrib/pdflib/make_vc.bat
     ! Minor typo.

   * source/rtl/persist.prg
     ! Prefixed static var name with "s_"
2007-11-17 02:26:51 +00:00
Viktor Szakats
d0f63f2253 2007-11-16 20:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/natmsgu.c
     ! Typo fixed.
2007-11-16 19:09:10 +00:00
Viktor Szakats
0de23eaa4f 2007-11-16 14:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.ch
     ! Minor fix in comments.

   * contrib/xhb/hbcompat.ch
     + Added hb_rddInfo() translation for xhb apps.

   * common.mak
   * include/hbextern.ch
   * source/rtl/Makefile
   + source/rtl/natmsgu.c
   * source/rtl/natmsg.c
     + Added Harbour internal version of undocument Clipper 
       Nat*() (and friends) calls. These are always available 
       in core.
       Harbour __natIsAffirm()   = Clipper IsAffirm()
       Harbour __natIsNegative() = Clipper IsNegative()
       Harbour __natMsg()        = Clipper NationMsg()
       Harbour __natSortVer()    = Clipper _NatSortVer()
       Harbour __natMsgVer()     = Clipper _NatMsgVer()

   * utils/hbtest/rt_misc.prg
   * source/rtl/dircmd.prg
   * source/rtl/getsys.prg
   * source/rtl/tgetlist.prg
   * source/rtl/tlabel.prg
   * source/rtl/treport.prg
     ! Now using Harbour internal __NAT*() functions 
       instead of C5.x undocumented calls, so Harbour 
       will now compile with HB_C52_UNDOC turned off.
2007-11-16 13:48:29 +00:00
Viktor Szakats
a35b2d9643 2007-11-14 23:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* common.mak
   * include/hbextern.ch
   * source/rdd/Makefile
   + source/rdd/rddinfo.c
   * source/rdd/dbcmd.c
   + source/rdd/dbdrop.c
   + source/rdd/dbcmd53.c
   + source/rdd/dbexists.c
   + source/rdd/fieldhb.c
     ! Moved away C53 functions to a separate file.
     + Added HB_RDDGETTEMPALIAS() as a documented version 
       of the long existing __RDDGETTEMPALIAS(). The latter 
       name still kept for compatibility.
     ! Moved away non-namespace conformant HB_EXTENSIONs 
       to separate files to cause less harm form those not 
       wanting these or already using these names in app 
       code.
     + Added HB_RDDINFO() namespace conformant version of 
       the RDDINFO() Harbour extension. RDDINFO() still works 
       but it's now defined in a separate file to cause less 
       potential harm.
     - Removed HB_EXTENSION guards from around DBDROP(), DBEXISTS(), 
       RDDINFO(), FIELDLEN(), FIELDDEC(), FIELDTYPE() non namespace 
       conformant Harbour extensions.
     ; Przemek: I'm sorry you didn't bother to answer, so I 
       just can hope these address the problems you were having.

   * source/rdd/sdf1.c
   * source/rdd/delim1.c
     ! Removed two __XHARBOUR__ guards, by making the guarded 
       code the default. We have SET EOL support in Harbour now, 
       so this seems okey. If not, tell.
     ; TOFIX: We still have __XHARBOUR__ #defines in pp/ppcore.c 
       and debug/debugger.prg.

   * include/hbsetup.ch
     ! HB_EXTENSION turned off.
2007-11-14 23:08:54 +00:00
Przemyslaw Czerpak
1a936ea93a 2007-11-14 19:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
  * harbour/source/common/hbwince.c
  * harbour/utils/hbver/hbverfix.c
    * modified for clean compilation with POCC/XCC and ARM processors
2007-11-14 18:00:38 +00:00
Przemyslaw Czerpak
8ff94c3c3d 2007-11-14 02:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/codepage/Makefile
  + harbour/source/codepage/cpesmwin.c
  - harbour/source/codepage/cpesmwi.c
    * renamed

  * harbour/source/rtl/cdpapi.c
    ! do not use '~' as accented character marker if neither ACCENTED_EQUAL
      nor ACCENTED_INTERLEAVED is set - in some CPs '~' is a letter
    ! use '~' as accented character marker only if it exists in UPPER and
      LOWER letter sets - our CP code cannot properly decode letter sets
      when this condition is not true - it should be fixed (TOFIX)
    ! use '.' as multibyte character marker only if it exists in UPPER and
      LOWER letter sets - our CP code cannot properly decode letter sets
      when this condition is not true - it should be fixed (TOFIX)

  * harbour/source/codepage/cpeldos.c
  * harbour/source/codepage/cpelwin.c
    * updated accent marker upper letters to be the same as in lower ones
      Greek users should fix me.
2007-11-14 01:01:01 +00:00
Przemyslaw Czerpak
f183c8fc32 2007-11-13 22:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/strcase.c
    * casting
2007-11-13 21:59:45 +00:00
Przemyslaw Czerpak
78267f6fb6 2007-11-13 22:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/cdpapi.c
    ! fixed bad typo in my last modification
2007-11-13 21:22:52 +00:00
Przemyslaw Czerpak
ebb74977d8 2007-11-13 14:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    * do not include gtwin in harbour.dll for MinGW-CE builds
      gtwin can work only if additional (non standard) libraries
      are installed in WinCE/PocketPC so it should not be part
      of harbour.dll

  * harbour/source/rtl/gtwin/gtwin.c
    * removed HB_WINCE_USE_POCKET_CONSOLE macro
      It's not longer necessary when gtwin is not part of harbour.dll
2007-11-13 13:38:46 +00:00
Przemyslaw Czerpak
df61dfde04 2007-11-13 14:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/make_xmingwce.sh
  * harbour/make_xmingw.sh
    * do not create compiler binaries in cross builds
    * use hbce and hbw prefixes for generated build scripts

  * harbour/make_tgz.sh
    * use strip from cross compiler instead of native one

  * harbour/include/Makefile
    + added missing header files

  * harbour/harbour.spec
    * minor cleanup

  * harbour/source/compiler/cmdcheck.c
    * accept internal option delimiters in define value
      (-d option, f.e.: '-dABC="QWE-ASD"')
2007-11-13 13:13:53 +00:00
Przemyslaw Czerpak
4ac8eb313f 2007-11-12 20:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/filesys.c
    * do not redefine LongToHandle() for __XCC__ and __POCC__ WinCE builds

  * harbour/utils/hbver/hbverfix.c
    ! fixed typos in previous commit
2007-11-12 19:53:59 +00:00
Przemyslaw Czerpak
c8bc7d5225 2007-11-12 19:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/include/hbassert.h
  * harbour/include/hb_io.h
  * harbour/source/rtl/gtstd/gtstd.c
  * harbour/source/rtl/gtpca/gtpca.c
  * harbour/source/rtl/fssize.c
  * harbour/source/rtl/hbinet.c
  * harbour/source/rtl/filesys.c
  * harbour/source/compiler/hbfix.c
  * harbour/source/compiler/hbpcode.c
  * harbour/source/compiler/hbdead.c
  * harbour/source/compiler/genc.c
  * harbour/source/compiler/hbopt.c
  * harbour/source/compiler/gencc.c
  * harbour/source/compiler/hblbl.c
  * harbour/source/compiler/hbstripl.c
  * harbour/utils/hbver/hbverfix.c
  * harbour/utils/hbpp/hbppcore.c
    * removed dependences to unsupported by new MSVC header files
      most of this modifications can be enabled also for standard Win32
      builds

  * harbour/source/common/hbwince.c
    * do not create dummy LocalLock() and LocalUnlock() function in MSVC
      WinCE builds

  * harbour/source/rtl/gtwin/gtwin.c
    + added HB_WINCE_USE_POCKET_CONSOLE macro which enable
      console support in WINCE builds (macro suggested by Marek Paliwoda)

  * harbour/source/rtl/gtwvt/gtwvt.h
  * harbour/source/rtl/gtwvt/gtwvt.c
    * changed default window and font size on WinCE to values suggested
      by Marek Paliwoda

   Marek if you have a while please make test with MSVC WinCE/PocketPC
   builds and current SVN code.
2007-11-12 18:22:51 +00:00