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.
This commit is contained in:
Viktor Szakats
2017-09-08 16:25:13 +00:00
parent d55bdd18b7
commit 5a2a287752
916 changed files with 10432 additions and 13266 deletions

View File

@@ -1,6 +1,6 @@
/*
* BIG5 <-> UCS16 conversion tables
* code generated automatically by tests/big5_gen.prg
* code generated automatically by tests/big5_gen.prg
*
* Copyright 2011 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*

View File

@@ -1,6 +1,6 @@
/*
* CP950 <-> UCS16 conversion tables
* code generated automatically by tests/cp950gen.prg
* code generated automatically by tests/cp950gen.prg
*
* Copyright 2012 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*

View File

@@ -1,5 +1,5 @@
/*
* example of Harbour codepage using CP950 encoding
* Example of Harbour codepage using CP950 encoding
*
* Copyright 2011 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*

View File

@@ -1,5 +1,5 @@
/*
* example of Harbour codepage using BIG5 encoding
* Example of Harbour codepage using BIG5 encoding
*
* Copyright 2011 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*

View File

@@ -1,5 +1,5 @@
/*
* example of Harbour codepage using UTF-16 little endian encoding
* Example of Harbour codepage using UTF-16 little endian encoding
*
* Copyright 2011 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*

View File

@@ -1,5 +1,5 @@
/*
* example of Harbour codepage using UTF8 encoding
* Example of Harbour codepage using UTF-8 encoding
*
* Copyright 2011 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (CS852)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Czech collating sequence (CS852) done by Vojtech Obrdlik <vobrdlik@centrum.cz>
* Copyright 2002 Vojtech Obrdlik <vobrdlik@centrum.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (CSISO)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Czech collating sequence (CSISO) done by Vojtech Obrdlik <vobrdlik@centrum.cz>
* Copyright 2002 Vojtech Obrdlik <vobrdlik@centrum.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (CSWIN)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Czech collating sequence (CSWIN) done by Vojtech Obrdlik <vobrdlik@centrum.cz>
* Copyright 2002 Vojtech Obrdlik <vobrdlik@centrum.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (DEISO)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* v1.0 2003 Guenther Steiner <byte-one@aon.at>
* Copyright 2003 Guenther Steiner <byte-one@aon.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (DEWIN)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* v1.0 2003 Guenther Steiner <byte-one@aon.at>
* Copyright 2003 Guenther Steiner <byte-one@aon.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (ELISO)
*
* Copyright 2004 Pete Dionisopoulos <pete_westg@yahoo.gr>
* v1.0 2004 Panayotis (Pete) Dionysopoulos <pete_westg@yahoo.gr>
* Copyright 2004 Panayotis (Pete) Dionisopoulos <pete_westg@yahoo.gr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (ELWIN)
*
* Copyright 2004 Pete Dionisopoulos <pete_westg@yahoo.gr>
* v1.0 2004 Panayotis (Pete) Dionysopoulos <pete_westg@yahoo.gr>
* Copyright 2004 Panayotis (Pete) Dionisopoulos <pete_westg@yahoo.gr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -2,7 +2,7 @@
* National Collation Support Module (ES850 - Modern Spanish)
*
* Copyright 2008 Viktor Szakats (vszakats.net/harbour)
* Spanish Windows support by Antonio Linares <alinares@fivetechsoft.com>
* Copyright Antonio Linares <alinares@fivetechsoft.com> (Spanish Windows support)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -2,7 +2,7 @@
* National Collation Support Module (ESISO - Modern Spanish)
*
* Copyright 2008 Viktor Szakats (vszakats.net/harbour)
* Spanish Windows support by Antonio Linares <alinares@fivetechsoft.com>
* Copyright Antonio Linares <alinares@fivetechsoft.com> (Spanish Windows support)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -2,8 +2,7 @@
* National Collation Support Module (ESMWIN - Modern Spanish)
* (COMPATIBILITY - Use ESWIN or ESISO instead.)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Spanish Windows support by Antonio Linares <alinares@fivetechsoft.com>
* Copyright 2002 Antonio Linares <alinares@fivetechsoft.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (ESWIN - Modern Spanish)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Spanish Windows support by Antonio Linares <alinares@fivetechsoft.com>
* Copyright 2002 Antonio Linares <alinares@fivetechsoft.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,9 +1,8 @@
/*
* National Collation Support Module (HR852)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* 2003 Vlado Miholic <Vladimir.Miholic@sk.hinet.hr>
* Copyright 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* Copyright 2003 Vlado Miholic <Vladimir.Miholic@sk.hinet.hr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,9 +1,8 @@
/*
* National Collation Support Module (HRISO)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* 2003 Vlado Miholic <Vladimir.Miholic@sk.hinet.hr>
* Copyright 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* Copyright 2003 Vlado Miholic <Vladimir.Miholic@sk.hinet.hr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,9 +1,8 @@
/*
* National Collation Support Module (HRWIN)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* 2003 Vlado Miholic <Vladimir.Miholic@sk.hinet.hr>
* Copyright 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* Copyright 2003 Vlado Miholic <Vladimir.Miholic@sk.hinet.hr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,7 +1,7 @@
/*
* National Collation Support Module (IT437)
*
* Copyright 2004 Maurilio Longo - <maurilio.longo@libero.it>
* Copyright 2004 Maurilio Longo <maurilio.longo@libero.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (ITISB)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Spanish MS-DOS support by Antonio Linares <alinares@fivetechsoft.com>
* Copyright 2002 Antonio Linares <alinares@fivetechsoft.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,9 +1,7 @@
/*
* National Collation Support Module (LT775)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Lithuanian collation sequence
* 2010, by Mindaugas Kavaliauskas <dbtopas@dbtopas.lt>
* Copyright 2010 Mindaugas Kavaliauskas <dbtopas@dbtopas.lt>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,9 +1,7 @@
/*
* National Collation Support Module (LTWIN)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Lithuanian collation sequence
* 2003, by Mindaugas Kavaliauskas <dbtopas@dbtopas.lt>
* Copyright 2003 Mindaugas Kavaliauskas <dbtopas@dbtopas.lt>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (PL852)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Polish collating sequence (PL852) CP852 done by Jacek Kubica <kubica@wssk.wroc.pl>
* Copyright 2002 Jacek Kubica <kubica@wssk.wroc.pl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (PLISO)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Polish collating sequence (PLISO) done by Jacek Kubica <kubica@wssk.wroc.pl>
* Copyright 2002 Jacek Kubica <kubica@wssk.wroc.pl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (PLMAZ)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Polish collating sequence (PLMAZ) Mazovia done by Jacek Kubica <kubica@wssk.wroc.pl>
* Copyright 2002 Jacek Kubica <kubica@wssk.wroc.pl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (PLWIN)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Polish collating sequence (PLWIN) done by Przemyslaw Czerpak <druzus@polbox.com>
* Copyright 2002 Przemyslaw Czerpak <druzus@polbox.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,9 +1,7 @@
/*
* National Collation Support Module (PT850)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Portuguese collating sequence (PT850) done
* by Luiz Rafael Culik Guimaraes <culikr@uol.com.br>
* Copyright 2002 Luiz Rafael Culik Guimaraes <culikr@uol.com.br>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,9 +1,7 @@
/*
* National Collation Support Module (PTISO)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* Portuguese collating sequence (PTISO) done
* by Przemyslaw Czerpak <druzus@polbox.com>
* Copyright 2002 Przemyslaw Czerpak <druzus@polbox.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (SL646)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* Copyright 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (SL852)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* Copyright 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (SLISO)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* Copyright 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (SLWIN)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
* Copyright 2003 Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,8 +1,7 @@
/*
* National Collation Support Module (SRWIN)
*
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
* SERBIAN collating sequence done by Srdjan Dragojlovic <digikv@yahoo.com>
* Copyright 2002 Srdjan Dragojlovic <digikv@yahoo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -54,9 +54,9 @@
136, a rather pointless relocation IMHO. I found no way to replicate
that behaviour in the character strings below, so if you allow Chr( 146 )
and Chr( 145 ) to be saved in indexed fields there WILL be index corruption
if data is shared between Clipper and Harbour. Upper()/Lower() converson
if data is shared between Clipper and Harbour. Upper()/Lower() conversion
of those characters as well as all accented characters must be done
programatically just like in Clipper.
programmatically just like in Clipper.
For sharing data with Clipper, assuming that the Chr( 146 ) and Chr( 145 )
problem is properly taken care of in your code, this codepage version
@@ -73,7 +73,7 @@
between Clipper and Harbour applications.
*/
/*
#if 0
#define HB_CP_ID SVCLIP
#define HB_CP_INFO "Swedish CP-437"
#define HB_CP_UNITB HB_UNITB_437
@@ -81,7 +81,7 @@
#define HB_CP_UPPER "ABCDEÉFGHIJKLMNOPQRSTUVWXYÜZÅÄÖ"
#define HB_CP_LOWER "abcdeèfghijklmnopqrstuvwxyüzåäö"
#define HB_CP_UTF8
*/
#endif
#define HB_CP_ID SV437C
#define HB_CP_INFO "Swedish CP-437 (ntxswe.obj compatible)"

