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

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/rling/sources/cpp/dll.cpp

  • 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
// Copyright (c) 1998 Cognitive Technology Ltd.
65
65
#include "resource.h"
66
66
#include "rlcontrol.h"
67
67
///////////////////////////////////////////////////////////////////////////////////////////////////////////
68
 
// ����� ��� ������ ����� (������ ��� ������)
 
68
// хидер для второй копии (только для первой)
69
69
#if !defined ( RLING_SECONDARY ) //& defined (RLING_MASTER)
70
 
  #define RLING_SECONDARY
71
 
  #include "crling.h"
72
 
  #undef RLING_SECONDARY
 
70
#define RLING_SECONDARY
 
71
#include "crling.h"
 
72
#undef RLING_SECONDARY
73
73
#endif
74
74
#include "crling.h"
75
75
 
76
76
#include "compat_defs.h"
77
77
 
78
78
//////////////////////////////////////////////////////////////////GLOBAL VARIABLES
79
 
static Word16            gwHeightRC = 0;
80
 
static Word16            gwLowRC = 0;
81
 
static Handle            ghInst =  NULL;
82
 
CRLControl *      Control_crl = NULL;
 
79
static uint16_t gwHeightRC = 0;
 
80
static uint16_t gwLowRC = 0;
 
81
static Handle ghInst = NULL;
 
82
CRLControl * Control_crl = NULL;
83
83
///////////////////////////////////////////////////////////////////////////////////
84
 
void SetReturnCode_rling(Word16 rc);
85
 
Word16 GetReturnCode_rling();
 
84
void SetReturnCode_rling(uint16_t rc);
 
85
uint16_t GetReturnCode_rling();
86
86
///////////////////////////////////////////////////////////////////////////////////
87
87
 
88
88
// FIXME: temp hack
91
91
#define APIENTRY
92
92
#endif
93
93
 
94
 
BOOL APIENTRY DllMain( HINSTANCE hModule,
95
 
                        DWORD ul_reason_for_call,
96
 
                        LPVOID lpReserved )
97
 
