mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[CRT]
Improve code readability a bit svn path=/trunk/; revision=50354
This commit is contained in:
parent
500a89ae51
commit
0b68bdaf30
|
@ -14,12 +14,17 @@
|
|||
#include <float.h>
|
||||
|
||||
#ifdef _UNICODE
|
||||
#define streamout wstreamout
|
||||
#define format_float format_floatw
|
||||
#define _flsbuf _flswbuf
|
||||
# define streamout wstreamout
|
||||
# define format_float format_floatw
|
||||
# define _flsbuf _flswbuf
|
||||
int __cdecl _flswbuf(int ch, FILE *stream);
|
||||
#endif
|
||||
|
||||
#ifdef _LIBCNT_
|
||||
# undef _flsbuf
|
||||
# define _flsbuf(chr, stream) _TEOF
|
||||
#endif
|
||||
|
||||
#define MB_CUR_MAX 10
|
||||
#define BUFFER_SIZE (32 + 17)
|
||||
|
||||
|
@ -69,11 +74,6 @@ enum
|
|||
(flags & FLAG_LONGDOUBLE) ? va_arg(argptr, long double) : \
|
||||
va_arg(argptr, double)
|
||||
|
||||
#ifdef _LIBCNT_
|
||||
# undef _flsbuf
|
||||
# define _flsbuf(chr, stream) _TEOF
|
||||
#endif
|
||||
|
||||
#define get_exp(f) floor(f == 0 ? 0 : (f >= 0 ? log10(f) : log10(-f)))
|
||||
#define round(x) floor((x) + 0.5)
|
||||
|
||||
|
|
Loading…
Reference in a new issue