Commit Graph

6140 Commits

Author SHA1 Message Date
Viktor Szakats
a67b63175a 2009-07-23 12:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/dates2.c
    * Renamed DAYSINMONTH() to HBMISC_DAYSINMONTH(),
      to avoid collision with hbct function with the same
      name, but different functionality.
    - Deleted functions below from hbmisc library:
      EOM(), BOM(), WOM(), DOY(), WOY(), EOY(), BOY()
      They have superior alternatives with the same name
      in hbct lib, please use those.

  * contrib/hbssl/evpciph.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/bio.c
  * contrib/hbssl/tests/pem.prg
  + contrib/hbssl/tests/pubkey.pem
  * contrib/hbssl/tests/crypt.prg
  * contrib/hbssl/err.c
    + Added EVP_SEALINIT() (under development)
    + Added EVP_SEALUPDATE(), EVP_SEALFINAL().
    + Added SSL_SET_MSG_CALLBACK() (it's a debug function really,
      and the solution is slightly hackish, as I have to access
      OpenSSL structure and Harbour item freeing needs to be done
      manually. Anyhow it can be excluded from builds.
    + Added ERR_LOAD_CRYPTO_STRINGS().
    + Added ERR_PRINT_ERRORS(). (very useful)
    + Added ERR_FREE_STRINGS().

  * include/hbapi.h
  * source/vm/arrays.c
  * source/vm/extend.c
  * source/debug/dbgentry.c
  * source/rtl/hbgtcore.c
    ! Renamed API function hb_arraySetCPtr() to hb_arraySetCLPtr().
      Old function name still available for compatibility.
2009-07-23 10:03:20 +00:00
Viktor Szakats
40a7012cb7 2009-07-22 15:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * include/hbextern.ch
  * contrib/Makefile
  * source/rtl/Makefile
  + source/rtl/sha1.c
  + source/rtl/sha1.h
  + source/rtl/hbsha1hm.c
  + source/rtl/sha2.c
  + source/rtl/sha2.h
  + source/rtl/hbsha2hm.c
  + source/rtl/sha1hmac.c
  + source/rtl/sha1hmac.h
  + source/rtl/hbsha1.c
  + source/rtl/sha2hmac.c
  + source/rtl/sha2hmac.h
  + source/rtl/hbsha2.c
  + tests/testsha1.prg
  + tests/testsha2.prg
    * hbcrypt contrib library merged into the core.
2009-07-22 13:53:21 +00:00
Viktor Szakats
2849c6e191 2009-07-22 15:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * source/common/hbstr.c
  * source/rtl/hbmd5.c
    * Moved (and somewhat standardized and renamed) mem to hex C
      function from hbm5/rtl to common lib.

  * bin/hb-func.sh
    ! Fixed double '%' chars in hbmk.cfg generation.

  * contrib/hbcrypt/Makefile
  + contrib/hbcrypt/hbsha1.c
  + contrib/hbcrypt/hbsha1hm.c
  + contrib/hbcrypt/tests/testsha1.prg
    + Added HB_SHA1() and HB_HMAC_SHA1() functions.

  * source/rtl/hbmd5.c
    * Changed meaning of second boolean parameter. From
      now on a .T. has to be passed to get binary output.
      (I won't list this as a incompatible, as the new
      parameter has just been introduced)
    ; by now HB_MD5() and HB_SHA*() functions are synced 
      in functionality.

  * contrib/hbcrypt/hbsha1.c
  * contrib/hbcrypt/hbsha2.c
  * contrib/hbcrypt/hbsha1hm.c
  * contrib/hbcrypt/hbsha2hm.c
  * contrib/hbcrypt/tests/testsha2.prg
    * Changed all SHA2 functions to returned digest in hex
      format by default. The binary format can be requested by
      passing .T. as an extra parameter.
      INCOMPATIBLE: Please update your sources if you used
                    these functions. Add .T. parameter to keep
                    current workings.

  * contrib/hbcurl/hbcurl.c
    % Cleaned types (no BYTE, no BOOL, deleted unnecessary casts).
      Only a few ULONGs remained.

  * contrib/hbssl/pem.c
    + Some advances.
2009-07-22 13:41:36 +00:00
Viktor Szakats
2a1929a261 2009-07-21 00:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/net.c
    ! Fixed NETNAME()/hb_netname() on dos/watcom platforms
      in error cases it was leaking 16 bytes of memory.
      (+ minor formatting)
      Please review me.
    + NETNAME(), HB_USERNAME() now do conversion from OS
      codepage. Couldn't test it, please review me.
2009-07-20 22:24:54 +00:00
Viktor Szakats
e2cca2e1e6 2009-07-20 17:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_reg.prg
  * contrib/hbwin/win_regc.c
    ! GETREGISTRY() fixed to return default only if the
      registry entry doesn't exist. Previously it was
      falling back to default even if the value existed but
      was empty. In case of empty string, these weren't
      possible to write from hbwin, but could exist in registry
      when written by other tools.
    ! GETREGISTRY() fixed to return binary data as string
      for REG_BINARY types. (previously it was returning
      an unsigned int - essentially truncating everything
      beyong the first 4 bytes).
    ! GETREGISTRY() fixed to swap words for REG_DWORD_BIG_ENDIAN
      values to return correct unsigned integer results.
      (not tested)
    ! GETREGISTRY() fixed to strip only the ending Chr( 0 )
      from string values. This makes it possible to utilize
      strings containing nul chars (obviously) and also to
      parse REG_MULTI_SZ multistring values.
    ! GETREGISTRY() fixed to not RTE if WIN_REGQUERYVALUEEX()
      returned non-null length and a non-string value.
      I still have to understand how this was possible, but
      I got a report that it happened on a system.
    ! WIN_REGQUERYVALUEEX() fixed to store NIL in 5th param,
      if the registry entry doesn't exist.
    ! WIN_REGQUERYVALUEEX() fixed to store empty string when
      registry value is zero length.

  * include/hbapi.h
  * source/vm/extend.c
    + Added API hb_stor() to store a NIL into a parameter passed
      by reference.

  * source/vm/arrays.c
    * Minor formatting.
2009-07-20 15:48:57 +00:00
Przemyslaw Czerpak
8f26e540ec 2009-07-20 13:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/itemapi.c
    * cleaned hb_itemPutC*() functions. Now each function which accepts
      only pure szText pointer without length can be called with NULL
      as szText. Each function which need string length parameter needs
      non NULL szText value. I hope it's easy to remember for developers.
    % minor code optimizations for above rules

  * harbour/source/rtl/filebuf.c
    * allow to reuse tables in aliased workarea in RW mode after previous
      opening in RO mode
2009-07-20 11:20:22 +00:00
Viktor Szakats
6e3895739e 2009-07-20 10:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapinet.h
  * source/rtl/hbinet.c
    ! Fixed headers for non-Windows.
2009-07-20 08:21:50 +00:00
Viktor Szakats
5d8cbff947 2009-07-20 00:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/ssl.c
   + contrib/hbssl/hbssl.c
   * contrib/hbssl/Makefile
     + HB_SSL_READ_ALL() and HB_SSL_READ_LINE() rewritten.
       (HB_SSL_READ_ALL() isn't fully optimal, and maybe there
       are errors, please check.)
     + Added SSL_GET_RFD(), SSL_GET_WFD().

   * include/Makefile
   + include/hbapinet.h
   * source/rtl/hbinet.c
     + Moved some basic declarations to new API header,
       mainly to export hb_select[Read|Write]*() functions.
       We will also need such header in the future when
       we implement C level socket/networking API. Current
       solution is quite messy since the header has to
       pull Windows headers which may not be friendly with
       all usages/include order.

   * source/rtl/hbinet.c
     * HB_SOCKET_STRUCT renamed to HB_SOCKET.
     + Added PHB_SOCKET type.
     + Added hb_selectReadFD(), hb_selectWriteFD() which
       are similar to hb_selectReadSocket() and
       hb_selectWriteSocket() but expect raw FD plus explicit
       timeout values.
       These function names and solutions are tentative
       to solve SSL integration with Harbour, and hopefully
       in the future we will have a clean net API, the current
       one is very messy.

   * source/vm/itemapi.c
     ! hb_itemPutCPtr(), hb_itemPutCLPtr() fixed to put empty
       string to item if szText is NULL and length is non-zero,
       instead of trying to free NULL pointer causing internal
       error.

   * include/hbextlng.ch
     * Corrected header to be in sync with CDP and not
       to repeat the filename.
2009-07-19 22:51:05 +00:00
Viktor Szakats
a647e930c6 2009-07-19 19:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/Makefile
  + contrib/hbssl/sslerr.c
  + contrib/hbssl/sslx509.c
  * contrib/hbssl/ssl.c
  * contrib/hbssl/sslctx.c
  * contrib/hbssl/hbssl.ch
  * contrib/hbssl/tests/test.prg
    + Added ERR_*() API functions.
    + Prefixed .ch contant names with HB_ to avoid collision with
      ssl own headers.
    + Added SSL_CTX_SET_MODE(), SSL_CTX_GET_MODE() functions.
    + Added HB_SSL_READ_ALL(), HB_SSL_READ_LINE() functions meaning
      to mimic HB_INETRECVALL() and HB_INETRECVLINE(). (probably needs
      more work, it'd be great if someone who understands the guts of
      these inet functions could take a look)
    * SSL_PEEK() synced with SSL_READ() recent changes.
    + Added SSL_SET_MODE(), SSL_GET_MODE(), SSL_SET_MTU() functions.
    + Added SSL_GET_RBIO(), SSL_GET_WBIO() functions.
    + Added SSL_GET_PEER_CERTIFICATE() function.
    + Added X509_GET_SUBJECT_NAME(), X509_GET_ISSUER_NAME(), X509_NAME_ONELINE()
    + Added HB_SSL_MODE_* constants.

  * include/hbextern.ch
    * Changed to use new hbextlng.ch.

  - examples/hbextern/hbextern.lst
    ! It wasn't deleted in 2009-07-18 21:37 UTC+0600 for some reason.

  * source/rtl/console.c
    ! Fixed OUTSTD() and OUTERR() to output separator space
      to std/err instead of alt.

  * source/rtl/hbinet.c
    % Minor optimization.
2009-07-19 17:42:06 +00:00
Przemyslaw Czerpak
314d60309f 2009-07-18 02:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbzlib.c
    + added HB_ZERROR( <nError> ) => <cErrorDescription>
      It's wrapper to zError() ZLIB function.
2009-07-18 00:57:57 +00:00
Przemyslaw Czerpak
551d0c2bcf 2009-07-17 16:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/macro/macro.y
  * harbour/source/macro/macro.yyc
    % improved macrocompiler speed by reducing number of memory
      allocations for compiled subexpressions
2009-07-17 14:19:24 +00:00
Viktor Szakats
073fd02030 2009-07-17 13:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
    - Deleted reference to hbfm lib.

  * source/pp/Makefile
    * Minor formatting.
2009-07-17 11:36:32 +00:00
Przemyslaw Czerpak
a253517ff2 2009-07-17 13:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/Makefile
    * removed old  HB_PP_RULES used for precomputed pptables
    * added protection against setting possible actions executed without
      HB_ARCHITECTURE and HB_COMPILER
2009-07-17 11:00:37 +00:00
Przemyslaw Czerpak
7b9e94a15c 2009-07-17 12:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/Makefile
    ! set EXE_FILE - it's workaround to force bin/<arch>/<cmp> directory
      creation in current make files and then cleaning it if possible

  * harbour/config/rules.cf
    * removed old hardcoded clean rules which deleted files not created
      by build process

  * harbour/config/instsh.cf
    * pacified install command echo

  * harbour/config/globsh.cf
    ! fixed new sh clean rules: [ ! -f $(LIB_DIR)/* ] causes syntax
      error when more then one file exists in $(LIB_DIR) directory
2009-07-17 10:15:40 +00:00
Viktor Szakats
5cb93fcc29 2009-07-17 12:05 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
    ! Fixed to delete hbpp.tds.

  * config/globsh.cf
    + Attempt to fix nt shell clean rules. Please test.
    ! Fixed to create bin dir even when lib targets are being
      created. This hack is needed to support existing hack
      inside source/pp/Makefile. If there is any possibility
      to solve current hbpp lib+bin rules in some cleaner ways
      IMO we should do it, but so far I couldn't figure out
      how current method works.
2009-07-17 10:06:27 +00:00
Viktor Szakats
c439db6050 2009-07-17 10:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtxwc/gtxwc.c
    ! Fixed typo.
      This should fix the warning plus black screen reported by 
      some users. Please test.
2009-07-17 08:40:59 +00:00
Viktor Szakats
64f481018a 2009-07-17 10:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtxwc/gtxwc.c
    ! Fixed to compile under cygwin.
2009-07-17 08:02:34 +00:00
Przemyslaw Czerpak
4e8c876b3e 2009-07-16 20:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/Makefile
    * test for HB_COMPILER=djgpp instead of HB_ARCHITECTURE=dos to
      activate trick used to detect PDCURSES in DJGPP builds when
2009-07-16 18:58:10 +00:00
Przemyslaw Czerpak
d9f771d119 2009-07-16 19:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
- harbour/source/nulrtl
  - harbour/source/nulrtl/nulrtl.c
  - harbour/source/nulrtl/Makefile
  + harbour/source/nortl
  + harbour/source/nortl/nortl.c
  + harbour/source/nortl/Makefile
  * harbour/source/pp/Makefile
  * harbour/source/main/Makefile
  * harbour/source/Makefile
  * harbour/harbour-win-spec
  * harbour/harbour-wce-spec
  * harbour/harbour.spec
  * harbour/examples/pp/pp.hbp
    * renamed hbnulrtl library to hbnortl to eliminate 8.3 name conflicts
      in DJGPP builds
2009-07-16 17:35:25 +00:00
Viktor Szakats
fb63a2d9cc 2009-07-16 16:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/rules.cf
  * config/global.cf
    + Added new internal variable HB_HOST_BIN_DIR to avoid touching
      original HB_BIN_COMPILE and in turn mess up __PLATFORM__ macro
      definitions in recursive runs to GNU Make.
2009-07-16 14:38:30 +00:00
Przemyslaw Czerpak
76a5fd9b3b 2009-07-16 15:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/ppcore.c
  * harbour/source/compiler/complex.c
  * harbour/source/hbzlib/ChangeLog
  * harbour/source/hbzlib/trees.c
    * cleaned casting
2009-07-16 13:20:19 +00:00
Viktor Szakats
4ff8a0a513 2009-07-16 14:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
    ! Switched to use HB_FLAGSEXTRA for __PLATFORM__ macros instead
      of cumulating HB_USER_PRGFLAGS. It didn't work in linux/watcom
      builds from win hosts. This way also HB_HOST_FLAG_ isn't needed.

  * config/wce/global.cf
    - Deleted commented HB_FLAGSEXTRA line.

  * source/hbpcre/_hbconf.h
    * Minor formatting.
2009-07-16 13:00:14 +00:00
Viktor Szakats
43cd4d5102 2009-07-16 10:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbextern.ch
  * source/lang/Makefile
  + source/lang/msguados.c
    + Added Ukrainian language module for cp1125.
      (borrowed from xhb, work of Pavel Tsarenko.)
      I've made a few corrections compared to xhb:
      - Using the same internal name as filename for
        consistency with other language modules
        (UADOS instead of UA1125).
      - Fixed date format which must only contain YYYY, MM, DD
        regardless of the CP/language used, since it's a picture mask.
      - Formatting (semicolon, spaces, deleted embedded $Id$ not
        needed with SVN)
      - Added to hbextern.ch.

  * source/lang/msguakoi.c
  * source/lang/msgua866.c
    * Two corrections to internal name.
      (borrowed from xhb, work of Pavel Tsarenko.)
    ; QUESTION: I wonder why the texts are very much different in
                Harbour and xhb. Someone familiar with Ukrainian
                language and encodings should check this, only one
                of them can be right and all CPs should be synced 
                with each other the only thing being different is 
                the encoding.

  * source/codepage/msguakoi.c
    ! Fixed one letter.

  * source/codepage/cpuawin.c
  * source/codepage/cpua1125.c
  * source/codepage/cpua866.c
  * source/codepage/cpuakoi.c
    * Added "CYRILLIC LETTER GHE WITH UPTURN" letter.
      (borrowed from xhb, work of Pavel Tsarenko.)
2009-07-16 08:49:33 +00:00
Viktor Szakats
f0659091a8 2009-07-16 10:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* make_gnu_os2.cmd
  * make_gnu.bat
  * make_gnu.sh
    % Deleted install dir creation. Now done from GNU Make.

  * make_gnu_os2.cmd
    * Installs libs in lib/<arch>/<comp> by default just like
      win/dos builds.

  * config/instsh.cf
    ! Fixed missing semicolon.

  * config/rules.cf
    * Minor in comments.

  * include/hbsetup.h
  * source/common/hbprintf.c
    - Removed temporary enabler logic, here testing is over.
2009-07-16 08:03:03 +00:00
Przemyslaw Czerpak
e4cfb37946 2009-07-15 20:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/harbour.spec
    ! fixed RPM building after recent modification in Makefiles

  * harbour/harbour-win-spec
  * harbour/harbour-wce-spec
    * updated for new binary files directory and HB_BIN_COMPILE meaning

  * harbour/source/pp/Makefile
  * harbour/config/rules.cf
    ! fixed binary extension used to execute hbpp and harbour,
      AFAIK in current version it should be HB_HOST_BIN_EXT not EXE_EXT

  * harbour/config/global.cf
    ! fixed host architecture autodetection:
         @uname = $(shell uname -a)
      does not execute command silently but creates envvar '@uname'
    % added function for host detection and extended host detection
      rules to work with some envvars
    % test some known OS envvars before calling uname
    ! use 'uname -s' instead of 'uname -a' which may cause wrong host
      detection when host name contains some string we are looking for
    ! set .exe in HB_HOST_BIN_EXT for win_amd64
2009-07-15 18:02:57 +00:00
Viktor Szakats
8803ac29e6 2009-07-15 18:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * source/pp/hbpp.c
    + hbpp is now accepting directory for -c parameter and in this
      case it will check ChangLog names in specified dir.
    + Modified make file to pass dir to hbpp so now it configures 
      itself automatically no matter where we move the object directory.
    ; Please review me.
2009-07-15 16:08:52 +00:00
Viktor Szakats
3b08018672 2009-07-15 17:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/hbpp.c
    ! Need to go one level up after latest changes.

  * doc/dirstruc.txt
    - Deleted reference to old central obj dir.
2009-07-15 15:52:41 +00:00
Viktor Szakats
4e922aa3b5 2009-07-15 14:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
    - Removed HB_PPGEN_PATH setting. Now HB_BIN_COMPILE is used to
      point to the directory where all native executables are to be
      found. This means you can simply delete HB_PPGEN_PATH from
      your local settings.
    ; NOTE: Please update make_gnu_xmingw*.sh script accordingly,
            it should probably accept (detect) HB_BIN_COMPILE and
            drop HB_COMP_PATH / HB_PPGEN_PATH settings.
            Or, we should define some new ways to define cross
            builds replacing the current mess (there is also
            HB_XBUILD). I'd vote for these envvars:
            - HB_HOST_ARCH        (linux, win, dos, os2, etc...)
            - HB_HOST_BIN         (dir of native executables)
            - HB_HOST_BIN_EXT     (.exe or empty)

  * INSTALL
    * Updated cross-build sections and deleted make_gnu_xmingw*.sh
      related exception to keep instructions clean.

  * contrib/hbwin/wapi_commctrl.c
  * contrib/hbwin/hbwapi.h
    ! Fixed to compile under various other win compilers.
    ! Added missing WinCE protections. (notice all tools are freely
      available to check these and avoid breaking builds)
      Added non-WinCE branch to return dummy values.
    ! Formatted: (_WIN32_IE >= 0x0300) -> ( _WIN32_IE >= 0x0300 )
    ! Fixed non-ANSI comments.
    ! Fixed warnings, and there is still some dubious comversions
      in there like HANDLE - HTREEVIEW and RECT passings. I wonder
      if it is possible at all to create clean Windows API code.
    ; NOTE: Please take care of above stuff, it's not a pleasure
            to be the cleaner of such code, but it breaks builds 
            to it must be done all the time.
    ; NOTE: I'd like to recommend adding only Windows API functions
            which are available on all Windows platforms (WinCE,
            Win64) otherwise it will be more difficult to build
            anything portable on top of them.
    ; QUESTION: Why many functions are disabled with #if 0?
2009-07-15 13:04:39 +00:00
Viktor Szakats
862c0c5e92 2009-07-15 13:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/rules.cf
  * config/darwin/gcc.cf
  * config/dos/watcom.cf
  * config/dos/djgpp.cf
  * config/global.cf
  * config/lib.cf
  * config/win/watcom.cf
  * config/bin.cf
  * config/linux/watcom.cf
  * config/os2/watcom.cf
  * config/os2/gcc.cf
    + Now all binaries will be created inside bin/<arch>/<comp>,
      instead of the work/obj dir.
    ; Please test. (I didn't test cross-compilation yet, but maybe
      now it's a better time to cleanup the HB_PPGEN_PATH, HB_BIN_COMPILE
      settings and drop the former.
    ! Reverted prev cleanup.
    ; TOFIX: install rule for hbpp lib doesn't work after recent 
             change.
    ; TODO: Delete HB_PPGEN_PATH
2009-07-15 11:37:24 +00:00
Viktor Szakats
2a935acc52 2009-07-15 11:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/hbinet.c
    * Formatting, cleanup.
    * Few types cleaned. Although many 'int's seems better be 'long',
      I didn't touch it.
      Please review. No functionality should change.
    ! HB_INETSTATUSDESC() to always return string if socket is valid.
2009-07-15 10:26:14 +00:00
Viktor Szakats
2b2a377ff9 2009-07-15 03:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/hpux/global.cf
  * config/darwin/global.cf
  * config/dos/global.cf
  * config/lib.cf
  * config/win/global.cf
  * config/linux/global.cf
  * config/bin.cf
  * config/os2/global.cf
  * config/test.cf
  * config/sunos/global.cf
  * config/bsd/global.cf
  * config/wce/global.cf
    * ARCH_COMP_OS  -> OBJ_DIR_OS
    * ARCH_COMP_DIR -> OBJ_DIR
    (using names that make more sense)
2009-07-15 01:31:27 +00:00
Przemyslaw Czerpak
99c6f1913f 2009-07-15 03:28 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwin/gtwin.c
    * added code to disable/enable mouse input by:
         hb_gtInfo( HB_GTI_MOUSESTATUS, <lOnOff> )
      It's possible that hb_gtInfo( HB_GTI_MOUSESTATUS, .F. ) will also
      disable mouse cursor in full screen mode but I haven't tested it.
      Please check.
2009-07-15 01:28:20 +00:00
Viktor Szakats
6cd0529480 2009-07-15 03:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtwin/gtwin.c
    * Minor formatting.

  * source/rtl/gtapi.c
    % hb_gtSetCursor(): Deleted parameter evaluation.
      It's better to do it only on low-level.

  * config/win/bcc.cf
    % Line deleted.

  * utils/hbmk2/hbmk2.prg
    + -nohblib now supported in scripts.
    + -nohblib- option added.

  * examples/pp/pp.hbp
    * Comment deleted.
2009-07-15 01:12:42 +00:00
Przemyslaw Czerpak
e81c3d4058 2009-07-15 02:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/hpux/gcc.cf
  * harbour/config/darwin/gcc.cf
  * harbour/config/dos/watcom.cf
  * harbour/config/dos/djgpp.cf
  * harbour/config/win/watcom.cf
  * harbour/config/win/icc.cf
  * harbour/config/win/cygwin.cf
  * harbour/config/win/msvc.cf
  * harbour/config/win/xcc.cf
  * harbour/config/win/mingw.cf
  * harbour/config/win/pocc.cf
  * harbour/config/win/bcc.cf
  * harbour/config/linux/watcom.cf
  * harbour/config/linux/gcc.cf
  * harbour/config/linux/icc.cf
  * harbour/config/os2/watcom.cf
  * harbour/config/os2/gcc.cf
  * harbour/config/sunos/gcc.cf
  * harbour/config/bsd/gcc.cf
  * harbour/config/wce/msvcarm.cf
  * harbour/config/wce/mingwarm.cf
  * harbour/config/wce/poccarm.cf
    * cleanup: rtl -> hbrtl, rdd -> hbrdd

  * harbour/harbour.spec
  * harbour/harbour-win-spec
  * harbour/harbour-wce-spec
  * harbour/include/hbcomp.h
  * harbour/source/Makefile
  + harbour/source/nulrtl
  + harbour/source/nulrtl/nulrtl.c
  + harbour/source/nulrtl/Makefile
    + added hbnulrtl library to use non .prg harbour binaries

  * harbour/source/rtl/strmatch.c
  * harbour/source/common/Makefile
  + harbour/source/common/strwild.c
    * moved hb_strMatch*() functions from RTL to COMMON library
      Warning: copyright changed in new file. Viktor is rtl/strmatch.c
      copyright holder but hb_strMatch*() functions is my code.

  * harbour/source/rtl/Makefile
  - harbour/source/rtl/hbffind.c
  * harbour/source/common/Makefile
  * harbour/source/common/hbffind.c
    * moved hb_fsFind*() functions from RTL to COMMON library

  * harbour/source/main/harbour.c
  * harbour/source/main/Makefile
    * use hbnulrtl library to create harbour binaries

  * harbour/source/pp/Makefile
  * harbour/source/pp/hbpp.c
    * use hbnulrtl library to create hbpp binaries
    * added support for wildcard search

  * harbour/examples/pp/pp.c
  * harbour/examples/pp/pp.hbp
    * use hbnulrtl library to create pp binaries
      question: why is ignored -nohblib in pp.hbp?

  * harbour/contrib/rddads/ads1.c
    % removed always false if() { ... } statement
2009-07-15 00:37:09 +00:00
Viktor Szakats
bce14d30e1 2009-07-14 21:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/global.cf
  * config/bin.cf
  * config/test.cf
  * config/lib.cf
  * config/darwin/global.cf
  * config/hpux/global.cf
  * config/dos/global.cf
  * config/win/global.cf
  * config/linux/global.cf
  * config/os2/gcc.cf
  * config/os2/global.cf
  * config/sunos/global.cf
  * config/bsd/global.cf
  * config/wce/global.cf
    * HB_ARCH     -> ARCH_COMP
    * HB_ARCH_OS  -> ARCH_COMP_OS
    * ARCH_DIR    -> ARCH_COMP_DIR
    * LIB_ARCH    -> LIB_FILE
    * LIB_ARCH_OS -> LIB_FILE_OS
    * EXE_ARCH    -> EXE_FILE
    * LIB_PATH    -> LIB_ARCH_DIR
    * LIB_PATH_OS -> LIB_ARCH_DIR_OS
    (Renamed in the hope the new names will make a little bit more sense)
2009-07-14 19:52:24 +00:00
Viktor Szakats
5047203687 2009-07-14 20:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/header.cf
  * config/darwin/install.cf
  * config/dos/install.cf
  * config/doc.cf
  * config/lib.cf
  * config/win/install.cf
  * config/bin.cf
  * config/linux/install.cf
  * config/os2/install.cf
  * config/sunos/install.cf
  * config/bsd/install.cf
  * config/wce/install.cf
    * INSTALL_OBJS -> INSTALL_FILES
    * INSTALL_DIRSH -> INSTALL_DIR_OS
    * INSTALL_OBJSH, INSTALL_LIST -> INSTALL_FILES_OS
2009-07-14 18:41:35 +00:00
Viktor Szakats
40a550d49b 2009-07-14 18:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/hbpp.c
  * source/pp/Makefile
    + Moved ChangeLog name detection logic to C level.
2009-07-14 16:32:01 +00:00
Viktor Szakats
38d9c0e799 2009-07-14 18:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * make_gnu.sh
    * Moved lib detection logic to hb-func.sh.
    ; It'd be better to have a way to gather such information
      along the make process in some .cfg files.

  * source/rtl/gtcrs/Makefile
    - Deleted some header locations which weren't checked anyway
      before these changes. Please review.

  * config/djg-make.exe
    + Updated to 3.81 (from 3.79.1) found in djgpp 2.04 (beta)
      (doesn't resolve the dos/watcom problem with hbpp)
2009-07-14 16:05:06 +00:00
Przemyslaw Czerpak
5501f030e3 2009-07-14 16:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/Makefile
    ! fixed hardcoded for windows shortcut (Change~1) ChangeLog name
      in DOS OpenWatcom builds so now it's possible again to create
      such builds in real DOS without LFN support
2009-07-14 14:48:32 +00:00
Viktor Szakats
1fcbe31892 2009-07-14 12:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/extend.c
    ! [REVERTED - I overlooked it]
      Fixed hb_parvcx() to return "" instead of NULL when dealing
      with array parameters out of bound or non-string.
      (Borrowed from xhb by Ron Pinkas. Although the fix is
      implemented differently in Harbour)
2009-07-14 10:46:00 +00:00
Przemyslaw Czerpak
df06dd542d 2009-07-14 12:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/gtcrs.c
  * harbour/source/rtl/gttrm/gttrm.c
    * updated to compile with DJGPP 2.03
2009-07-14 10:25:46 +00:00
Viktor Szakats
61962be0dd 2009-07-14 12:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/vm/extend.c
    ! Fixed hb_parvcx() to return "" instead of NULL when dealing
      with array parameters out of bound or non-string.
      (Borrowed from xhb by Ron Pinkas. Although the fix is
      implemented differently in Harbour)

  * source/rtl/gttrm/Makefile
    * CFLAGS -> HB_USER_CFLAGS

  * include/hbapicdp.h
  * include/hbextern.ch
  * source/lang/Makefile
  * source/codepage/Makefile
  + source/codepage/cpua1125.c
  + source/codepage/uc1125.c
    + Added DOS Ukrainian 1125 codepage
      (Borrowed from xhb. Work of Pavel Tsarenko)

  * utils/hbmk2/hbmk2.prg
    * OS/2 embedded compiler autodetection order fixed.
2009-07-14 10:16:48 +00:00
Przemyslaw Czerpak
4499e22e7d 2009-07-14 11:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/gtcrs.c
  * harbour/source/rtl/gtcrs/gtcrs.h
  * harbour/source/rtl/gtcrs/Makefile
    * updated to compile with DJGPP and PDCURSES

  * harbour/source/rtl/gttrm/Makefile
  * harbour/source/rtl/gttrm/gttrm.c
    * updated to compile with DJGPP - warning it needs remote terminal or
      at least ANSI driver for local execution

  * harbour/source/rtl/gtchrmap.c
    * enabed for DOS builds
2009-07-14 09:30:34 +00:00
Viktor Szakats
0b0c2ff677 damn. fix again. 2009-07-14 09:22:10 +00:00
Viktor Szakats
2223e66a6d fix to prev 2009-07-14 09:21:31 +00:00
Viktor Szakats
69c952f060 2009-07-14 11:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
    ! Ugly hack added to make dos/watcom creation under NT hosts.
      Please check/fix since this probably broke dos/watcom on
      DosBox.
    ; NOTE: we should probably rename ChangeLog to CHANGES, as it's
            almost impossible to get it right properly.
            Or, hbpp could look for these alternate short names in
            some predefined order.
2009-07-14 09:19:56 +00:00
Viktor Szakats
74bdd7ee01 2009-07-14 10:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* Makefile
    ! Adjusted a little bit to postinst.bat executed for Linux
      cross builds also.

  * doc/linux1st.txt
  * source/rtl/Makefile
  * config/hpux/global.cf
  * config/darwin/global.cf
  * config/dos/global.cf
  * config/win/global.cf
  * config/win/xcc.cf
  * config/win/mingw.cf
  * config/win/pocc.cf
  * config/linux/watcom.cf
  * config/linux/global.cf
  * config/os2/global.cf
  * config/sunos/global.cf
  * config/bsd/global.cf
  * config/wce/global.cf
  * config/wce/poccarm.cf
    - Deleted references of already halfly-deleted HB_GT_LIB
      support. Users should use -DHB_GT_LIB=<gtname>. HB_GT_LIB
      also has a different, special purpose in os2, this is still
      kept, but it would be better to use some other names for it.
    ! Fixed linux/watcom to suppress .elf extension of binaries
      when built on a non-Linux host.
    - Deleted extra GT libs from link list. Now all *portable* GTs
      plus the default one are *linked*, and all GTs are always
      attempted to be *built*.
    - Deleted checking GT libs extistance. They always exist
      unless the source tree is corrupted, so there is no point
      to do this check.
    * wce/poccarm now always have /SUBSYSTEM:WINDOWS.
    ; NOTE: If we want to support build-time default GT selection/override,
            we should find some proper ways, but it makes things
            very complicated without much benefit, since GT can be
            easily overridden in final apps, supplied binary tools can
            also very easily rebuilt using hbmk2 with whatever GT.

  * utils/hbmk2/hbmk2.prg
    * Minor formatting.
2009-07-14 08:54:11 +00:00
Przemyslaw Czerpak
0d0546f3f5 2009-07-14 09:43 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/Makefile
  * harbour/source/rtl/gttrm/Makefile
  * harbour/source/rtl/gtsln/Makefile
    * disabled GPM when HB_GPM_MOUSE=no or HB_COMMERCE=yes
      Please remember that GPM is pure GPL library.
2009-07-14 07:43:39 +00:00
Viktor Szakats
6c4474b4d3 2009-07-14 01:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/rtl/gtcrs/Makefile
  * source/rtl/gtsln/Makefile
    * Detection locations synced with make_gnu.sh.
      (not 100%, ncurses.h isn't checked for existence in Makefile,
      as it's not used anyway in our sources. should be removed from
      make_gnu.sh probably.)
2009-07-13 23:28:42 +00:00
Viktor Szakats
40d66b8a9d 2009-07-14 00:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added Linux build on NT host example.

  * utils/hbmk2/hbmk2.prg
    + Added support for most watcom cross-compile situations.
      (os2/linux/dos on win, os2/linux/win on dos, dos/win/linux on os2,
      dos/win/os2 on linux - I didn't test them all obviously)
    ! Some fixes regarding Linux targets on non-Linux hosts cross
      build situations. This is brand new situation.
    ! Synced watcom/os2 flags with build ones to avoid hbmk2 build errors
      on os2.
    ! Fixed linux/watcom object extension, which appears to be .obj
      when using non-Linux hosts.

  * make_gnu.bat
    * Linux cross-build support.
    ! Fixed to find make_gnu.sh when doing partial builds using
      bash on Windows.

  * config/win/global.cf
  * config/win/install.cf
  * config/linux/dir.cf
  * config/linux/global.cf
  * config/linux/install.cf
  * config/os2/global.cf
  * config/os2/install.cf
  * config/wce/global.cf
  * config/wce/install.cf
    + install bash section synced across linux/windosos2 platforms.
    + empty target handling synced across linux/windosos2 platforms.
    + Added support to linux build files for cross builds on
      Windows and OS/2 hosts.
    ; TODO: Whole install/global/dir.cf logic is just crying to be moved
            to central location and be branched by host platform/shell
            rather than target platform.
    ; Please check me on the linux changes, could be that I messed it up.

  * source/rtl/Makefile
    + Enabled to try building all GTs on every platform.
      Local autodetection should take care of the decision to finally
      build it or not.

  * source/rtl/gtxwc/Makefile
  * source/rtl/gtcrs/Makefile
  * source/rtl/gttrm/Makefile
  * source/rtl/gtsln/Makefile
    + Added self-detection for external headers just like it's done
      in contribs. This is required to support Linux cross-builds on
      Windows. (djgpp + curses ends with build errors)
    + Added GPM autodetection.
    + Enabled gttrm for cygwin. (only in local make file)
    ; TOFIX: Remove such detection logic from make_gnu.sh (it's
             now redundant and doesn't work for djgpp/cygwin)

  * source/rtl/gtwin/gtwin.c
  * source/rtl/hbgtcore.c
  * contrib/xhb/txml.prg
    * Minor formatting.
2009-07-13 23:20:49 +00:00