crt: tidy-up wctrans.c

Fix inconsistent use of tabs and spaces in the comments.
Remove trailing whitespace.

Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/misc/wctrans.c b/mingw-w64-crt/misc/wctrans.c
index a45bbf1..1888d84 100644
--- a/mingw-w64-crt/misc/wctrans.c
+++ b/mingw-w64-crt/misc/wctrans.c
@@ -4,51 +4,50 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 /*
-   wctrans.c 
-   7.25.3.2 Extensible wide-character case mapping functions
+  wctrans.c
+  7.25.3.2 Extensible wide-character case mapping functions
 
-   Contributed by: Danny Smith  <dannysmith@usesr.sourcefoge.net>
-   		   2005-02-24
-   
+  Contributed by: Danny Smith  <dannysmith@usesr.sourcefoge.net>
+  2005-02-24
+
   This source code is placed in the PUBLIC DOMAIN. It is modified
-  from the Q8 package created by Doug Gwyn <gwyn@arl.mil>  
-
+  from the Q8 package created by Doug Gwyn <gwyn@arl.mil>
  */
 
+#include <stdlib.h>
 #include <string.h>
 #include <wctype.h>
 
 /*
-   This differs from the MS implementation of wctrans which
-   returns 0 for tolower and 1 for toupper.  According to
-   C99, a 0 return value indicates invalid input.
+  These two function go in the same translation unit so that we
+  can ensure that
 
-   These two function go in the same translation unit so that we
-   can ensure that
-     towctrans(wc, wctrans("tolower")) == towlower(wc) 
-     towctrans(wc, wctrans("toupper")) == towupper(wc)
-   It also ensures that
-     towctrans(wc, wctrans("")) == wc
-   which is not required by standard.
+    towctrans(wc, wctrans("tolower")) == towlower(wc)
+    towctrans(wc, wctrans("toupper")) == towupper(wc)
+
+  It also ensures that
+
+    towctrans(wc, wctrans("")) == wc
+
+  which is not required by standard.
 */
 
 static const struct {
   const char *name;
-  wctrans_t val; } tmap[] = {
-    {"tolower", _LOWER},
-    {"toupper", _UPPER}
- };
-
-#define	NTMAP	(sizeof tmap / sizeof tmap[0])
+  wctrans_t val;
+} tmap[] = {
+  {"tolower", _LOWER},
+  {"toupper", _UPPER}
+};
 
 wctrans_t
 wctrans (const char* property)
 {
   int i;
-  for ( i = 0; i < (int) NTMAP; ++i )
+  for (i = 0; i < (int) _countof (tmap); ++i)
     if (strcmp (property, tmap[i].name) == 0)
       return tmap[i].val;
-   return 0;
+  return 0;
 }
 
 wint_t towctrans (wint_t wc, wctrans_t desc)
@@ -61,7 +60,7 @@
       return towupper (wc);
     default:
       return wc;
-   }
+    }
 }
 
 wctrans_t (__cdecl *__MINGW_IMP_SYMBOL (wctrans)) (const char *) = wctrans;