14 Commits

Author SHA1 Message Date
Viktor Szakats
5a2a287752 2017-09-08 16:00 UTC Viktor Szakats (vszakats users.noreply.github.com)
* *
    * partial sync with the 3.4 fork codebase. These are the things
      synces for the most part:
      - copyright headers
      - grammar/typos in comments and some readmes
      - comment/whitespace/decorations
      - variable scoping in C files
      - DO CASE/SWITCH and some other alternate syntax usage
      - minimal amount of human readable text in strings
      - minor code updates
      - HB_TRACE() void * casts for pointers and few other changes to
        avoid C compiler warnings
      - various other, minor code cleanups
      - only Harbour/C code/headers were touched in src, utils, contrib,
        include. No 3rd party code, no make files, and with just a few
        exceptions, no 'tests' code was touched.
      - certain components were not touched were 3.4 diverged too much
        already, like f.e. hbmk2, hbssl, hbcurl, hbexpat
      - the goal was that no actual program logic should be altered by
        these changes. Except some possible minor exceptions, any such
        change is probably a bug in this patch.
      It's a massive patch, if you find anything broken after it, please
      open an Issue with the details. Build test was done on macOS.
      The goal is make it easier to see what actual code/logic was changed
      in 3.4 compared to 3.2 and to make patches easier to apply in both
      ways.
2017-09-08 16:25:13 +00:00
Viktor Szakats
d55bdd18b7 2017-09-07 08:38 UTC Viktor Szakats (vszakats users.noreply.github.com)
* contrib/hbct/charsprd.c
  * contrib/hbct/dattime3.c
  * contrib/hbct/expand.c
  * contrib/hbct/misc2.c
  * contrib/hbct/screen2.c
  * contrib/hbcurl/core.c
  * contrib/hbfship/strpeek.c
  * contrib/hbnetio/netiocli.c
  * contrib/hbwin/olecore.c
  * contrib/rddads/adsx.c
  * contrib/rddads/rddads.h
  * contrib/rddsql/sqlmix.c
  * contrib/sddmy/core.c
  * contrib/sddpg/core.c
  * contrib/xhb/hbcompat.h
  * contrib/xhb/hbxml.c
  * contrib/xhb/xhb.h
  * src/common/hbstr.c
  * src/compiler/harbour.y
  * src/compiler/harbour.yyc
  * src/compiler/hbcmplib.c
  * src/macro/macrolex.c
  * src/rdd/dbffpt/dbffpt1.c
  * src/rdd/hbsix/sxcompr.c
  * src/rdd/hbsix/sxcrypt.c
  * src/rdd/hbsix/sxtable.c
  * src/rdd/hsx/hsx.c
  * src/rtl/cdpapi.c
  * src/rtl/gtcrs/gtcrs.c
  * src/rtl/gtxwc/gtxwc.c
  * src/rtl/hbtoken.c
  * src/rtl/net.c
  * src/rtl/netusr.c
  * src/vm/hvm.c
    * update HB_SIZE variable name prefixes to use `n` instead of `ul`
    % adjust some variables
    % sync variables scopes and some other minor things with 3.4 fork
2017-09-07 08:39:50 +00:00
Viktor Szakats
9f16c2bf8e 2017-08-13 18:27 UTC Viktor Szakats (vszakats users.noreply.github.com)
* *
    * update copyright headers with new FSF postal address
    * COPYING.txt -> LICENSE.txt (rest of repo to be synced)
