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

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/lns32/src/bambuk.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:
72
72
        #       include "fararray.h"
73
73
        #endif
74
74
 
75
 
typedef         Int32 BHandle ;
76
 
typedef         Int32 BEntry  ;
 
75
typedef         int32_t BHandle ;
 
76
typedef         int32_t BEntry  ;
77
77
 
78
78
#define NULLBHandle  (BHandle)  0xFFFF
79
79
#define NULLBEntry   (BEntry)   0xFFFF
240
240
                        nextHandle = 0;
241
241
                        ok = FALSE;
242
242
                };
243
 
void        cleanMembers( T  * zero_member, Int32 from );
244
 
void        cleanLinks( Int32 from = 0 );
245
 
void        cleanEntries( Int32 from = 0 );
 
243
void        cleanMembers( T  * zero_member, int32_t from );
 
244
void        cleanLinks( int32_t from = 0 );
 
245
void        cleanEntries( int32_t from = 0 );
246
246
 
247
247
 
248
248
 
280
280
        };
281
281
*/
282
282
template <class T>
283
 
void  TBambuk<T>::cleanEntries( Int32 from )
 
283
void  TBambuk<T>::cleanEntries( int32_t from )
284
284
        {       assert( isOk() );
285
285
                EntryInfo zeroEntry = { NULLBHandle, NULLBHandle, 0 };
286
286
                entries.fill( &zeroEntry, from );
287
287
        }
288
288
 
289
289
template <class T>
290
 
void  TBambuk<T>::cleanMembers( T  * zero_member, Int32 from )
 
290
void  TBambuk<T>::cleanMembers( T  * zero_member, int32_t from )
291
291
        {       assert( isOk() );
292
292
                members.fill(  zero_member, from );
293
293
        }
294
294
 
295
295
template <class T>
296
 
void  TBambuk<T>::cleanLinks( Int32 from )
 
296
void  TBambuk<T>::cleanLinks( int32_t from )
297
297
        {       assert( isOk() );
298
298
        BHandle handle = NULLBHandle;
299
299
                links.fill( &handle, from );
475
475
                        nextHandle = 0;
476
476
                        ok = FALSE;
477
477
                };
478
 
void        cleanMembers( T  * zero_member, Int32 from );
479
 
void        cleanLinks( Int32 from = 0 );
480
 
void        cleanEntries( Int32 from = 0 );
 
478
void        cleanMembers( T  * zero_member, int32_t from );
 
479
void        cleanLinks( int32_t from = 0 );
 
480
void        cleanEntries( int32_t from = 0 );
481
481
 
482
482
 
483
483
 
515
515
        };
516
516
*/
517
517
template <class T>
518
 
void  THugeBambuk<T>::cleanEntries( Int32 from )
 
518
void  THugeBambuk<T>::cleanEntries( int32_t from )
519
519
        {       assert( isOk() );
520
520
                EntryInfo zeroEntry = { NULLBHandle, NULLBHandle, 0 };
521
521
                entries.fill( &zeroEntry, from );
522
522
        }
523
523
 
524
524
template <class T>
525
 
void  THugeBambuk<T>::cleanMembers( T  * zero_member, Int32 from )
 
525
void  THugeBambuk<T>::cleanMembers( T  * zero_member, int32_t from )
526
526
        {       assert( isOk() );
527
527
                members.fill(  zero_member, from );
528
528
        }
529
529
 
530
530
template <class T>
531
 
void  THugeBambuk<T>::cleanLinks( Int32 from )
 
531
void  THugeBambuk<T>::cleanLinks( int32_t from )
532
532
        {       assert( isOk() );
533
533
        BHandle handle = NULLBHandle;
534
534
                links.fill( &handle, from );