Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
+IMPLEMENT "ansi", "stddef.h", "null" (!?) ;
29
+IMPLEMENT "ansi", "stddef.h", "size_t" (!?) ;
30
+IMPLEMENT "ansi", "stddef.h", "wchar_t" (!?) ;
31
 
32
+SUBSET "bottom" := {
33
    +TYPEDEF ~special ( "bottom" ) ~bottom ;
34
} ;
35
 
36
+CONST int EXIT_FAILURE, EXIT_SUCCESS ;
37
+CONST int RAND_MAX ;
38
 
39
+FUNC ~bottom abort ( void ) ;
40
+FUNC int abs ( int ) ;
41
+FUNC double atof ( const char * ) ;
42
+FUNC int atoi ( const char * ) ;
43
+FUNC long atol ( const char * ) ;
44
+FUNC ~bottom exit ( int ) ;
45
+SUBSET "free" := { +FUNC void free ( void * ) ; } ;
46
+FUNC char *getenv ( const char * ) ;
47
+FUNC int rand ( void ) ;
48
+FUNC void srand ( unsigned int ) ;
49
 
50
+IFNDEF __JUST_POSIX
51
+FUNC double strtod ( const char *, char ** ) ;
52
+FUNC long strtol ( const char *, char **, int ) ;
53
+SUBSET "system" := { +FUNC int system ( const char * ) ; } ;
54
 
55
+IFNDEF __JUST_XPG3
56
+EXP int MB_CUR_MAX ;
57
+FIELD ( struct ) div_t { int quot, rem ; } ;
58
+FIELD ( struct ) ldiv_t { long quot, rem ; } ;
59
+FUNC int atexit ( void (*) ( void ) ) ;
60
+FUNC div_t div ( int, int ) ;
61
+FUNC long labs ( long ) ;
62
+FUNC ldiv_t ldiv ( long, long ) ;
63
+FUNC unsigned long strtoul ( const char *, char **, int ) ;
64
+FUNC int wctomb ( char *, wchar_t ) ;
65
+ENDIF
66
+ENDIF
67
 
68
+SUBSET "alloc" := {
69
    +USE "ansi", "stddef.h", "size_t" (!?) ;
70
    +FUNC void *calloc ( size_t, size_t ) ;
71
    +FUNC void *malloc ( size_t ) ;
72
    +FUNC void *realloc ( void *, size_t ) ;
73
} ;
74
 
75
+FUNC void *bsearch ( const void *, const void *, size_t, size_t,
76
		      int (*) ( const void *, const void * ) ) ;
77
+FUNC void qsort ( void *, size_t, size_t,
78
		   int (*) ( const void *, const void * ) ) ;
79
 
80
+IFNDEF __JUST_POSIX
81
+IFNDEF __JUST_XPG3
82
+FUNC int mblen ( const char *, size_t ) ;
83
+FUNC size_t mbstowcs ( wchar_t *, const char *, size_t ) ;
84
+FUNC int mbtowc ( wchar_t *, const char *, size_t ) ;
85
+FUNC size_t wcstombs ( char *, const wchar_t *, size_t ) ;
86
+ENDIF
87
+ENDIF