2003-07-03 10:54 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
This commit is contained in:
@@ -8,6 +8,22 @@
|
||||
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2003-07-03 10:54 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
|
||||
+ source/codepage/cdpsl437.c
|
||||
+ source/lang/msgsl437.c
|
||||
+ New codepage and lang modules for Slovenian 7bit 437, provided by
|
||||
Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
|
||||
* source/codepage/cdpsl852.c
|
||||
* source/codepage/cdpsliso.c
|
||||
* source/codepage/cdpslwin.c
|
||||
! Some fixes, provided by Mitja Podgornik <Mitja.Podgornik@zgs.gov.si>
|
||||
* makefile.bc
|
||||
* makefile.nt
|
||||
* makefile.vc
|
||||
* source/codepage/Makefile
|
||||
* source/lang/Makefile
|
||||
* Makefiles updated.
|
||||
|
||||
2003-07-03 10:00 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
|
||||
* source/rdd/dbfntx/dbfntx1.c
|
||||
! Bug fixed - there was memory leak after INDEX ON ... ADDITIVE if there
|
||||
|
||||
@@ -419,6 +419,7 @@ LANG_LIB_OBJS = \
|
||||
$(OBJ_DIR)\msgru866.obj \
|
||||
$(OBJ_DIR)\msgruwin.obj \
|
||||
$(OBJ_DIR)\msgrukoi.obj \
|
||||
$(OBJ_DIR)\msgsl437.obj \
|
||||
$(OBJ_DIR)\msgsl852.obj \
|
||||
$(OBJ_DIR)\msgsliso.obj \
|
||||
$(OBJ_DIR)\msgslwin.obj \
|
||||
@@ -441,6 +442,7 @@ CODEPAGE_LIB_OBJS = \
|
||||
$(OBJ_DIR)\cdpru866.obj \
|
||||
$(OBJ_DIR)\cdpruwin.obj \
|
||||
$(OBJ_DIR)\cdprukoi.obj \
|
||||
$(OBJ_DIR)\cdpsl437.obj \
|
||||
$(OBJ_DIR)\cdpsl852.obj \
|
||||
$(OBJ_DIR)\cdpsliso.obj \
|
||||
$(OBJ_DIR)\cdpslwin.obj
|
||||
@@ -2178,6 +2180,10 @@ $(OBJ_DIR)\msgrukoi.obj : $(LANG_DIR)\msgrukoi.c
|
||||
$(CC) $(CLIBFLAGS) -o$@ $**
|
||||
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
|
||||
|
||||
$(OBJ_DIR)\msgsl437.obj : $(LANG_DIR)\msgsl437.c
|
||||
$(CC) $(CLIBFLAGS) -o$@ $**
|
||||
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
|
||||
|
||||
$(OBJ_DIR)\msgsl852.obj : $(LANG_DIR)\msgsl852.c
|
||||
$(CC) $(CLIBFLAGS) -o$@ $**
|
||||
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
|
||||
@@ -2261,6 +2267,10 @@ $(OBJ_DIR)\cdprukoi.obj : $(CODEPAGE_DIR)\cdprukoi.c
|
||||
$(CC) $(CLIBFLAGS) -o$@ $**
|
||||
tlib $(CODEPAGE_LIB) $(ARFLAGS) -+$@,,
|
||||
|
||||
$(OBJ_DIR)\cdpsl437.obj : $(CODEPAGE_DIR)\cdpsl437.c
|
||||
$(CC) $(CLIBFLAGS) -o$@ $**
|
||||
tlib $(CODEPAGE_LIB) $(ARFLAGS) -+$@,,
|
||||
|
||||
$(OBJ_DIR)\cdpsl852.obj : $(CODEPAGE_DIR)\cdpsl852.c
|
||||
$(CC) $(CLIBFLAGS) -o$@ $**
|
||||
tlib $(CODEPAGE_LIB) $(ARFLAGS) -+$@,,
|
||||
|
||||
@@ -472,6 +472,7 @@ LANG_LIB_OBJS = \
|
||||
$(OBJ_DIR)\msgru866.obj \
|
||||
$(OBJ_DIR)\msgrukoi.obj \
|
||||
$(OBJ_DIR)\msgruwin.obj \
|
||||
$(OBJ_DIR)\msgsl437.obj \
|
||||
$(OBJ_DIR)\msgsl852.obj \
|
||||
$(OBJ_DIR)\msgsliso.obj \
|
||||
$(OBJ_DIR)\msgslwin.obj \
|
||||
@@ -501,6 +502,7 @@ CODEPAGE_LIB_OBJS = \
|
||||
$(OBJ_DIR)\cdpru866.obj \
|
||||
$(OBJ_DIR)\cdprukoi.obj \
|
||||
$(OBJ_DIR)\cdpruwin.obj \
|
||||
$(OBJ_DIR)\cdpsl437.obj \
|
||||
$(OBJ_DIR)\cdpsl852.obj \
|
||||
$(OBJ_DIR)\cdpsliso.obj \
|
||||
$(OBJ_DIR)\cdpslwin.obj
|
||||
|
||||
@@ -437,6 +437,7 @@ LANG_LIB_OBJS = \
|
||||
$(OBJ_DIR)\msgru866.obj \
|
||||
$(OBJ_DIR)\msgrukoi.obj \
|
||||
$(OBJ_DIR)\msgruwin.obj \
|
||||
$(OBJ_DIR)\msgsl437.obj \
|
||||
$(OBJ_DIR)\msgsl852.obj \
|
||||
$(OBJ_DIR)\msgsliso.obj \
|
||||
$(OBJ_DIR)\msgslwin.obj \
|
||||
@@ -466,6 +467,7 @@ CODEPAGE_LIB_OBJS = \
|
||||
$(OBJ_DIR)\cdpru866.obj \
|
||||
$(OBJ_DIR)\cdprukoi.obj \
|
||||
$(OBJ_DIR)\cdpruwin.obj \
|
||||
$(OBJ_DIR)\cdpsl437.obj \
|
||||
$(OBJ_DIR)\cdpsl852.obj \
|
||||
$(OBJ_DIR)\cdpsliso.obj \
|
||||
$(OBJ_DIR)\cdpslwin.obj
|
||||
|
||||
@@ -18,6 +18,7 @@ C_SOURCES=\
|
||||
cdpru866.c \
|
||||
cdprukoi.c \
|
||||
cdpruwin.c \
|
||||
cdpsl437.c \
|
||||
cdpsl852.c \
|
||||
cdpsliso.c \
|
||||
cdpslwin.c
|
||||
|
||||
99
harbour/source/codepage/cdpsl437.c
Normal file
99
harbour/source/codepage/cdpsl437.c
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* National Collation Support Module ( SL437 )
|
||||
*
|
||||
* Copyright 2002 Alexander S.Kresin <alex@belacy.belgorod.su>
|
||||
* www - http://www.harbour-project.org
|
||||
* 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
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
|
||||
/* Language name: Slovenian */
|
||||
/* ISO language code (2 chars): SL */
|
||||
/* Codepage: 437 */
|
||||
|
||||
#include <ctype.h>
|
||||
#include "hbapi.h"
|
||||
#include "hbapicdp.h"
|
||||
|
||||
#define NUMBER_OF_CHARACTERS 31 /* The number of single characters in the
|
||||
alphabet, two-as-one aren't considered
|
||||
here, accented - are considered. */
|
||||
#define IS_LATIN 1 /* Should be 1, if the national alphabet
|
||||
is based on Latin */
|
||||
#define ACCENTED_EQUAL 0 /* Should be 1, if accented character
|
||||
has the same weight as appropriate
|
||||
unaccented. */
|
||||
#define ACCENTED_INTERLEAVED 0 /* Should be 1, if accented characters
|
||||
sort after their unaccented counterparts
|
||||
only if the unaccented versions of all
|
||||
characters being compared are the same
|
||||
( interleaving ) */
|
||||
|
||||
/* If ACCENTED_EQUAL or ACCENTED_INTERLEAVED is 1, you need to mark the
|
||||
accented characters with the symbol '~' before each of them, for example:
|
||||
a~€
|
||||
If there is two-character sequence, which is considered as one, it should
|
||||
be marked with '.' before and after it, for example:
|
||||
... h.ch.i ...
|
||||
|
||||
The Upper case string and the Lower case string should be absolutely the
|
||||
same excepting the characters case, of course.
|
||||
*/
|
||||
|
||||
static HB_CODEPAGE s_codepage = { "SL437",NUMBER_OF_CHARACTERS,
|
||||
"ABC^]D\EFGHIJKLMNOPQRS[TUVWZ@XY","abc~}d|efghijklmnopqrs{tuvwz`xy",
|
||||
IS_LATIN,ACCENTED_EQUAL,ACCENTED_INTERLEAVED,0,NULL,NULL,NULL,NULL,0,NULL };
|
||||
|
||||
HB_CODEPAGE_ANNOUNCE( SL437 );
|
||||
|
||||
HB_CALL_ON_STARTUP_BEGIN( hb_codepage_Init_SL437 )
|
||||
hb_cdpRegister( &s_codepage );
|
||||
HB_CALL_ON_STARTUP_END( hb_codepage_Init_SL437 )
|
||||
#if ! defined(__GNUC__) && ! defined(_MSC_VER)
|
||||
#pragma startup hb_codepage_Init_SL437
|
||||
#endif
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
*/
|
||||
|
||||
static HB_CODEPAGE s_codepage = { "SL852",NUMBER_OF_CHARACTERS,
|
||||
"ABC¬<EFBFBD>DÑEFGHIJKLMNOPQRSæTUVWZ¦XY","abcŸdÐefghijklmnopqrsçtuvwz§xy",
|
||||
"ABC¬<EFBFBD>DÑEFGHIJKLMNOPQRSæTUVWZ¦XY","abcŸ†dÐefghijklmnopqrsçtuvwz§xy",
|
||||
IS_LATIN,ACCENTED_EQUAL,ACCENTED_INTERLEAVED,0,NULL,NULL,NULL,NULL,0,NULL };
|
||||
|
||||
HB_CODEPAGE_ANNOUNCE( SL852 );
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
*/
|
||||
|
||||
static HB_CODEPAGE s_codepage = { "SLISO",NUMBER_OF_CHARACTERS,
|
||||
"ABCÈÆDÐEFGHIJKLMNOPQRS©TUVWZ®XY","abcèdðefghijklmnopqrs¹tuvwz¾xy",
|
||||
"ABCÈÆDÐEFGHIJKLMNOPQRS©TUVWZ®XY","abcèædðefghijklmnopqrs¹tuvwz¾xy",
|
||||
IS_LATIN,ACCENTED_EQUAL,ACCENTED_INTERLEAVED,0,NULL,NULL,NULL,NULL,0,NULL };
|
||||
|
||||
HB_CODEPAGE_ANNOUNCE( SLISO );
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
/* Language name: Slovenian */
|
||||
/* ISO language code (2 chars): SL */
|
||||
/* Codepage: Windows-1250 */
|
||||
/* Codepage: 1250 */
|
||||
|
||||
#include <ctype.h>
|
||||
#include "hbapi.h"
|
||||
@@ -85,7 +85,7 @@
|
||||
*/
|
||||
|
||||
static HB_CODEPAGE s_codepage = { "SLWIN",NUMBER_OF_CHARACTERS,
|
||||
"ABCÈÆDÐEFGHIJKLMNOPQRSŠTUVWZŽXY","abcèdðefghijklmnopqrsštuvwzžxy",
|
||||
"ABCÈÆDÐEFGHIJKLMNOPQRSŠTUVWZŽXY","abcèædðefghijklmnopqrsštuvwzžxy",
|
||||
IS_LATIN,ACCENTED_EQUAL,ACCENTED_INTERLEAVED,0,NULL,NULL,NULL,NULL,0,NULL };
|
||||
|
||||
HB_CODEPAGE_ANNOUNCE( SLWIN );
|
||||
|
||||
@@ -39,6 +39,7 @@ C_SOURCES=\
|
||||
msgru866.c \
|
||||
msgrukoi.c \
|
||||
msgruwin.c \
|
||||
msgsl437.c \
|
||||
msgsl852.c \
|
||||
msgsliso.c \
|
||||
msgslwin.c \
|
||||
|
||||
194
harbour/source/lang/msgsl437.c
Normal file
194
harbour/source/lang/msgsl437.c
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* Language Support Module (SL437)
|
||||
*
|
||||
* Copyright 2000 Davor Siklic <siki@msoft.cz>
|
||||
* www - http://www.harbour-project.org
|
||||
* 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
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version, with one exception:
|
||||
*
|
||||
* The exception is that if you link the Harbour Runtime Library (HRL)
|
||||
* and/or the Harbour Virtual Machine (HVM) with other files to produce
|
||||
* an executable, this does not by itself cause the resulting executable
|
||||
* to be covered by the GNU General Public License. Your use of that
|
||||
* executable is in no way restricted on account of linking the HRL
|
||||
* and/or HVM code into it.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
|
||||
* their web site at http://www.gnu.org/).
|
||||
*
|
||||
*/
|
||||
|
||||
/* Language name: Slovenian */
|
||||
/* ISO language code (2 chars): SL */
|
||||
/* Codepage: 437 */
|
||||
|
||||
#include "hbapilng.h"
|
||||
|
||||
static HB_LANG s_lang =
|
||||
{
|
||||
{
|
||||
/* Identification */
|
||||
|
||||
"SL437", /* ID */
|
||||
"Slovenian", /* Name (in English) */
|
||||
"Sloven{~ina", /* Name (in native language) */
|
||||
"SL", /* RFC ID */
|
||||
"437", /* Codepage */
|
||||
"$Revision$ $Date$", /* Version */
|
||||
|
||||
/* Month names */
|
||||
|
||||
"Januar",
|
||||
"Februar",
|
||||
"Marec",
|
||||
"April",
|
||||
"Maj",
|
||||
"Junij",
|
||||
"Julij",
|
||||
"Avgust",
|
||||
"September",
|
||||
"Oktober",
|
||||
"November",
|
||||
"December",
|
||||
|
||||
/* Day names */
|
||||
|
||||
"Nedelja",
|
||||
"Ponedeljek",
|
||||
"Torek",
|
||||
"Sreda",
|
||||
"^etrtek",
|
||||
"Petek",
|
||||
"Sobota",
|
||||
|
||||
/* CA-Cl*pper compatible natmsg items */
|
||||
|
||||
"Database Files # Records Last Update Size",
|
||||
"Do you want more samples?",
|
||||
"Page No.",
|
||||
"** Subtotal **",
|
||||
"* Subsubtotal *",
|
||||
"*** Total ***",
|
||||
"Ins",
|
||||
" ",
|
||||
"Invalid date",
|
||||
"Range: ",
|
||||
" - ",
|
||||
"D/N",
|
||||
"INVALID EXPRESSION",
|
||||
|
||||
/* Error description names */
|
||||
|
||||
"Unknown error",
|
||||
"Argument error",
|
||||
"Bound error",
|
||||
"String overflow",
|
||||
"Numeric overflow",
|
||||
"Zero divisor",
|
||||
"Numeric error",
|
||||
"Syntax error",
|
||||
"Operation too complex",
|
||||
"",
|
||||
"",
|
||||
"Memory low",
|
||||
"Undefined function",
|
||||
"No exported method",
|
||||
"Variable does not exist",
|
||||
"Alias does not exist",
|
||||
"No exported variable",
|
||||
"Illegal characters in alias",
|
||||
"Alias already in use",
|
||||
"",
|
||||
"Create error",
|
||||
"Open error",
|
||||
"Close error",
|
||||
"Read error",
|
||||
"Write error",
|
||||
"Print error",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"Operation not supported",
|
||||
"Limit exceeded",
|
||||
"Corruption detected",
|
||||
"Data type error",
|
||||
"Data width error",
|
||||
"Workarea not in use",
|
||||
"Workarea not indexed",
|
||||
"Exclusive required",
|
||||
"Lock required",
|
||||
"Write not allowed",
|
||||
"Append lock failed",
|
||||
"Lock Failure",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"array access",
|
||||
"array assign",
|
||||
"array dimension",
|
||||
"not an array",
|
||||
"conditional",
|
||||
|
||||
/* Internal error names */
|
||||
|
||||
"Unrecoverable error %lu: ",
|
||||
"Error recovery failure",
|
||||
"No ERRORBLOCK() for error",
|
||||
"Too many recursive error handler calls",
|
||||
"RDD invalid or failed to load",
|
||||
"Invalid method type from %s",
|
||||
"hb_xgrab can't allocate memory",
|
||||
"hb_xrealloc called with a NULL pointer",
|
||||
"hb_xrealloc called with an invalid pointer",
|
||||
"hb_xrealloc can't reallocate memory",
|
||||
"hb_xfree called with an invalid pointer",
|
||||
"hb_xfree called with a NULL pointer",
|
||||
"Can\'t locate the starting procedure: \'%s\'",
|
||||
"No starting procedure",
|
||||
"Unsupported VM opcode",
|
||||
"Symbol item expected from %s",
|
||||
"Invalid symbol type for self from %s",
|
||||
"Codeblock expected from %s",
|
||||
"Incorrect item type on the stack trying to pop from %s",
|
||||
"Stack underflow",
|
||||
"An item was going to be copied to itself from %s",
|
||||
"Invalid symbol item passed as memvar %s",
|
||||
"Memory buffer overflow",
|
||||
"hb_xgrab requested to allocate zero bytes",
|
||||
"hb_xrealloc requested to resize to zero bytes",
|
||||
"hb_xalloc requested to allocate zero bytes",
|
||||
|
||||
/* Texts */
|
||||
|
||||
"DD-MM-LLLL",
|
||||
"D",
|
||||
"N"
|
||||
}
|
||||
};
|
||||
|
||||
HB_LANG_ANNOUNCE( SL437 );
|
||||
|
||||
HB_CALL_ON_STARTUP_BEGIN( hb_lang_Init_SL437 )
|
||||
hb_langRegister( &s_lang );
|
||||
HB_CALL_ON_STARTUP_END( hb_lang_Init_SL437 )
|
||||
#if ! defined(__GNUC__) && ! defined(_MSC_VER)
|
||||
#pragma startup hb_lang_Init_SL437
|
||||
#endif
|
||||
Reference in New Issue
Block a user