mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 14:51:44 +00:00
[FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces
This commit is contained in:
parent
4b4ffa92f5
commit
34593d933b
952 changed files with 12942 additions and 12942 deletions
2
sdk/lib/3rdparty/stlport/src/_stdio_file.h
vendored
2
sdk/lib/3rdparty/stlport/src/_stdio_file.h
vendored
|
@ -54,7 +54,7 @@ inline int _FILE_fd(const FILE *__f) {
|
|||
}
|
||||
|
||||
/* Normal files. */
|
||||
return (int)::_fileno((FILE*)__f);
|
||||
return (int)::_fileno((FILE*)__f);
|
||||
}
|
||||
|
||||
# elif defined (_STLP_SCO_OPENSERVER) || defined (__NCR_SVR)
|
||||
|
|
|
@ -207,14 +207,14 @@ _Locale_mask_t _WLocale_ctype(struct _Locale_ctype *lctype, wint_t wc, _Locale_m
|
|||
_Locale_mask_t ret = 0;
|
||||
if ((mask & _Locale_ALPHA) != 0 && iswalpha(wc))
|
||||
ret |= _Locale_ALPHA;
|
||||
|
||||
|
||||
if ((mask & _Locale_CNTRL) != 0 && iswcntrl(wc))
|
||||
ret |= _Locale_CNTRL;
|
||||
|
||||
if ((mask & _Locale_DIGIT) != 0 && iswdigit(wc))
|
||||
ret |= _Locale_DIGIT;
|
||||
|
||||
if ((mask & _Locale_PRINT) != 0 && iswprint(wc))
|
||||
if ((mask & _Locale_PRINT) != 0 && iswprint(wc))
|
||||
ret |= _Locale_PRINT;
|
||||
|
||||
if ((mask & _Locale_PUNCT) != 0 && iswpunct(wc))
|
||||
|
|
|
@ -75,7 +75,7 @@ struct _Locale_numeric *_Locale_numeric_create(const char *nm, struct _Locale_na
|
|||
*__err_code = _STLP_LOC_UNKNOWN_NAME;
|
||||
return (struct _Locale_numeric*)newlocale(LC_NUMERIC_MASK, nm, NULL);
|
||||
}
|
||||
|
||||
|
||||
struct _Locale_time *_Locale_time_create(const char *nm, struct _Locale_name_hint* hint,
|
||||
int *__err_code) {
|
||||
*__err_code = _STLP_LOC_UNKNOWN_NAME;
|
||||
|
@ -296,14 +296,14 @@ _Locale_mask_t _WLocale_ctype( struct _Locale_ctype *__loc, wint_t wc, _Locale_m
|
|||
_Locale_mask_t ret = 0;
|
||||
if ((__mask & _Locale_ALPHA) != 0 && iswalpha_l(wc, (locale_t)__loc))
|
||||
ret |= _Locale_ALPHA;
|
||||
|
||||
|
||||
if ((__mask & _Locale_CNTRL) != 0 && iswcntrl_l(wc, (locale_t)__loc))
|
||||
ret |= _Locale_CNTRL;
|
||||
|
||||
if ((__mask & _Locale_DIGIT) != 0 && iswdigit_l(wc, (locale_t)__loc))
|
||||
ret |= _Locale_DIGIT;
|
||||
|
||||
if ((__mask & _Locale_PRINT) != 0 && iswprint_l(wc, (locale_t)__loc))
|
||||
if ((__mask & _Locale_PRINT) != 0 && iswprint_l(wc, (locale_t)__loc))
|
||||
ret |= _Locale_PRINT;
|
||||
|
||||
if ((__mask & _Locale_PUNCT) != 0 && iswpunct_l(wc, (locale_t)__loc))
|
||||
|
|
|
@ -717,7 +717,7 @@ _Locale_time_t* _Locale_time_create(const char * name, _Locale_lcid_t* lc_hint,
|
|||
wchar_t wbuf80[80];
|
||||
|
||||
_Locale_time_t *ltime = (_Locale_time_t*)malloc(sizeof(_Locale_time_t));
|
||||
|
||||
|
||||
if (!ltime) { *__err_code = _STLP_LOC_NO_MEMORY; return ltime; }
|
||||
memset(ltime, 0, sizeof(_Locale_time_t));
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ static bool __is_regular_file(_STLP_fd fd) {
|
|||
BY_HANDLE_FILE_INFORMATION info;
|
||||
|
||||
// Return true if the file handle isn't a directory.
|
||||
return GetFileInformationByHandle(fd, &info) &&
|
||||
return GetFileInformationByHandle(fd, &info) &&
|
||||
((info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -418,7 +418,7 @@ codecvt_byname<wchar_t, char, mbstate_t>::do_length(state_type& state,
|
|||
__count += chars_read;
|
||||
from += chars_read;
|
||||
}
|
||||
return int(__count);
|
||||
return int(__count);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
4
sdk/lib/3rdparty/stlport/src/locale_impl.cpp
vendored
4
sdk/lib/3rdparty/stlport/src/locale_impl.cpp
vendored
|
@ -197,7 +197,7 @@ _Locale_name_hint* _Locale_impl::insert_ctype_facets(const char* &name, char *bu
|
|||
wct = new ctype_byname<wchar_t>(__lwct);
|
||||
}
|
||||
_STLP_UNWIND(_STLP_PRIV __release_ctype(__lwct));
|
||||
|
||||
|
||||
_Locale_codecvt *__lwcvt = _STLP_PRIV __acquire_codecvt(name, buf, hint, &__err_code);
|
||||
if (__lwcvt) {
|
||||
_STLP_TRY {
|
||||
|
@ -478,7 +478,7 @@ _Locale_name_hint* _Locale_impl::insert_monetary_facets(const char* &name, char
|
|||
wpunct = new moneypunct_byname<wchar_t, false>(__wmon);
|
||||
}
|
||||
_STLP_UNWIND(_STLP_PRIV __release_monetary(__wmon));
|
||||
|
||||
|
||||
_Locale_monetary *__wimon = _STLP_PRIV __acquire_monetary(name, buf, hint, &__err_code);
|
||||
if (!__wimon) {
|
||||
delete wpunct;
|
||||
|
|
|
@ -40,7 +40,7 @@ struct _Catalog_locale_map {
|
|||
locale lookup(nl_catd_type key) const;
|
||||
void erase(nl_catd_type key);
|
||||
|
||||
typedef hash_map<nl_catd_type, locale, hash<nl_catd_type>, equal_to<nl_catd_type>,
|
||||
typedef hash_map<nl_catd_type, locale, hash<nl_catd_type>, equal_to<nl_catd_type>,
|
||||
allocator<pair<_STLP_CONST nl_catd_type, locale> > > map_type;
|
||||
map_type *M;
|
||||
|
||||
|
@ -128,8 +128,8 @@ public:
|
|||
wstring do_get(catalog __c, int __set, int __msgid,
|
||||
const wstring& __dfault) const;
|
||||
#endif
|
||||
void do_close(catalog __c) const;
|
||||
~_Messages();
|
||||
void do_close(catalog __c) const;
|
||||
~_Messages();
|
||||
|
||||
private:
|
||||
_Locale_messages* _M_message_obj;
|
||||
|
|
|
@ -401,7 +401,7 @@ static void __fill_fmtbuf(char* fmtbuf, ios_base::fmtflags flags, char long_modi
|
|||
static char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) {
|
||||
// If long double value can be safely converted to double without losing precision
|
||||
// we use the ecvt function for double:
|
||||
double y = __STATIC_CAST(double, x);
|
||||
double y = __STATIC_CAST(double, x);
|
||||
if (x == y)
|
||||
return _Stl_ecvtR(y, n, pt, sign, buf);
|
||||
|
||||
|
@ -796,7 +796,7 @@ static size_t __write_floatT(__iostring &buf, ios_base::fmtflags flags, int pre
|
|||
case ios_base::fixed:
|
||||
{
|
||||
/* Here, number of digits represents digits _after_ decimal point.
|
||||
* In order to limit static buffer size we have to give 2 different values depending on x value.
|
||||
* In order to limit static buffer size we have to give 2 different values depending on x value.
|
||||
* For small values (abs(x) < 1) we need as many digits as requested by precision limited by the maximum number of digits
|
||||
* which is min_exponent10 + digits10 + 2
|
||||
* For bigger values we won't have more than limits::digits10 + 2 digits after decimal point. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue