~ubuntu-branches/ubuntu/precise/cuneiform/precise

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/hrkint/rsadd.h

  • Committer: Bazaar Package Importer
  • Author(s): Jakub Wilk, c-assert.diff, slovenian-slv.diff
  • Date: 2011-01-26 21:53:07 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110126215307-62x61mcesr607qb7
Tags: 1.0.0+dfsg-2
* Upload to unstable.
* Explicitly build-depend on pkg-config. Thanks to Stefano Rivera for the
  bug report.
* Add Vcs-* fields.
* Use the standard C assert() macro, rather than custom Cuneiform one.
  [c-assert.diff]
* Pass CFLAGS, CXXFLAGS and LDFLAGS (get from dpkg-buildflags) to cmake
  (closes: #608345). Thanks to Sami Liedes for the bug report.
  + Build depend on dpkg-dev (>= 1.15.7).
* Pass --parallel to dh.
  + Bump debhelper minimum version to 7.4.10.
* Update debian/copyright to the latest DEP-5 version.
* Bump year in debian/copyright.
* Explicitly link to GraphicsMagick (rather than via the ImageMagick
  compatibility layer).
* Don't ship /usr/lib/cuneiform/*.so symlinks. These libraries are
  considered private, at least until #598616 is fixed.
* Rename some private variables in debian/rules to make them lowercase.
* Update patch headers.
* Provide proper ‘build-arch’ and ‘build-indep’ targets in debian/rules.
* Document input format in the manual page (closes: #572061). Thanks to
  Janusz S. Bień for the bug report.
* Use ‘slv’ (rather than ‘slo’) as language code for Slovenian.
  [slovenian-slv.diff]
* Fix package description: Slovenian is supported, Slovak is not.
* Improve documentation of the language (-l) option (closes: #602512).
  Thanks to Jari Aalto for the bug report.
* Install reasons file for vrms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
Copyright (c) 1993-2008, Cognitive Technologies
3
 
All rights reserved.
4
 
 
5
 
����������� ��������� ��������������� � ������������� ��� � ���� ��������� ����,
6
 
��� � � �������� �����, � ����������� ��� ���, ��� ���������� ��������� �������:
7
 
 
8
 
      * ��� ��������� ��������������� ��������� ���� ������ ���������� ���������
9
 
        ���� ����������� �� ��������� �����, ���� ������ ������� � �����������
10
 
        ����� �� ��������.
11
 
      * ��� ��������� ��������������� ��������� ���� � ������������ �/��� �
12
 
        ������ ����������, ������������ ��� ���������������, ������ �����������
13
 
        ��������� ���� ���������� �� ��������� �����, ���� ������ ������� �
14
 
        ����������� ����� �� ��������.
15
 
      * �� �������� Cognitive Technologies, �� ����� �� ����������� �� �����
16
 
        ���� ������������ � �������� �������� ��������� �/��� �����������
17
 
        ���������, ���������� �� ���� ��, ��� ���������������� �����������
18
 
        ����������.
19
 
 
20
 
��� ��������� ������������� ����������� ��������� ���� �/��� ������� ������ "���
21
 
��� ����" ��� ������-���� ���� ��������, ���������� ���� ��� ���������������,
22
 
������� �������� ������������ �������� � ����������� ��� ���������� ����, �� ��
23
 
������������� ���. �� �������� ��������� ���� � �� ���� ������ ����, �������
24
 
����� �������� �/��� �������� �������������� ���������, �� � ���� ������ ��
25
 
��Ѩ� ���������������, ������� ����� �����, ���������, ����������� ���
26
 
������������� ������, ��������� � �������������� ��� ���������� ����������
27
 
������������� ������������� ��������� (������� ������ ������, ��� ������,
28
 
������� ���������, ��� ������ �/��� ������ �������, ���������� ��-�� ��������
29
 
������� ��� �/��� ������ ��������� �������� ��������� � ������� �����������,
30
 
�� �� ������������� ����� ��������), �� �� ������������� ���, ���� ���� �����
31
 
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
32
 
 
33
 
Redistribution and use in source and binary forms, with or without modification,
34
 
are permitted provided that the following conditions are met:
35
 
 
36
 
    * Redistributions of source code must retain the above copyright notice,
37
 
      this list of conditions and the following disclaimer.
38
 
    * Redistributions in binary form must reproduce the above copyright notice,
39
 
      this list of conditions and the following disclaimer in the documentation
40
 
      and/or other materials provided with the distribution.
41
 
    * Neither the name of the Cognitive Technologies nor the names of its
42
 
      contributors may be used to endorse or promote products derived from this
43
 
      software without specific prior written permission.
44
 
 
45
 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
46
 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
47
 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
48
 
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
49
 
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
50
 
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
51
 
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
52
 
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
53
 
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
54
 
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55
 
*/
 
2
 Copyright (c) 1993-2008, Cognitive Technologies
 
3
 All rights reserved.
 
4
 
 
5
 Разрешается повторное распространение и использование как в виде исходного кода,
 
6
 так и в двоичной форме, с изменениями или без, при соблюдении следующих условий:
 
7
 
 
8
 * При повторном распространении исходного кода должны оставаться указанное
 
9
 выше уведомление об авторском праве, этот список условий и последующий
 
10
 отказ от гарантий.
 
11
 * При повторном распространении двоичного кода в документации и/или в
 
12
 других материалах, поставляемых при распространении, должны сохраняться
 
13
 указанная выше информация об авторском праве, этот список условий и
 
14
 последующий отказ от гарантий.
 
15
 * Ни название Cognitive Technologies, ни имена ее сотрудников не могут
 
16
 быть использованы в качестве средства поддержки и/или продвижения
 
17
 продуктов, основанных на этом ПО, без предварительного письменного
 
18
 разрешения.
 
19
 
 
20
 ЭТА ПРОГРАММА ПРЕДОСТАВЛЕНА ВЛАДЕЛЬЦАМИ АВТОРСКИХ ПРАВ И/ИЛИ ДРУГИМИ ЛИЦАМИ "КАК
 
21
 ОНА ЕСТЬ" БЕЗ КАКОГО-ЛИБО ВИДА ГАРАНТИЙ, ВЫРАЖЕННЫХ ЯВНО ИЛИ ПОДРАЗУМЕВАЕМЫХ,
 
22
 ВКЛЮЧАЯ ГАРАНТИИ КОММЕРЧЕСКОЙ ЦЕННОСТИ И ПРИГОДНОСТИ ДЛЯ КОНКРЕТНОЙ ЦЕЛИ, НО НЕ
 
23
 ОГРАНИЧИВАЯСЬ ИМИ. НИ ВЛАДЕЛЕЦ АВТОРСКИХ ПРАВ И НИ ОДНО ДРУГОЕ ЛИЦО, КОТОРОЕ
 
24
 МОЖЕТ ИЗМЕНЯТЬ И/ИЛИ ПОВТОРНО РАСПРОСТРАНЯТЬ ПРОГРАММУ, НИ В КОЕМ СЛУЧАЕ НЕ
 
25
 НЕСЁТ ОТВЕТСТВЕННОСТИ, ВКЛЮЧАЯ ЛЮБЫЕ ОБЩИЕ, СЛУЧАЙНЫЕ, СПЕЦИАЛЬНЫЕ ИЛИ
 
26
 ПОСЛЕДОВАВШИЕ УБЫТКИ, СВЯЗАННЫЕ С ИСПОЛЬЗОВАНИЕМ ИЛИ ПОНЕСЕННЫЕ ВСЛЕДСТВИЕ
 
27
 НЕВОЗМОЖНОСТИ ИСПОЛЬЗОВАНИЯ ПРОГРАММЫ (ВКЛЮЧАЯ ПОТЕРИ ДАННЫХ, ИЛИ ДАННЫЕ,
 
28
 СТАВШИЕ НЕГОДНЫМИ, ИЛИ УБЫТКИ И/ИЛИ ПОТЕРИ ДОХОДОВ, ПОНЕСЕННЫЕ ИЗ-ЗА ДЕЙСТВИЙ
 
29
 ТРЕТЬИХ ЛИЦ И/ИЛИ ОТКАЗА ПРОГРАММЫ РАБОТАТЬ СОВМЕСТНО С ДРУГИМИ ПРОГРАММАМИ,
 
30
 НО НЕ ОГРАНИЧИВАЯСЬ ЭТИМИ СЛУЧАЯМИ), НО НЕ ОГРАНИЧИВАЯСЬ ИМИ, ДАЖЕ ЕСЛИ ТАКОЙ
 
31
 ВЛАДЕЛЕЦ ИЛИ ДРУГОЕ ЛИЦО БЫЛИ ИЗВЕЩЕНЫ О ВОЗМОЖНОСТИ ТАКИХ УБЫТКОВ И ПОТЕРЬ.
 
32
 
 
33
 Redistribution and use in source and binary forms, with or without modification,
 
34
 are permitted provided that the following conditions are met:
 
35
 
 
36
 * Redistributions of source code must retain the above copyright notice,
 
37
 this list of conditions and the following disclaimer.
 
38
 * Redistributions in binary form must reproduce the above copyright notice,
 
39
 this list of conditions and the following disclaimer in the documentation
 
40
 and/or other materials provided with the distribution.
 
41
 * Neither the name of the Cognitive Technologies nor the names of its
 
42
 contributors may be used to endorse or promote products derived from this
 
43
 software without specific prior written permission.
 
44
 
 
45
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 
46
 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 
47
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
48
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 
49
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
50
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 
51
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 
52
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 
53
 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
54
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
55
 */
56
56
 
57
57
////////////////////////////////////////////////////////////
58
58
// ANALIZER OF THE CELL OF TABLES                         //
63
63
////////////////////////////////////////////////////////////
64
64
 
65
65
#ifndef __RAGR_H
66
 
   #define __RAGR_H
67
 
 
68
 
   #ifndef __GLOBUS_H
69
 
   #include "globus.h"
70
 
   #endif
71
 
 
72
 
#include "cttypext.h"
73
 
#ifndef __RECDEFS_H
74
 
   #include "recdefs.h"
75
 
#endif
76
 
   #include "memfunc.h"
77
 
 
78
 
   #ifdef __RSADD__
79
 
      #define RSADD_FUNC  FUN_EXPO
80
 
   #else
81
 
      #define RSADD_FUNC  FUN_IMPO
82
 
   #endif
83
 
 
84
 
   #ifdef __cplusplus
85
 
   extern "C" {
86
 
   #endif
87
 
 
88
 
enum RSADDFunctionsExt
89
 
        {
90
 
        RSADD_TAKE,
91
 
                RSADD_GETALIASES,
92
 
                RSADD_GETALIASCLASS,
93
 
                RSADD_KILL_DUSTS,
94
 
                RSADD_SETRSTR
95
 
                };
96
 
 
97
 
RSADD_FUNC(Bool32)  RSADD_Init( Word16 wHeightCode, Handle hStorage );
98
 
RSADD_FUNC(void)    RSADD_Done(void);
99
 
RSADD_FUNC(Word32)  RSADD_GetReturnCode(void);
100
 
RSADD_FUNC(char*)   RSADD_GetReturnString(Word32 dwError);
101
 
RSADD_FUNC(Bool32)  RSADD_SetImportData(Word32 dwType, void * pData);
102
 
RSADD_FUNC(Bool32)  RSADD_GetExportData(Word32 dwType, void * pData);
103
 
 
104
 
// 1    RSADD_TAKE                      ������� ������� ������� ���� �����
105
 
typedef Bool32  (*FNRSADD_take)(CSTR_line lrus,CSTR_line leng);
106
 
RSADD_FUNC(Bool32)  RSADD_take(CSTR_line lrus,CSTR_line leng);
107
 
// 2    RSADD_GETALIASES        ������ ����������� ��������
108
 
typedef Word8*  (*FNRSADD_get_aliases)( Word8 letter,   Word8 language, Word8 alias_class);
109
 
RSADD_FUNC(Word8*)  RSADD_get_aliases( Word8 letter,   Word8 language, Word8 alias_class);
110
 
// 3    RSADD_GETALIASCLASS     ����� ����������� ��������
 
66
#define __RAGR_H
 
67
 
 
68
#include "globus.h"
 
69
#include "recdefs.h"
 
70
#include "memfunc.h"
 
71
 
 
72
#ifdef __RSADD__
 
73
#define RSADD_FUNC  FUN_EXPO
 
74
#else
 
75
#define RSADD_FUNC  FUN_IMPO
 
76
#endif
 
77
 
 
78
#ifdef __cplusplus
 
79
extern "C" {
 
80
#endif
 
81
 
 
82
enum RSADDFunctionsExt {
 
83
        RSADD_TAKE,
 
84
        RSADD_GETALIASES,
 
85
        RSADD_GETALIASCLASS,
 
86
        RSADD_KILL_DUSTS,
 
87
        RSADD_SETRSTR
 
88
};
 
89
 
 
90
RSADD_FUNC(Bool32) RSADD_Init( uint16_t wHeightCode, Handle hStorage );
 
91
RSADD_FUNC(void) RSADD_Done(void);
 
92
RSADD_FUNC(uint32_t) RSADD_GetReturnCode(void);
 
93
RSADD_FUNC(char*) RSADD_GetReturnString(uint32_t dwError);
 
94
RSADD_FUNC(Bool32) RSADD_SetImportData(uint32_t dwType, void * pData);
 
95
RSADD_FUNC(Bool32) RSADD_GetExportData(uint32_t dwType, void * pData);
 
96
 
 
97
// 1    RSADD_TAKE                      главная функция слияния двух строк
 
98
typedef Bool32 (*FNRSADD_take)(CSTR_line lrus, CSTR_line leng);
 
99
RSADD_FUNC(Bool32) RSADD_take(CSTR_line lrus,CSTR_line leng);
 
100
// 2    RSADD_GETALIASES        список родственных символов
 
101
typedef uchar* (*FNRSADD_get_aliases)(uchar letter, uchar language,
 
102
                uchar alias_class);
 
103
RSADD_FUNC(uchar*) RSADD_get_aliases( uchar letter, uchar language, uchar alias_class);
 
104
// 3    RSADD_GETALIASCLASS     класс родственных символов
111
105
#define RSADD_as_none       0
112
106
#define RSADD_as_equal      1
113
107
#define RSADD_as_alias      2
114
108
#define RSADD_as_similar    4
115
 
typedef Word8   (*FNRSADD_get_alias_class)(Word8 letter,Word8 language);
116
 
RSADD_FUNC(Word8)   RSADD_get_alias_class(Word8 letter,Word8 language);
117
 
// 4 RSADD_KILL_DUSTS           ���������� ������ �����
118
 
typedef void    (*FNRSADD_kill_dusts)(CSTR_line lrus);
119
 
RSADD_FUNC(void )   RSADD_kill_dusts(CSTR_line lrus);
120
 
// 5 RSADD_SETRSTR                      ���� ���������� � ������� �� �-�� RSTR
121
 
typedef void    (*FNRSADD_SetRSTR)( Word8 status,Word8 camera,
122
 
                                Handle monitor_ori,
123
 
                                Handle activity,
124
 
                                Handle show_text);
125
 
RSADD_FUNC(void) RSADD_SetRSTR( Word8 status,Word8 camera,
126
 
                                Handle monitor_ori,
127
 
                                Handle activity,
128
 
                                Handle show_text);
129
 
   #ifdef __cplusplus
130
 
            }
131
 
   #endif
 
109
typedef uchar (*FNRSADD_get_alias_class)(uchar letter, uchar language);
 
110
RSADD_FUNC(uchar) RSADD_get_alias_class(uchar letter,uchar language);
 
111
// 4 RSADD_KILL_DUSTS           уничтожить лишние дусты
 
112
typedef void (*FNRSADD_kill_dusts)(CSTR_line lrus);
 
113
RSADD_FUNC(void ) RSADD_kill_dusts(CSTR_line lrus);
 
114
// 5 RSADD_SETRSTR                      приём информации и функций из б-ки RSTR
 
115
typedef void (*FNRSADD_SetRSTR)(uchar status, uchar camera, Handle monitor_ori,
 
116
                Handle activity, Handle show_text);
 
117
RSADD_FUNC(void) RSADD_SetRSTR( uchar status,uchar camera,
 
118
                Handle monitor_ori,
 
119
                Handle activity,
 
120
                Handle show_text);
 
121
#ifdef __cplusplus
 
122
}
 
123
#endif
132
124
 
133
125
#endif