This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Trivial cosmetic changes to locale.cc


Hi,

just a few cosmetic changes to locale.cc. Tested x86-linux.

Ciao,
Paolo.

///////////



2002-11-24  Paolo Carlini  <pcarlini@unitus.it>

	* src/locale.cc (locale::locale(const char*)):
	Trivial cosmetic tweaks.
--- locale.cc.~1.70.~	2002-11-13 15:55:32.000000000 +0100
+++ locale.cc	2002-11-24 19:32:33.000000000 +0100
@@ -208,9 +208,8 @@
 		// different from LANG.
 		size_t __i = 0;
 		if (strcmp(__res, "C") == 0)
-		  for (__i = 0; 
-		       __i < _S_categories_size + _S_extra_categories_size; 
-		       ++__i)
+		  for (; __i < _S_categories_size
+			 + _S_extra_categories_size; ++__i)
 		    {
 		      __env = getenv(_S_categories[__i]);
 		      if (__env && strcmp(__env, "") != 0 
@@ -219,9 +218,8 @@
 			break;
 		    }
 		else
-		  for (__i = 0; 
-		       __i < _S_categories_size + _S_extra_categories_size; 
-		       ++__i)
+		  for (; __i < _S_categories_size
+			 + _S_extra_categories_size; ++__i)
 		    {
 		      __env = getenv(_S_categories[__i]);
 		      if (__env && strcmp(__env, "") != 0 
@@ -253,9 +251,9 @@
 			if (!__env || strcmp(__env, "") == 0)
 			  {
 			    __str += _S_categories[__i];
-			    __str += '=';
+			    __str += "=";
 			    __str += __res;
-			    __str += ';';
+			    __str += ";";
 			  }
 			else if (strcmp(__env, "C") == 0
 				 || strcmp(__env, "POSIX") == 0)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]