2017-08-13 18:38:59 +00:00
Viktor Szakats
cef75de547 2016-01-15 15:20 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage from copyright header. Pass 3 - manual.
    * project homepage and name is described in README, amongst others
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-15 15:21:27 +01:00
Viktor Szakats
58faf91453 2016-01-14 19:17 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage [1] from copyright header. Pass 1 - using script.
      [1] nobody has access to it anymore AFAIK - and it's also just
          a redirect since long
    ! update url in copyright header
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-14 19:18:17 +01:00
Przemysław Czerpak
96ca3fe470 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* Makefile
  * config/*
  * contrib/*
  * doc/*
  * extras/*
  * include/*
  * lib/*
  * package/*
  * src/*
  * tests/*
  * utils/*
    * removed empty lines left after removed '$' + 'Id' + '$' identifiers
2014-01-21 20:41:05 +01:00
Przemysław Czerpak
bcfb15e873 2014-01-07 13:01 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/harbour.hbx
  * src/rtl/hbdef.c
    + added new PRG function hb_defaultValue(). It's similar to hb_default()
      but it returns expected value instead of setting 1-st parameter.
      New function can be used to replace code like:
         hb_default( @lParam, .T. )
         IF lParam
            [...]
         ENDIF
      with:
         IF hb_defaultValue( lParam, .T. )
            [...]
         ENDIF
      It's useful for two main reasons:
      1) we do not damage original parameter value
      2) if parameter is used only once then it's a little bit faster

  * contrib/hbfship/stroccur.prg
    ! do not generate error when wrong parameters are passed to StrOccurs()
      function (FS compatible behavior)
    ! set default value of 3-rd parameter in StrOccurs() to .T. only if it's not
      passed at all, otherwise set it to .F. (FS compatible behavior)
    % small simplification

  * src/compiler/hbmain.c
    ! extended code which resolves conflicts with multiple static
      functions with the same name compiled from different PRG modules
      into single object file to resolve conflicts also with external
      function calls. It should fix problem reported by Viktor.
2014-01-07 13:01:03 +01:00
Przemysław Czerpak
1dc1bba911 2013-11-04 16:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbfship/hbfship.hbp
  * contrib/hbfship/hbfship.hbx
  + contrib/hbfship/stroccur.prg
    + added undocumented FlagShip function:
         StrOccurs( <cSub>, <cStr>, [<lAny>] ) -> <nCount>
      It returns the number of occurrences of <cSub> string in <cStr>
      If <lAny> is true (default) then it accepts any possible substring
      posittions otherwise (lAny == .F.) substrings cannot occupy common
      characters from <cStr>, i.e.
         StrOccurs( "aa", "aaaa", .T. ) => 3
         StrOccurs( "aa", "aaaa", .F. ) => 2

  * contrib/hbfoxpro/hbfoxpro.hbp
  * contrib/hbfoxpro/hbfoxpro.hbx
  + contrib/hbfoxpro/dbfunc.c
    + added FoxPro compatible database functions:
         Filter(), Ndx(), Relation(), FSize(), __fox_Used(), __fox_Seek()

  * contrib/hbfoxpro/hbfoxpro.hbp
  * contrib/hbfoxpro/hbfoxpro.hbx
  + contrib/hbfoxpro/miscfunc.c
    + added few functions which can be directly translated to Harbour ones:
         Parameters() => PCount()
         SRows() => MaxRow()
         SCols() => MaxCol()
         VarRead() => ReadVar()
         PrintStatus() => IsPrinter()
         Key() => InedxKey()

  * contrib/hbfoxpro/hbfoxpro.hbx
  * contrib/hbfoxpro/misc.prg
    + added few new actions to Sys() function
    + added AElement(), Occurs() and InsMode() functions

  * contrib/hbfoxpro/hbfoxpro.ch
    + added PP rules for few FoxPro commands and standard functions with
      aliases, i.e.
         SEEK <exp> TAG <tag> IN <wa>
         lUsed := USED( <wa> )
         nRecordsInWA := RECCOUNT( <wa> )
    + added PP rules for SCAN / ENDSCAN
    + added few other commands

  ; Please verify me. I'm not [V]FP user and I cannot check what [V]FP
    exactly does. It's possible that I missed something or wrongly
    understood.
  ; Special thanks to Alex Antypenko. I took information about [V]FP
    functions and syntax analyzing his code.
2013-11-04 16:54:27 +01:00
Przemysław Czerpak
7e3de3f14c 2013-10-31 13:04 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbfship/hbfship.hbx
    ! removed FIELDDECI() reenabled by mistake during one of
      internal merges

  * src/rdd/dbfcdx/dbfcdx1.c
    * accept headers with KEY and FOR expression lengths without
      offset fields.

  * tests/video.prg
    ! fixed CLIP and xHarbour compilation
    + added support for testing UTF8 screen output
      (non empty 1-st parameter) and HB_GTI_COMPATBUFFER (non empty
      second parameter)
2013-10-31 13:04:59 +01:00
Przemysław Czerpak
f6a3c407e3 2013-10-28 17:18 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/wafunc.c
    * minor cleanup

  * src/rtl/gtos2/gtos2.c
  * src/rtl/gttrm/gttrm.c
    * added protection against wrong SetMode() parameters

  * src/rtl/gtxwc/gtxwc.h
    * changed minim console window size from 3 x 6 to 1 x 1
2013-10-28 17:18:11 +01:00
Przemysław Czerpak
41f154293e 2013-10-25 12:10 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbfship/hbfship.hbx
    ! removed not longer used FieldDeci() reference
2013-10-25 12:10:58 +02:00
Przemysław Czerpak
88389dbb84 2013-10-15 23:29 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
- contrib/hbfship/flddeci.c
  * contrib/hbfship/hbfship.hbp
    - removed FieldDeci() function. Function with the same name and
      functionality exists in HBCT.

  * config/postinst.hb
    ! typo in my previous commit

  * ChangeLog.txt
    ! UTF8 BOM, indenting and trailing line spaces in one of recent commits
2013-10-15 23:29:04 +02:00
vszakats
9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00
vszakats
a4a357a18b 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)
* /harbour/* -> /*
    * moved whole Harbour source tree one level up to
      avoid single 'harbour' top dir
2013-03-15 11:13:30 +01:00