View File

@@ -48,10 +48,10 @@
the Ukrainian alphabet and uses non-cyrillic
versions for another two (Іі), because the
originals cannot be encoded in CP-866:
Ґ - U+0490 - http://codepoints.net/U+0490
ґ - U+0491 - http://codepoints.net/U+0491
І - U+0406 - http://codepoints.net/U+0406
і - U+0456 - http://codepoints.net/U+0456
Ґ - U+0490 - https://codepoints.net/U+0490
ґ - U+0491 - https://codepoints.net/U+0491
І - U+0406 - https://codepoints.net/U+0406
і - U+0456 - https://codepoints.net/U+0456
[druzus/vszakats] */
#define HB_CP_ID UA866

View File

@@ -2,7 +2,7 @@
* Czech and Slovak Kamenicky (CP895) <-> Unicode conversion table
*
* Copyright 2006 Vojtech Obrdlik <vobrdlik@centrum.cz>
* adapted from David Kozub - http://linux.fjfi.cvut.cz/%7Ezub/cp895/
* adapted from David Kozub - https://linux.fjfi.cvut.cz/%7Ezub/cp895/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,7 +1,6 @@
/*
* KOI8 <-> Unicode conversion table
*
*
* Copyright 2003 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*
* This program is free software; you can redistribute it and/or modify

View File

@@ -1,7 +1,6 @@
/*
* KOI8-U <-> Unicode conversion table
*
*
* Copyright 2004 Pavel Tsarenko <tpe2@mail.ru>
*
* This program is free software; you can redistribute it and/or modify

View File

@@ -1,5 +1,5 @@
/*
* simple unicode sort table
* Simple unicode sort table
*
* Copyright 2012 Przemyslaw Czerpak <druzus / at / priv.onet.pl>
*