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

« back to all changes in this revision

Viewing changes to .pc/c-assert.diff/cuneiform_src/Kern/hh/internal.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
/*
 
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
 
 
57
#ifndef __INTERNAL_H
 
58
   #define __INTERNAL_H
 
59
 
 
60
   #if (defined( _Windows ) || defined( _WINDOWS ) || defined( WIN32 ) )
 
61
      #ifdef WIN32
 
62
         #ifndef PPS_WIN32
 
63
            #define PPS_WIN32
 
64
         #endif
 
65
      #else
 
66
         #ifndef PPS_WIN
 
67
            #define PPS_WIN
 
68
            #define PPS_WIN16 // 16-bit Windows
 
69
            #define WIN16
 
70
         #endif
 
71
      #endif
 
72
   #endif
 
73
 
 
74
   #if !defined(__STDDEF_H) && !defined(_INC_STDDEF)
 
75
      #include <stddef.h>
 
76
   #endif
 
77
 
 
78
   #if !defined(__STDIO_H) && !defined(_INC_STDIO)
 
79
      #include <stdio.h>
 
80
   #endif
 
81
 
 
82
   #if !defined(__STDLIB_H) && !defined(_INC_STDLIB)
 
83
      #include <stdlib.h>
 
84
   #endif
 
85
 
 
86
   #if !defined(__MATH_H) && !defined(_INC_MATH)
 
87
      #include <math.h>
 
88
   #endif
 
89
 
 
90
   #if !defined(__STRING_H) && !defined(_STRING_)
 
91
      #include <string.h>
 
92
   #endif
 
93
 
 
94
   #ifdef __BORLANDC__
 
95
      #define BITS_16
 
96
   #else
 
97
      #define BITS_32
 
98
   #endif
 
99
 
 
100
   #if defined( PPS_WIN ) || defined( PPS_WIN32 )
 
101
      #ifdef __BORLANDC__
 
102
      #  ifndef __WINDOWS_H
 
103
      #        include <windows.h>     // 16 bit, borland assumed
 
104
      #  endif
 
105
      #else //  assumed 32 bit && VC
 
106
      #  ifndef _WINDOWS_
 
107
      #     define WIN32_EXTRA_LEAN
 
108
      #     define WIN32_LEAN_AND_MEAN
 
109
 
 
110
      #     define NOSERVICE // no service control manager, include "winsvc.h" directly if need
 
111
      #     define NOIME     // no input method manager, include "ime.h" directly if need
 
112
      #     define NOMCX     // no modem extensions, include "mcx.h" directly if need
 
113
 
 
114
//      #     include <windows.h>
 
115
      #     include "win_mini.h"
 
116
      #  endif
 
117
      #endif
 
118
   #endif
 
119
 
 
120
   #ifndef __GLOBUS_H
 
121
      #include "globus.h"
 
122
   #endif
 
123
 
 
124
   //== to be precompiled
 
125
   #ifndef __STD_H
 
126
      #include "std.h"
 
127
   #endif
 
128
 
 
129
   #define CONSOLE   stdConsole
 
130
   #define CONSOLE_is_stdConsole
 
131
   #define CONSOLE_IF( statm )   if(statm) stdConsole
 
132
 
 
133
   #if defined(assert)
 
134
   #undef assert
 
135
   #endif
 
136
   #ifdef NDEBUG
 
137
      #define assert(p) ((void)0)
 
138
   #else
 
139
      #define assert(p) \
 
140
         ((p)) ? (void)0 : (void)stdAssert( #p, __FILE__, __LINE__)
 
141
   #endif
 
142
   #define assert_is_stdAssert
 
143
 
 
144
   #define ifret( cond ) \
 
145
      {  if (!(cond)) { stdSetError( ER_INTERNAL, #cond, __FILE__, __LINE__); return; } }
 
146
 
 
147
   #define ifret0( cond ) \
 
148
      {  if (!(cond)) { stdSetError( ER_INTERNAL, #cond, __FILE__, __LINE__); return 0; } }
 
149
 
 
150
   #ifndef __XMACROS_H
 
151
   #include "xmacros.h"
 
152
   #endif
 
153
 
 
154
   #ifndef __SAFESTR_H
 
155
   #include "safestr.h"
 
156
   #endif
 
157
 
 
158
   #ifndef __WMB_H
 
159
   #include "wmb.h"
 
160
   #endif
 
161
 
 
162
#endif  // INTERNAL