Line -... |
Line 1... |
- |
|
1 |
#
|
- |
|
2 |
# Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>
|
- |
|
3 |
# All rights reserved.
|
- |
|
4 |
#
|
- |
|
5 |
# Redistribution and use in source and binary forms, with or without
|
- |
|
6 |
# modification, are permitted provided that the following conditions
|
- |
|
7 |
# are met:
|
- |
|
8 |
#
|
- |
|
9 |
# 1. Redistributions of source code must retain the above copyright
|
- |
|
10 |
# notice, this list of conditions and the following disclaimer.
|
- |
|
11 |
# 2. Redistributions in binary form must reproduce the above copyright
|
- |
|
12 |
# notice, this list of conditions and the following disclaimer in the
|
- |
|
13 |
# documentation and/or other materials provided with the distribution.
|
- |
|
14 |
#
|
- |
|
15 |
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
- |
|
16 |
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
- |
|
17 |
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
- |
|
18 |
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
- |
|
19 |
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
- |
|
20 |
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
- |
|
21 |
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
- |
|
22 |
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
- |
|
23 |
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
- |
|
24 |
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
- |
|
25 |
# SUCH DAMAGE.
|
- |
|
26 |
#
|
1 |
# Crown Copyright (c) 1997
|
27 |
# Crown Copyright (c) 1997
|
2 |
#
|
28 |
#
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
29 |
# This TenDRA(r) Computer Program is subject to Copyright
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
30 |
# owned by the United Kingdom Secretary of State for Defence
|
5 |
# acting through the Defence Evaluation and Research Agency
|
31 |
# acting through the Defence Evaluation and Research Agency
|
6 |
# (DERA). It is made available to Recipients with a
|
32 |
# (DERA). It is made available to Recipients with a
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
33 |
# royalty-free licence for its use, reproduction, transfer
|
8 |
# to other parties and amendment for any purpose not excluding
|
34 |
# to other parties and amendment for any purpose not excluding
|
9 |
# product development provided that any such use et cetera
|
35 |
# product development provided that any such use et cetera
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
36 |
# shall be deemed to be acceptance of the following conditions:-
|
11 |
#
|
37 |
#
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
38 |
# (1) Its Recipients shall ensure that this Notice is
|
13 |
# reproduced upon any copies or amended versions of it;
|
39 |
# reproduced upon any copies or amended versions of it;
|
14 |
#
|
40 |
#
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
41 |
# (2) Any amended version of it shall be clearly marked to
|
16 |
# show both the nature of and the organisation responsible
|
42 |
# show both the nature of and the organisation responsible
|
Line 23... |
Line 49... |
23 |
# (4) DERA gives no warranty or assurance as to its
|
49 |
# (4) DERA gives no warranty or assurance as to its
|
24 |
# quality or suitability for any purpose and DERA accepts
|
50 |
# quality or suitability for any purpose and DERA accepts
|
25 |
# no liability whatsoever in relation to any use to which
|
51 |
# no liability whatsoever in relation to any use to which
|
26 |
# it may be put.
|
52 |
# it may be put.
|
27 |
#
|
53 |
#
|
- |
|
54 |
# $Id$
|
- |
|
55 |
#
|
- |
|
56 |
|
28 |
+IMPLEMENT "ansi", "stddef.h", "null" (!?) ;
|
57 |
+IMPLEMENT "ansi", "stddef.h", "null" (!?) ;
|
29 |
+IMPLEMENT "ansi", "stddef.h", "size_t" (!?) ;
|
58 |
+IMPLEMENT "ansi", "stddef.h", "size_t" (!?) ;
|
30 |
+IMPLEMENT "ansi", "stddef.h", "wchar_t" (!?) ;
|
59 |
+IMPLEMENT "ansi", "stddef.h", "wchar_t" (!?) ;
|
31 |
|
60 |
|
32 |
+SUBSET "bottom" := {
|
61 |
+SUBSET "bottom" := {
|
Line 49... |
Line 78... |
49 |
|
78 |
|
50 |
+IFNDEF __JUST_POSIX
|
79 |
+IFNDEF __JUST_POSIX
|
51 |
+FUNC double strtod ( const char *, char ** ) ;
|
80 |
+FUNC double strtod ( const char *, char ** ) ;
|
52 |
+FUNC long strtol ( const char *, char **, int ) ;
|
81 |
+FUNC long strtol ( const char *, char **, int ) ;
|
53 |
+SUBSET "system" := { +FUNC int system ( const char * ) ; } ;
|
82 |
+SUBSET "system" := { +FUNC int system ( const char * ) ; } ;
|
54 |
|
83 |
|
55 |
+IFNDEF __JUST_XPG3
|
84 |
+IFNDEF __JUST_XPG3
|
56 |
+EXP int MB_CUR_MAX ;
|
85 |
+EXP int MB_CUR_MAX ;
|
57 |
+FIELD ( struct ) div_t { int quot, rem ; } ;
|
86 |
+FIELD ( struct ) div_t { int quot, rem ; } ;
|
58 |
+FIELD ( struct ) ldiv_t { long quot, rem ; } ;
|
87 |
+FIELD ( struct ) ldiv_t { long quot, rem ; } ;
|
59 |
+FUNC int atexit ( void (*) ( void ) ) ;
|
88 |
+FUNC int atexit ( void (*) ( void ) ) ;
|
60 |
+FUNC div_t div ( int, int ) ;
|
89 |
+FUNC div_t div ( int, int ) ;
|
61 |
+FUNC long labs ( long ) ;
|
90 |
+FUNC long labs ( long ) ;
|
62 |
+FUNC ldiv_t ldiv ( long, long ) ;
|
91 |
+FUNC ldiv_t ldiv ( long, long ) ;
|
63 |
+FUNC unsigned long strtoul ( const char *, char **, int ) ;
|
92 |
+FUNC unsigned long strtoul ( const char *, char **, int ) ;
|
64 |
+FUNC int wctomb ( char *, wchar_t ) ;
|
93 |
+FUNC int wctomb ( char *, wchar_t ) ;
|
65 |
+ENDIF
|
94 |
+ENDIF
|
66 |
+ENDIF
|
95 |
+ENDIF
|
67 |
|
96 |
|
68 |
+SUBSET "alloc" := {
|
97 |
+SUBSET "alloc" := {
|
69 |
+USE "ansi", "stddef.h", "size_t" (!?) ;
|
98 |
+USE "ansi", "stddef.h", "size_t" (!?) ;
|
70 |
+FUNC void *calloc ( size_t, size_t ) ;
|
99 |
+FUNC void *calloc ( size_t, size_t ) ;
|
71 |
+FUNC void *malloc ( size_t ) ;
|
100 |
+FUNC void *malloc ( size_t ) ;
|
Line 83... |
Line 112... |
83 |
+FUNC size_t mbstowcs ( wchar_t *, const char *, size_t ) ;
|
112 |
+FUNC size_t mbstowcs ( wchar_t *, const char *, size_t ) ;
|
84 |
+FUNC int mbtowc ( wchar_t *, const char *, size_t ) ;
|
113 |
+FUNC int mbtowc ( wchar_t *, const char *, size_t ) ;
|
85 |
+FUNC size_t wcstombs ( char *, const wchar_t *, size_t ) ;
|
114 |
+FUNC size_t wcstombs ( char *, const wchar_t *, size_t ) ;
|
86 |
+ENDIF
|
115 |
+ENDIF
|
87 |
+ENDIF
|
116 |
+ENDIF
|
- |
|
117 |
|
- |
|
118 |
# vim:set filetype=tspec:
|