Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | 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
+SUBSET "wint" := {
29
    # 7.16.1
30
    +TYPE ( int ) wint_t ;
31
    +CONST wint_t WEOF ;
32
} ;
33
 
34
+SUBSET "mse" := {
35
    +USE "ansi", "stdio.h" (!?) ;
36
    +USE "ansi", "time.h" (!?) ;
37
 
38
    # 7.16.1
39
    +IMPLEMENT "ansi", "stddef.h", "size_t" (!?) ;
40
    +IMPLEMENT "ansi", "stddef.h", "wchar_t" (!?) ;
41
    +IMPLEMENT "ansi", "stddef.h", "null" (!?) ;
42
 
43
    # 7.16.3.n
44
    +FUNC wint_t fgetwc ( FILE * ) ;
45
    +FUNC wchar_t *fgetws ( wchar_t *, int, FILE * ) ;
46
    +FUNC int fputws ( const wchar_t *, FILE * ) ;
47
    +FUNC wint_t getwc ( FILE * ) ;
48
    +FUNC wint_t getwchar ( void ) ;
49
    +FUNC wint_t ungetwc ( wint_t, FILE * ) ;
50
 
51
    # 7.16.4.1.n
52
    +FUNC double wcstod ( const wchar_t *, wchar_t ** ) ;
53
    +FUNC long wcstol ( const wchar_t *, wchar_t **, int ) ;
54
    +FUNC unsigned long wcstoul ( const wchar_t *, wchar_t **, int ) ;
55
 
56
    # 7.16.4.2.n
57
    +FUNC wchar_t *wcscpy ( wchar_t *, const wchar_t * ) ;
58
    +FUNC wchar_t *wcsncpy ( wchar_t *, const wchar_t *, size_t ) ;
59
 
60
    # 7.16.4.3.n
61
    +FUNC wchar_t *wcscat ( wchar_t *, const wchar_t * ) ;
62
    +FUNC wchar_t *wcsncat ( wchar_t *, const wchar_t *, size_t ) ;
63
 
64
    # 7.16.4.4.n
65
    +FUNC int wcscmp ( const wchar_t *, const wchar_t * ) ;
66
    +FUNC int wcscoll ( const wchar_t *, const wchar_t * ) ;
67
    +FUNC int wcsncmp ( const wchar_t *, const wchar_t *, size_t ) ;
68
    +FUNC size_t wcsxfrm ( wchar_t *, const wchar_t *, size_t ) ;
69
 
70
    # 7.16.4.5.n
71
    +FUNC size_t wcscspn ( const wchar_t *, const wchar_t * ) ;
72
    +FUNC size_t wcsspn ( const wchar_t *, const wchar_t * ) ;
73
    +FUNC size_t wcslen ( const wchar_t * ) ;
74
    +IFNDEF ~protect ( "cpp", "cwchar" )
75
    # These are overloaded in C++
76
    +FUNC wchar_t *wcschr ( const wchar_t *, wchar_t ) ;
77
    +FUNC wchar_t *wcsrchr ( const wchar_t *, wchar_t ) ;
78
    +FUNC wchar_t *wcspbrk ( const wchar_t *, const wchar_t * ) ;
79
    +ENDIF
80
} ;
81
 
82
# 7.16.1
83
+TYPE mbstate_t ;
84
+CONST wchar_t WCHAR_MAX, WCHAR_MIN ;
85
 
86
# 7.16.2.n
87
+FUNC int fwprintf ( FILE *, const wchar_t *, ... ) ;
88
+FUNC int fwscanf ( FILE *, const wchar_t *, ... ) ;
89
+FUNC int wprintf ( const wchar_t *, ... ) ;
90
+FUNC int wscanf ( const wchar_t *, ... ) ;
91
+FUNC int swprintf ( wchar_t *, size_t, const wchar_t *, ... ) ;
92
+FUNC int swscanf ( const wchar_t *, const wchar_t *, ... ) ;
93
+FUNC int vfwprintf ( FILE *, const wchar_t *, ~va_list ) ;
94
+FUNC int vwprintf ( const wchar_t *, ~va_list ) ;
95
+FUNC int vswprintf ( wchar_t *, size_t, const wchar_t *, ~va_list ) ;
96
 
97
# 7.16.3.n
98
+FUNC wint_t fputwc ( wchar_t, FILE * ) ;
99
+FUNC wint_t putwc ( wchar_t, FILE * ) ;
100
+FUNC wint_t putwchar ( wchar_t ) ;
101
+FUNC int fwide ( FILE *, int ) ;
102
 
103
# 7.16.4.5.n
104
+FUNC wchar_t *wcstok ( wchar_t *, const wchar_t *, wchar_t ** ) ;
105
+IFNDEF ~protect ( "cpp", "cwchar" )
106
# These are overloaded in C++
107
+FUNC wchar_t *wcsstr ( const wchar_t *, const wchar_t * ) ;
108
 
109
# 7.16.4.6.n
110
+FUNC wchar_t *wmemchr ( const wchar_t *, wchar_t, size_t ) ;
111
+ENDIF
112
+FUNC int wmemcmp ( const wchar_t *, const wchar_t *, size_t ) ;
113
+FUNC wchar_t *wmemcpy ( wchar_t *, const wchar_t *, size_t ) ;
114
+FUNC wchar_t *wmemmove ( wchar_t *, const wchar_t *, size_t ) ;
115
+FUNC wchar_t *wmemset ( wchar_t *, wchar_t, size_t ) ;
116
 
117
# 7.16.5
118
+FUNC size_t wcsftime ( wchar_t *, size_t, const wchar_t *, const struct tm * ) ;
119
 
120
# 7.16.6.1.n
121
+FUNC wint_t btowc ( int ) ;
122
+FUNC int wctob ( wint_t ) ;
123
 
124
# 7.16.6.2
125
+FUNC int mbsinit ( const mbstate_t * ) ;
126
 
127
# 7.16.6.3.n
128
+FUNC size_t mbrlen ( const char *, size_t, mbstate_t * ) ;
129
+FUNC size_t mbrtowc ( wchar_t *, const char *, size_t, mbstate_t * ) ;
130
+FUNC size_t wcrtomb ( char *, wchar_t, mbstate_t * ) ;
131
 
132
# 7.16.6.4.n
133
+FUNC size_t mbsrtowcs ( wchar_t *, const char **, size_t, mbstate_t * ) ;
134
+FUNC size_t wcsrtombs ( char *, const wchar_t **, size_t, mbstate_t * ) ;