{
98
 
    switch( ul_reason_for_call )
99
 
        {
100
 
    case DLL_PROCESS_ATTACH:
 
94
Bool APIENTRY DllMain(HINSTANCE hModule, uint32_t ul_reason_for_call,
 
95
                pvoid lpReserved) {
 
96
        switch (ul_reason_for_call) {
 
97
        case DLL_PROCESS_ATTACH:
101
98
                ghInst = hModule;
102
99
                break;
103
 
    case DLL_THREAD_ATTACH:
104
 
                break;
105
 
    case DLL_THREAD_DETACH:
106
 
                break;
107
 
    case DLL_PROCESS_DETACH:
108
 
                break;
109
 
    }
110
 
    return TRUE;
 
100
        case DLL_THREAD_ATTACH:
 
101
                break;
 
102
        case DLL_THREAD_DETACH:
 
103
                break;
 
104
        case DLL_PROCESS_DETACH:
 
105
                break;
 
106
        }
 
107
        return TRUE;
111
108
}
112
109
//////////////////////////////////////////////////////////////////////////////////
113
110
//
114
111
#if defined( __RLING__ )
115
 
RLING_FUNC(Bool32) RLING_Init(Word16 wHeightCode,Handle hStorage)
 
112
RLING_FUNC(Bool32) RLING_Init(uint16_t wHeightCode,Handle hStorage)
116
113
#else
117
 
RLINGS_FUNC(Bool32) RLINGS_Init(Word16 wHeightCode,Handle hStorage)
 
114
RLINGS_FUNC(Bool32) RLINGS_Init(uint16_t wHeightCode,Handle hStorage)
118
115
#endif
119
116
{
120
117
        gwHeightRC = wHeightCode;
123
120
 
124
121
        if ( Control_crl )
125
122
#if defined ( __RLING__ )
126
 
                return RLINGS_Init(wHeightCode, hStorage);
 
123
        return RLINGS_Init(wHeightCode, hStorage);
127
124
#else
128
 
                return TRUE;
 
125
        return TRUE;
129
126
#endif
130
127
 
131
128
        SetReturnCode_rling(IDS_RLING_DLL_NOT_INITIALISING);
143
140
        Control_crl = NULL;
144
141
 
145
142
#if defined ( __RLING__ )
146
 
                return RLINGS_Done();
 
143
        return RLINGS_Done();
147
144
#else
148
 
                return TRUE;
 
145
        return TRUE;
149
146
#endif
150
147
}
151
148
//////////////////////////////////////////////////////////////////////////////////
152
149
//
153
150
#if defined( __RLING__ )
154
 
RLING_FUNC(Word32) RLING_GetReturnCode()
 
151
RLING_FUNC(uint32_t) RLING_GetReturnCode()
155
152
#else
156
 
RLINGS_FUNC(Word32) RLINGS_GetReturnCode()
 
153
RLINGS_FUNC(uint32_t) RLINGS_GetReturnCode()
157
154
#endif
158
155
{
159
156
        if ( !gwLowRC )
160
 
                return 0;
 
157
        return 0;
161
158
 
162
159
#if defined ( __RLING__ )
163
160
        if ( gwLowRC == IDS_RLING_ERR_NO )
164
 
                return RLINGS_GetReturnCode();
 
161
        return RLINGS_GetReturnCode();
165
162
#endif
166
163
 
167
 
        return (Word32)(gwHeightRC<<16)|(gwLowRC - IDS_RLING_ERR_NO);
 
164
        return (uint32_t)(gwHeightRC<<16)|(gwLowRC - IDS_RLING_ERR_NO);
168
165
}
169
166
//////////////////////////////////////////////////////////////////////////////////
170
167
//
171
168
#if defined( __RLING__ )
172
 
RLING_FUNC(Int8 *) RLING_GetReturnString(Word32 dwError)
 
169
RLING_FUNC(char *) RLING_GetReturnString(uint32_t dwError)
173
170
#else
174
 
RLINGS_FUNC(Int8 *) RLINGS_GetReturnString(Word32 dwError)
 
171
RLINGS_FUNC(char *) RLINGS_GetReturnString(uint32_t dwError)
175
172
#endif
176
173
{
177
 
        Word16 rc = (Word16)(dwError & 0xFFFF) + IDS_RLING_ERR_NO;
178
 
        static Int8 szBuffer[512];
 
174
        uint16_t rc = (uint16_t)(dwError & 0xFFFF) + IDS_RLING_ERR_NO;
 
175
        static char szBuffer[512];
179
176
 
180
177
        if( dwError >> 16 != gwHeightRC)
181
 
                gwLowRC = IDS_RLING_ERR_NOTIMPLEMENT;
 
178
        gwLowRC = IDS_RLING_ERR_NOTIMPLEMENT;
182
179
 
183
180
        if( rc >= IDS_RLING_ERR_NO )
184
 
                LoadString((HINSTANCE)ghInst,rc,(char *)szBuffer,sizeof(szBuffer));
 
181
        LoadString((HINSTANCE)ghInst,rc,(char *)szBuffer,sizeof(szBuffer));
185
182
        else
186
 
                return NULL;
 
183
        return NULL;
187
184
 
188
185
        return szBuffer;
189
186
}
190
187
//////////////////////////////////////////////////////////////////////////////////
191
188
//
192
189
#if defined( __RLING__ )
193
 
  #define CASE_FUNCTION(a)      case RLING_FN_##a:      *(FNRLING##a *)pData = RLING_##a; break
 
190
#define CASE_FUNCTION(a)        case RLING_FN_##a:      *(FNRLING##a *)pData = RLING_##a; break
194
191
#else
195
 
  #define CASE_FUNCTION(a)      case RLINGS_FN_##a:     *(FNRLINGS##a *)pData = RLINGS_##a; break
 
192
#define CASE_FUNCTION(a)        case RLINGS_FN_##a:     *(FNRLINGS##a *)pData = RLINGS_##a; break
196
193
#endif
197
194
//////////////////////////////////////////////////////////////////////////////////
198
195
//
199
196
#if defined( __RLING__ )
200
 
RLING_FUNC(Bool32) RLING_GetExportData(Word32 dwType, void * pData)
 
197
RLING_FUNC(Bool32) RLING_GetExportData(uint32_t dwType, void * pData)
201
198
#else
202
 
RLINGS_FUNC(Bool32) RLINGS_GetExportData(Word32 dwType, void * pData)
 
199
RLINGS_FUNC(Bool32) RLINGS_GetExportData(uint32_t dwType, void * pData)
203
200
#endif
204
201
{
205
202
        Bool32 rc = TRUE;
206
203
 
207
204
        gwLowRC = 0;
208
205
 
209
 
 
210
206
        switch(dwType)
211
207
        {
212
 
        CASE_FUNCTION(IsDictonaryAvailable);
213
 
        CASE_FUNCTION(LoadDictonary);
214
 
        CASE_FUNCTION(LoadSecDictonary);
215
 
        CASE_FUNCTION(UnloadDictonary);
216
 
        CASE_FUNCTION(UnloadSecDictonary);
217
 
        CASE_FUNCTION(LoadUserDictonary);
218
 
        CASE_FUNCTION(LoadSecUserDictonary);
219
 
        CASE_FUNCTION(UnloadUserDictonary);
220
 
        CASE_FUNCTION(UnloadSecUserDictonary);
221
 
        CASE_FUNCTION(CheckWord);
222
 
        CASE_FUNCTION(CheckSecWord);
223
 
        CASE_FUNCTION(CheckED);
224
 
        CASE_FUNCTION(CheckSecED);
225
 
    /*
226
 
        CASE_FUNCTION(CorrectWord);
227
 
        CASE_FUNCTION(CorrectSecWord);
228
 
        CASE_FUNCTION(CorrectHypWord);
229
 
        CASE_FUNCTION(CorrectSecHypWord);
230
 
        CASE_FUNCTION(GetCorrectedRectElement);
231
 
        CASE_FUNCTION(GetSecCorrectedRectElement);
232
 
        CASE_FUNCTION(GetCorrectedVersElement);
233
 
        CASE_FUNCTION(GetSecCorrectedVersElement);
234
 
        */
235
 
        default:
 
208
                CASE_FUNCTION(IsDictonaryAvailable);
 
209
                CASE_FUNCTION(LoadDictonary);
 
210
                CASE_FUNCTION(LoadSecDictonary);
 
211
                CASE_FUNCTION(UnloadDictonary);
 
212
                CASE_FUNCTION(UnloadSecDictonary);
 
213
                CASE_FUNCTION(LoadUserDictonary);
 
214
                CASE_FUNCTION(LoadSecUserDictonary);
 
215
                CASE_FUNCTION(UnloadUserDictonary);
 
216
                CASE_FUNCTION(UnloadSecUserDictonary);
 
217
                CASE_FUNCTION(CheckWord);
 
218
                CASE_FUNCTION(CheckSecWord);
 
219
                CASE_FUNCTION(CheckED);
 
220
                CASE_FUNCTION(CheckSecED);
 
221
                /*
 
222
                 CASE_FUNCTION(CorrectWord);
 
223
                 CASE_FUNCTION(CorrectSecWord);
 
224
                 CASE_FUNCTION(CorrectHypWord);
 
225
                 CASE_FUNCTION(CorrectSecHypWord);
 
226
                 CASE_FUNCTION(GetCorrectedRectElement);
 
227
                 CASE_FUNCTION(GetSecCorrectedRectElement);
 
228
                 CASE_FUNCTION(GetCorrectedVersElement);
 
229
                 CASE_FUNCTION(GetSecCorrectedVersElement);
 
230
                 */
 
231
                default:
236
232
                *(Handle *)pData = NULL;
237
233
                gwLowRC = IDS_RLING_ERR_NOTIMPLEMENT;
238
234
                rc = FALSE;
243
239
//////////////////////////////////////////////////////////////////////////////////
244
240
//
245
241
#if defined( __RLING__ )
246
 
RLING_FUNC(Bool32) RLING_SetImportData(Word32 dwType, void * pData)
 
242
RLING_FUNC(Bool32) RLING_SetImportData(uint32_t dwType, void * pData)
247
243
#else
248
 
RLINGS_FUNC(Bool32) RLINGS_SetImportData(Word32 dwType, void * pData)
 
244
RLINGS_FUNC(Bool32) RLINGS_SetImportData(uint32_t dwType, void * pData)
249
245
#endif
250
246
{
251
 
        BOOL rc = FALSE;
 
247
        Bool rc = FALSE;
252
248
        gwLowRC = IDS_RLING_ERR_NOTIMPLEMENT;
253
249
 
254
250
        return rc;
255
251
}
256
252
//////////////////////////////////////////////////////////////////////////////////
257
253
//
258
 
void SetReturnCode_rling(Word16 rc)
259
 
{
260
 
        if ( rc == IDS_RLING_ERR_NO || gwLowRC == IDS_RLING_ERR_NO )
 
254
void SetReturnCode_rling(uint16_t rc) {
 
255
        if (rc == IDS_RLING_ERR_NO || gwLowRC == IDS_RLING_ERR_NO)
261
256
                gwLowRC = rc;
262
257
}
263
258
//////////////////////////////////////////////////////////////////////////////////
264
259
//
265
 
Word16 GetReturnCode_rling()
266
 
{
 
260
uint16_t GetReturnCode_rling() {
267
261
        return gwLowRC;
268
262
}
269
263
//////////////////////////////////////////////////////////////////////////////////