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

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/hrkint/crling.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:
2
2
Copyright (c) 1993-2008, Cognitive Technologies
3
3
All rights reserved.
4
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
 
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
 
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
32
 
33
33
Redistribution and use in source and binary forms, with or without modification,
34
34
are permitted provided that the following conditions are met:
78
78
    #endif
79
79
# endif // (_DEBUG)
80
80
 
81
 
#ifndef __GLOBUS_H
82
81
 #include "globus.h"
83
 
#endif
84
 
 #include "cttypext.h"
85
82
///////////////////////////////////////////////////////////////////////////////////////////////
86
83
///////////////////////////////////////////////////////////////////////////////////////////////
87
84
#undef  RLING_FUNC
109
106
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
110
107
//
111
108
# define    RLINGBOOL16          Bool16
112
 
# define    RLINGWORD            Word16
 
109
# define    RLINGWORD            uint16_t
113
110
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
114
111
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
115
112
#ifdef __RLING__
116
 
RLING_FUNC(Bool32) RLING_Init(Word16 wHeightCode,Handle hStorage);
 
113
RLING_FUNC(Bool32) RLING_Init(uint16_t wHeightCode,Handle hStorage);
117
114
RLING_FUNC(Bool32) RLING_Done();
118
 
RLING_FUNC(Word32) RLING_GetReturnCode();
119
 
RLING_FUNC(Int8 *) RLING_GetReturnString(Word32 dwError);
120
 
RLING_FUNC(Bool32) RLING_GetExportData(Word32 dwType, void * pData);
121
 
RLING_FUNC(Bool32) RLING_SetImportData(Word32 dwType, void * pData);
 
115
RLING_FUNC(uint32_t) RLING_GetReturnCode();
 
116
RLING_FUNC(char *) RLING_GetReturnString(uint32_t dwError);
 
117
RLING_FUNC(Bool32) RLING_GetExportData(uint32_t dwType, void * pData);
 
118
RLING_FUNC(Bool32) RLING_SetImportData(uint32_t dwType, void * pData);
122
119
#endif
123
120
/////////////////////////////////////////////////////////////////////////////////////////
124
121
#ifdef __RLINGS__
125
 
RLINGS_FUNC(Bool32) RLINGS_Init(Word16 wHeightCode,Handle hStorage);
 
122
RLINGS_FUNC(Bool32) RLINGS_Init(uint16_t wHeightCode,Handle hStorage);
126
123
RLINGS_FUNC(Bool32) RLINGS_Done();
127
 
RLINGS_FUNC(Word32) RLINGS_GetReturnCode();
128
 
RLINGS_FUNC(Int8 *) RLINGS_GetReturnString(Word32 dwError);
129
 
RLINGS_FUNC(Bool32) RLINGS_GetExportData(Word32 dwType, void * pData);
130
 
RLINGS_FUNC(Bool32) RLINGS_SetImportData(Word32 dwType, void * pData);
 
124
RLINGS_FUNC(uint32_t) RLINGS_GetReturnCode();
 
125
RLINGS_FUNC(char *) RLINGS_GetReturnString(uint32_t dwError);
 
126
RLINGS_FUNC(Bool32) RLINGS_GetExportData(uint32_t dwType, void * pData);
 
127
RLINGS_FUNC(Bool32) RLINGS_SetImportData(uint32_t dwType, void * pData);
131
128
#endif
132
129
/////////////////////////////////////////////////////////////////////////////////////////
133
130
/////////////////////////////////////////////////////////////////////////////////////////
195
192
#endif
196
193
//////////////////////////////////////////////////////////////////////////////////////////
197
194
//
198
 
DEC_FUN(Bool32,  IsDictonaryAvailable,     (Word32, PInt8));
199
 
DEC_FUN(Bool32,  LoadDictonary,            (Word32, PInt8));
200
 
DEC_FUN(Bool32,  LoadSecDictonary,         (Word32, PInt8));
201
 
