Version: SMASH-3.1
deprecate_c_functions.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright (c) 2014-2015,2017-2020
4
* SMASH Team
5
*
6
* GNU General Public License (GPLv3 or later)
7
*
8
*/
9
10
#ifndef SRC_INCLUDE_SMASH_DEPRECATE_C_FUNCTIONS_H_
11
#define SRC_INCLUDE_SMASH_DEPRECATE_C_FUNCTIONS_H_
12
19
#include <cctype>
20
#include <clocale>
21
#include <cmath>
22
#include <csetjmp>
23
#include <csignal>
24
#include <cstdio>
25
#include <cstdlib>
26
#include <cstring>
27
#include <ctime>
28
#include <cwchar>
29
#include <cwctype>
30
31
#include "
forwarddeclarations.h
"
32
#include "
macros.h
"
33
34
namespace
smash
{
35
53
#define SMASH_DEPRECATE_NONSTD(fun__) \
54
template <typename... Ts> \
55
SMASH_DEPRECATED("Please add the std:: namespace for this function."
) \
56
auto fun__(Ts&&... args)->decltype(std::fun__(args...)) { \
57
return std::fun__(args...); \
58
}
59
SMASH_DEPRECATE_NONSTD
(abort)
60
SMASH_DEPRECATE_NONSTD
(abs)
61
SMASH_DEPRECATE_NONSTD
(acos)
62
SMASH_DEPRECATE_NONSTD
(acosh)
63
SMASH_DEPRECATE_NONSTD
(asctime)
64
SMASH_DEPRECATE_NONSTD
(asin)
65
SMASH_DEPRECATE_NONSTD
(asinh)
66
SMASH_DEPRECATE_NONSTD
(atan)
67
SMASH_DEPRECATE_NONSTD
(atan2)
68
SMASH_DEPRECATE_NONSTD
(atanh)
69
SMASH_DEPRECATE_NONSTD
(atexit)
70
SMASH_DEPRECATE_NONSTD
(atof)
71
SMASH_DEPRECATE_NONSTD
(atoi)
72
SMASH_DEPRECATE_NONSTD
(atol)
73
SMASH_DEPRECATE_NONSTD
(bsearch)
74
SMASH_DEPRECATE_NONSTD
(btowc)
75
SMASH_DEPRECATE_NONSTD
(calloc)
76
SMASH_DEPRECATE_NONSTD
(cbrt)
77
SMASH_DEPRECATE_NONSTD
(ceil)
78
SMASH_DEPRECATE_NONSTD
(clearerr)
79
SMASH_DEPRECATE_NONSTD
(clock)
80
SMASH_DEPRECATE_NONSTD
(copysign)
81
SMASH_DEPRECATE_NONSTD
(cos)
82
SMASH_DEPRECATE_NONSTD
(cosh)
83
SMASH_DEPRECATE_NONSTD
(ctime)
84
SMASH_DEPRECATE_NONSTD
(difftime)
85
SMASH_DEPRECATE_NONSTD
(div)
86
SMASH_DEPRECATE_NONSTD
(erf)
87
SMASH_DEPRECATE_NONSTD
(erfc)
88
SMASH_DEPRECATE_NONSTD
(exit)
89
SMASH_DEPRECATE_NONSTD
(exp)
90
SMASH_DEPRECATE_NONSTD
(exp2)
91
SMASH_DEPRECATE_NONSTD
(expm1)
92
SMASH_DEPRECATE_NONSTD
(fabs)
93
SMASH_DEPRECATE_NONSTD
(fclose)
94
SMASH_DEPRECATE_NONSTD
(fdim)
95
SMASH_DEPRECATE_NONSTD
(feof)
96
SMASH_DEPRECATE_NONSTD
(ferror)
97
SMASH_DEPRECATE_NONSTD
(fflush)
98
SMASH_DEPRECATE_NONSTD
(fgetc)
99
SMASH_DEPRECATE_NONSTD
(fgetpos)
100
SMASH_DEPRECATE_NONSTD
(fgets)
101
SMASH_DEPRECATE_NONSTD
(fgetwc)
102
SMASH_DEPRECATE_NONSTD
(fgetws)
103
SMASH_DEPRECATE_NONSTD
(floor)
104
SMASH_DEPRECATE_NONSTD
(fma)
105
SMASH_DEPRECATE_NONSTD
(fmax)
106
SMASH_DEPRECATE_NONSTD
(fmin)
107
SMASH_DEPRECATE_NONSTD
(fmod)
108
SMASH_DEPRECATE_NONSTD
(
fopen
)
109
SMASH_DEPRECATE_NONSTD
(fpclassify)
110
SMASH_DEPRECATE_NONSTD
(fprintf)
111
SMASH_DEPRECATE_NONSTD
(fputc)
112
SMASH_DEPRECATE_NONSTD
(fputs)
113
SMASH_DEPRECATE_NONSTD
(fputwc)
114
SMASH_DEPRECATE_NONSTD
(fputws)
115
SMASH_DEPRECATE_NONSTD
(fread)
116
SMASH_DEPRECATE_NONSTD
(free)
117
SMASH_DEPRECATE_NONSTD
(freopen)
118
SMASH_DEPRECATE_NONSTD
(frexp)
119
SMASH_DEPRECATE_NONSTD
(fscanf)
120
SMASH_DEPRECATE_NONSTD
(fseek)
121
SMASH_DEPRECATE_NONSTD
(fsetpos)
122
SMASH_DEPRECATE_NONSTD
(ftell)
123
SMASH_DEPRECATE_NONSTD
(fwide)
124
SMASH_DEPRECATE_NONSTD
(fwprintf)
125
SMASH_DEPRECATE_NONSTD
(fwrite)
126
SMASH_DEPRECATE_NONSTD
(fwscanf)
127
SMASH_DEPRECATE_NONSTD
(getc)
128
SMASH_DEPRECATE_NONSTD
(getchar)
129
SMASH_DEPRECATE_NONSTD
(getenv)
130
SMASH_DEPRECATE_NONSTD
(getwc)
131
SMASH_DEPRECATE_NONSTD
(getwchar)
132
SMASH_DEPRECATE_NONSTD
(gmtime)
133
SMASH_DEPRECATE_NONSTD
(hypot)
134
SMASH_DEPRECATE_NONSTD
(ilogb)
135
SMASH_DEPRECATE_NONSTD
(isalnum)
136
SMASH_DEPRECATE_NONSTD
(isalpha)
137
SMASH_DEPRECATE_NONSTD
(iscntrl)
138
SMASH_DEPRECATE_NONSTD
(isdigit)
139
SMASH_DEPRECATE_NONSTD
(isfinite)
140
SMASH_DEPRECATE_NONSTD
(isgraph)
141
SMASH_DEPRECATE_NONSTD
(isgreater)
142
SMASH_DEPRECATE_NONSTD
(isgreaterequal)
143
SMASH_DEPRECATE_NONSTD
(isinf)
144
SMASH_DEPRECATE_NONSTD
(isless)
145
SMASH_DEPRECATE_NONSTD
(islessequal)
146
SMASH_DEPRECATE_NONSTD
(islessgreater)
147
SMASH_DEPRECATE_NONSTD
(islower)
148
SMASH_DEPRECATE_NONSTD
(isnan)
149
SMASH_DEPRECATE_NONSTD
(isnormal)
150
SMASH_DEPRECATE_NONSTD
(isprint)
151
SMASH_DEPRECATE_NONSTD
(ispunct)
152
SMASH_DEPRECATE_NONSTD
(isspace)
153
SMASH_DEPRECATE_NONSTD
(isunordered)
154
SMASH_DEPRECATE_NONSTD
(isupper)
155
SMASH_DEPRECATE_NONSTD
(iswalnum)
156
SMASH_DEPRECATE_NONSTD
(iswalpha)
157
SMASH_DEPRECATE_NONSTD
(iswcntrl)
158
SMASH_DEPRECATE_NONSTD
(iswctype)
159
SMASH_DEPRECATE_NONSTD
(iswdigit)
160
SMASH_DEPRECATE_NONSTD
(iswgraph)
161
SMASH_DEPRECATE_NONSTD
(iswlower)
162
SMASH_DEPRECATE_NONSTD
(iswprint)
163
SMASH_DEPRECATE_NONSTD
(iswpunct)
164
SMASH_DEPRECATE_NONSTD
(iswspace)
165
SMASH_DEPRECATE_NONSTD
(iswupper)
166
SMASH_DEPRECATE_NONSTD
(iswxdigit)
167
SMASH_DEPRECATE_NONSTD
(isxdigit)
168
SMASH_DEPRECATE_NONSTD
(labs)
169
SMASH_DEPRECATE_NONSTD
(ldexp)
170
SMASH_DEPRECATE_NONSTD
(ldiv)
171
SMASH_DEPRECATE_NONSTD
(lgamma)
172
SMASH_DEPRECATE_NONSTD
(llrint)
173
SMASH_DEPRECATE_NONSTD
(llround)
174
SMASH_DEPRECATE_NONSTD
(localeconv)
175
SMASH_DEPRECATE_NONSTD
(localtime)
176
SMASH_DEPRECATE_NONSTD
(log)
177
SMASH_DEPRECATE_NONSTD
(log10)
178
SMASH_DEPRECATE_NONSTD
(log1p)
179
SMASH_DEPRECATE_NONSTD
(log2)
180
SMASH_DEPRECATE_NONSTD
(logb)
181
SMASH_DEPRECATE_NONSTD
(longjmp)
182
SMASH_DEPRECATE_NONSTD
(lrint)
183
SMASH_DEPRECATE_NONSTD
(lround)
184
SMASH_DEPRECATE_NONSTD
(malloc)
185
SMASH_DEPRECATE_NONSTD
(mblen)
186
SMASH_DEPRECATE_NONSTD
(mbrlen)
187
SMASH_DEPRECATE_NONSTD
(mbrtowc)
188
SMASH_DEPRECATE_NONSTD
(mbsinit)
189
SMASH_DEPRECATE_NONSTD
(mbsrtowcs)
190
SMASH_DEPRECATE_NONSTD
(mbstowcs)
191
SMASH_DEPRECATE_NONSTD
(mbtowc)
192
SMASH_DEPRECATE_NONSTD
(memchr)
193
SMASH_DEPRECATE_NONSTD
(memcmp)
194
SMASH_DEPRECATE_NONSTD
(memcpy)
195
SMASH_DEPRECATE_NONSTD
(memmove)
196
SMASH_DEPRECATE_NONSTD
(memset)
197
SMASH_DEPRECATE_NONSTD
(mktime)
198
SMASH_DEPRECATE_NONSTD
(modf)
199
SMASH_DEPRECATE_NONSTD
(nan)
200
SMASH_DEPRECATE_NONSTD
(nanf)
201
SMASH_DEPRECATE_NONSTD
(nanl)
202
SMASH_DEPRECATE_NONSTD
(nearbyint)
203
SMASH_DEPRECATE_NONSTD
(nextafter)
204
SMASH_DEPRECATE_NONSTD
(nexttoward)
205
SMASH_DEPRECATE_NONSTD
(perror)
206
SMASH_DEPRECATE_NONSTD
(pow)
207
SMASH_DEPRECATE_NONSTD
(printf)
208
SMASH_DEPRECATE_NONSTD
(putc)
209
SMASH_DEPRECATE_NONSTD
(putchar)
210
SMASH_DEPRECATE_NONSTD
(puts)
211
SMASH_DEPRECATE_NONSTD
(putwc)
212
SMASH_DEPRECATE_NONSTD
(putwchar)
213
SMASH_DEPRECATE_NONSTD
(qsort)
214
SMASH_DEPRECATE_NONSTD
(
raise
)
215
SMASH_DEPRECATE_NONSTD
(rand)
216
SMASH_DEPRECATE_NONSTD
(realloc)
217
SMASH_DEPRECATE_NONSTD
(remainder)
218
SMASH_DEPRECATE_NONSTD
(remove)
219
SMASH_DEPRECATE_NONSTD
(remquo)
220
SMASH_DEPRECATE_NONSTD
(rename)
221
SMASH_DEPRECATE_NONSTD
(rewind)
222
SMASH_DEPRECATE_NONSTD
(rint)
223
SMASH_DEPRECATE_NONSTD
(round)
224
SMASH_DEPRECATE_NONSTD
(scalbln)
225
SMASH_DEPRECATE_NONSTD
(scalbn)
226
SMASH_DEPRECATE_NONSTD
(scanf)
227
SMASH_DEPRECATE_NONSTD
(setbuf)
228
SMASH_DEPRECATE_NONSTD
(setlocale)
229
SMASH_DEPRECATE_NONSTD
(setvbuf)
230
SMASH_DEPRECATE_NONSTD
(signal)
231
SMASH_DEPRECATE_NONSTD
(signbit)
232
SMASH_DEPRECATE_NONSTD
(sin)
233
SMASH_DEPRECATE_NONSTD
(sinh)
234
SMASH_DEPRECATE_NONSTD
(sprintf)
235
SMASH_DEPRECATE_NONSTD
(sqrt)
236
SMASH_DEPRECATE_NONSTD
(srand)
237
SMASH_DEPRECATE_NONSTD
(sscanf)
238
SMASH_DEPRECATE_NONSTD
(strcat)
239
SMASH_DEPRECATE_NONSTD
(strchr)
240
SMASH_DEPRECATE_NONSTD
(strcmp)
241
SMASH_DEPRECATE_NONSTD
(strcoll)
242
SMASH_DEPRECATE_NONSTD
(strcpy)
243
SMASH_DEPRECATE_NONSTD
(strcspn)
244
SMASH_DEPRECATE_NONSTD
(strerror)
245
SMASH_DEPRECATE_NONSTD
(strftime)
246
SMASH_DEPRECATE_NONSTD
(strlen)
247
SMASH_DEPRECATE_NONSTD
(strncat)
248
SMASH_DEPRECATE_NONSTD
(strncmp)
249
SMASH_DEPRECATE_NONSTD
(strncpy)
250
SMASH_DEPRECATE_NONSTD
(strpbrk)
251
SMASH_DEPRECATE_NONSTD
(strrchr)
252
SMASH_DEPRECATE_NONSTD
(strspn)
253
SMASH_DEPRECATE_NONSTD
(strstr)
254
SMASH_DEPRECATE_NONSTD
(strtod)
255
SMASH_DEPRECATE_NONSTD
(strtok)
256
SMASH_DEPRECATE_NONSTD
(strtol)
257
SMASH_DEPRECATE_NONSTD
(strtoul)
258
SMASH_DEPRECATE_NONSTD
(strxfrm)
259
SMASH_DEPRECATE_NONSTD
(swprintf)
260
SMASH_DEPRECATE_NONSTD
(swscanf)
261
SMASH_DEPRECATE_NONSTD
(system)
262
SMASH_DEPRECATE_NONSTD
(tan)
263
SMASH_DEPRECATE_NONSTD
(tanh)
264
SMASH_DEPRECATE_NONSTD
(tgamma)
265
SMASH_DEPRECATE_NONSTD
(time)
266
SMASH_DEPRECATE_NONSTD
(tmpfile)
267
SMASH_DEPRECATE_NONSTD
(tmpnam)
268
SMASH_DEPRECATE_NONSTD
(tolower)
269
SMASH_DEPRECATE_NONSTD
(toupper)
270
SMASH_DEPRECATE_NONSTD
(towctrans)
271
SMASH_DEPRECATE_NONSTD
(towlower)
272
SMASH_DEPRECATE_NONSTD
(towupper)
273
SMASH_DEPRECATE_NONSTD
(trunc)
274
SMASH_DEPRECATE_NONSTD
(ungetc)
275
SMASH_DEPRECATE_NONSTD
(ungetwc)
276
SMASH_DEPRECATE_NONSTD
(vfprintf)
277
SMASH_DEPRECATE_NONSTD
(vfwprintf)
278
SMASH_DEPRECATE_NONSTD
(vprintf)
279
SMASH_DEPRECATE_NONSTD
(vsprintf)
280
SMASH_DEPRECATE_NONSTD
(vswprintf)
281
SMASH_DEPRECATE_NONSTD
(vwprintf)
282
SMASH_DEPRECATE_NONSTD
(wcrtomb)
283
SMASH_DEPRECATE_NONSTD
(wcscat)
284
SMASH_DEPRECATE_NONSTD
(wcschr)
285
SMASH_DEPRECATE_NONSTD
(wcscmp)
286
SMASH_DEPRECATE_NONSTD
(wcscoll)
287
SMASH_DEPRECATE_NONSTD
(wcscpy)
288
SMASH_DEPRECATE_NONSTD
(wcscspn)
289
SMASH_DEPRECATE_NONSTD
(wcsftime)
290
SMASH_DEPRECATE_NONSTD
(wcslen)
291
SMASH_DEPRECATE_NONSTD
(wcsncat)
292
SMASH_DEPRECATE_NONSTD
(wcsncmp)
293
SMASH_DEPRECATE_NONSTD
(wcsncpy)
294
SMASH_DEPRECATE_NONSTD
(wcspbrk)
295
SMASH_DEPRECATE_NONSTD
(wcsrchr)
296
SMASH_DEPRECATE_NONSTD
(wcsrtombs)
297
SMASH_DEPRECATE_NONSTD
(wcsspn)
298
SMASH_DEPRECATE_NONSTD
(wcsstr)
299
SMASH_DEPRECATE_NONSTD
(wcstod)
300
SMASH_DEPRECATE_NONSTD
(wcstok)
301
SMASH_DEPRECATE_NONSTD
(wcstol)
302
SMASH_DEPRECATE_NONSTD
(wcstombs)
303
SMASH_DEPRECATE_NONSTD
(wcstoul)
304
SMASH_DEPRECATE_NONSTD
(wcsxfrm)
305
SMASH_DEPRECATE_NONSTD
(wctob)
306
SMASH_DEPRECATE_NONSTD
(wctomb)
307
SMASH_DEPRECATE_NONSTD
(wctrans)
308
SMASH_DEPRECATE_NONSTD
(wctype)
309
SMASH_DEPRECATE_NONSTD
(wmemchr)
310
SMASH_DEPRECATE_NONSTD
(wmemcmp)
311
SMASH_DEPRECATE_NONSTD
(wmemcpy)
312
SMASH_DEPRECATE_NONSTD
(wmemmove)
313
SMASH_DEPRECATE_NONSTD
(wmemset)
314
SMASH_DEPRECATE_NONSTD
(wprintf)
315
SMASH_DEPRECATE_NONSTD
(wscanf)
316
#undef SMASH_DEPRECATE_NONSTD
317
318
}
// namespace smash
319
320
#endif
// SRC_INCLUDE_SMASH_DEPRECATE_C_FUNCTIONS_H_
SMASH_DEPRECATE_NONSTD
#define SMASH_DEPRECATE_NONSTD(fun__)
This macro is used to define functions that are in the C library and in the std namespace.
Definition:
deprecate_c_functions.h:53
forwarddeclarations.h
macros.h
smash
Definition:
action.h:24
smash::fopen
FilePtr fopen(const std::filesystem::path &filename, const std::string &mode)
Open a file with given mode.
Definition:
file.cc:14
src
include
smash
deprecate_c_functions.h
Impressum
Data privacy protection
Generated on Mon Feb 26 2024 14:05:12 for SMASH Development Documentation by
Doxygen
1.9.1