From 35a40ceee18fdbcbd01adb630ac7427f27da5e27 Mon Sep 17 00:00:00 2001
From: Nadav Har'El <nyh@cloudius-systems.com>
Date: Wed, 21 May 2014 23:59:35 +0300
Subject: [PATCH] Reindent __newlocale()

The __newlocale() function in runtime.cc used a mixture of spaces and
tabs. Reindent it, with no changes to actual content (that would come
later).

Reviewed-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
---
 runtime.cc | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/runtime.cc b/runtime.cc
index 0bd03d3eb..590b6335c 100644
--- a/runtime.cc
+++ b/runtime.cc
@@ -268,28 +268,28 @@ __locale_t __newlocale(int category_mask, const char *locale, locale_t base)
     __THROW
 {
     if (category_mask == 1 << LC_ALL) {
-	category_mask = ((1 << __LC_LAST) - 1) & ~(1 << LC_ALL);
+        category_mask = ((1 << __LC_LAST) - 1) & ~(1 << LC_ALL);
     }
     assert(locale);
     if (base == &c_locale) {
-	base = NULL;
+        base = NULL;
     }
     if ((base == NULL || all_categories(category_mask))
-	&& (category_mask == 0 || strcmp(locale, "C") == 0)) {
-	return &c_locale;
+            && (category_mask == 0 || strcmp(locale, "C") == 0)) {
+        return &c_locale;
     }
     struct __locale_struct result = base ? *base : c_locale;
     if (category_mask == 0) {
-	auto result_ptr = new __locale_struct;
-	*result_ptr = result;
-	auto ctypes = result_ptr->__locales[LC_CTYPE]->values;
-	result_ptr->__ctype_b = (const unsigned short *)
-	    ctypes[_NL_ITEM_INDEX(_NL_CTYPE_CLASS)] + 128;
-	result_ptr->__ctype_tolower = (const int *)
-	    ctypes[_NL_ITEM_INDEX(_NL_CTYPE_TOLOWER)] + 128;
-	result_ptr->__ctype_toupper = (const int *)
-	    ctypes[_NL_ITEM_INDEX(_NL_CTYPE_TOUPPER)] + 128;
-	return result_ptr;
+        auto result_ptr = new __locale_struct;
+        *result_ptr = result;
+        auto ctypes = result_ptr->__locales[LC_CTYPE]->values;
+        result_ptr->__ctype_b = (const unsigned short *)
+	            ctypes[_NL_ITEM_INDEX(_NL_CTYPE_CLASS)] + 128;
+        result_ptr->__ctype_tolower = (const int *)
+	            ctypes[_NL_ITEM_INDEX(_NL_CTYPE_TOLOWER)] + 128;
+        result_ptr->__ctype_toupper = (const int *)
+	            ctypes[_NL_ITEM_INDEX(_NL_CTYPE_TOUPPER)] + 128;
+        return result_ptr;
     }
     abort();
 }
-- 
GitLab