DEC_FUN(Bool32,  LoadUserDictonary,        (PInt8, PInt8));
202
 
DEC_FUN(Bool32,  LoadSecUserDictonary,     (PInt8, PInt8));
 
195
DEC_FUN(Bool32,  IsDictonaryAvailable,     (uint32_t, pchar));
 
196
DEC_FUN(Bool32,  LoadDictonary,            (uint32_t, pchar));
 
197
DEC_FUN(Bool32,  LoadSecDictonary,         (uint32_t, pchar));
 
198
DEC_FUN(Bool32,  LoadUserDictonary,        (pchar, pchar));
 
199
DEC_FUN(Bool32,  LoadSecUserDictonary,     (pchar, pchar));
203
200
DEC_FUN(Bool32,  UnloadDictonary,          (void));
204
201
DEC_FUN(Bool32,  UnloadSecDictonary,       (void));
205
202
DEC_FUN(Bool32,  UnloadUserDictonary,      (void));
206
203
DEC_FUN(Bool32,  UnloadSecUserDictonary,   (void));
207
 
DEC_FUN(Bool32,  CheckWord,                (PInt8 , PInt32));
208
 
DEC_FUN(Bool32,  CheckSecWord,             (PInt8 , PInt32));
209
 
DEC_FUN(Bool32,  CheckED,                  (void *, void *, Word32, PWord32, PInt32));
210
 
DEC_FUN(Bool32,  CheckSecED,               (void *, void *, Word32, PWord32, PInt32));
211
 
DEC_FUN(Bool32,  CorrectWord,              (void *, void *, PWord32, PInt8));
212
 
DEC_FUN(Bool32,  CorrectSecWord,           (void *, void *, PWord32, PInt8));
213
 
DEC_FUN(Bool32,  CorrectHypWord,           (void *, void *, PWord32, void *, void *, PWord32, PInt8));
214
 
DEC_FUN(Bool32,  CorrectSecHypWord,        (void *, void *, PWord32, void *, void *, PWord32, PInt8));
215
 
DEC_FUN(Rect16,  GetCorrectedRectElement,   (Word32));
216
 
DEC_FUN(Rect16,  GetSecCorrectedRectElement,(Word32));
217
 
DEC_FUN(RecVersions,  GetCorrectedVersElement,   (Word32, PWord32));
218
 
DEC_FUN(RecVersions,  GetSecCorrectedVersElement,(Word32, PWord32));
 
204
DEC_FUN(Bool32,  CheckWord,                (pchar , int32_t *));
 
205
DEC_FUN(Bool32,  CheckSecWord,             (pchar , int32_t *));
 
206
DEC_FUN(Bool32,  CheckED,                  (void *, void *, uint32_t, uint32_t *, int32_t *));
 
207
DEC_FUN(Bool32,  CheckSecED,               (void *, void *, uint32_t, uint32_t *, int32_t *));
 
208
DEC_FUN(Bool32,  CorrectWord,              (void *, void *, uint32_t *, pchar));
 
209
DEC_FUN(Bool32,  CorrectSecWord,           (void *, void *, uint32_t *, pchar));
 
210
DEC_FUN(Bool32,  CorrectHypWord,           (void *, void *, uint32_t *, void *, void *, uint32_t *, pchar));
 
211
DEC_FUN(Bool32,  CorrectSecHypWord,        (void *, void *, uint32_t *, void *, void *, uint32_t *, pchar));
 
212
DEC_FUN(Rect16,  GetCorrectedRectElement,   (uint32_t));
 
213
DEC_FUN(Rect16,  GetSecCorrectedRectElement,(uint32_t));
 
214
DEC_FUN(RecVersions,  GetCorrectedVersElement,   (uint32_t, uint32_t *));
 
215
DEC_FUN(RecVersions,  GetSecCorrectedVersElement,(uint32_t, uint32_t *));
219
216
//////////////////////////////////////////////////////////////////////////////////////////
220
217
//
221
218
#undef DEC_FUN