svn commit: trunk/uClibc/libc/stdio

aldot at uclibc.org aldot at uclibc.org
Sat Jan 20 18:32:25 UTC 2007


Author: aldot
Date: 2007-01-20 10:32:10 -0800 (Sat, 20 Jan 2007)
New Revision: 17398

Log:
- Trim superfluous trailing whitespace. No obj-code changes.


Modified:
   trunk/uClibc/libc/stdio/_scanf.c


Changeset:
Modified: trunk/uClibc/libc/stdio/_scanf.c
===================================================================
--- trunk/uClibc/libc/stdio/_scanf.c	2007-01-20 16:54:19 UTC (rev 17397)
+++ trunk/uClibc/libc/stdio/_scanf.c	2007-01-20 18:32:10 UTC (rev 17398)
@@ -271,7 +271,7 @@
 
 	/* Set these last since __bufgetc initialization depends on
 	 * __user_locking and only gets set if user locking is on. */
-	f.__bufstart = 
+	f.__bufstart =
 	f.__bufpos = (unsigned char *) ((void *) sp);
 	f.__bufread =
 	f.__bufend = f.__bufstart + strlen(sp);
@@ -506,7 +506,7 @@
 	FLAG_THOUSANDS	=	0x20,
 	FLAG_I18N		=	0x40,	/* only works for d, i, u */
 	FLAG_MALLOC     =   0x80,	/* only works for s, S, and [ (and l[)*/
-};	  
+};
 
 
 #define SPEC_RANGES		{ CONV_n, CONV_p, CONV_i, CONV_A, \
@@ -1024,7 +1024,7 @@
 		__set_errno(EILSEQ);		/* In case of incomplete conversion. */
 		sc->mb_fail = 1;
 	}
-	
+
  SUCCESS:
 	sc->width = width;			/* Restore width. */
 
@@ -1366,7 +1366,7 @@
 
 			if (psfs.conv_num == CONV_percent) {
 				goto MATCH_CHAR;
- 			}
+			}
 
 			if (psfs.conv_num == CONV_n) {
 #ifdef __UCLIBC_MJN3_ONLY__
@@ -1410,7 +1410,6 @@
 			{
 				b = (psfs.store ? ((unsigned char *) psfs.cur_ptr) : buf);
 				fail = 1;
-			
 
 				if (psfs.conv_num == CONV_c) {
 					if (sc.width == INT_MAX) {
@@ -1451,7 +1450,7 @@
 					if (*++fmt == '^') {
 						++fmt;
 						invert = 1;
- 					}
+					}
 					memset(scanset, invert, sizeof(scanset));
 					invert = 1-invert;
 
@@ -1519,7 +1518,7 @@
 
 				wb = (psfs.store ? ((wchar_t *) psfs.cur_ptr) : wbuf);
 				fail = 1;
-			
+
 				if (psfs.conv_num == CONV_C) {
 					if (sc.width == INT_MAX) {
 						sc.width = 1;
@@ -1796,7 +1795,6 @@
 	unsigned char usflag, base;
 	unsigned char nonzero = 0;
 	unsigned char seendigit = 0;
-	
 
 #ifdef __UCLIBC_MJN3_ONLY__
 #warning CONSIDER: What should be returned for an invalid conversion specifier?
@@ -2210,7 +2208,7 @@
 		assert(seendigit);
 		seendigit = 0;
 		nonzero = 0;
-		
+
 		if (sc->cc == '0') {
 			seendigit = 1;
 			*b++ = '0';
@@ -2226,7 +2224,7 @@
 			}
 			__scan_getc(sc);
 		}
-			
+
 		if (!seendigit) {		/* No digits.  Unrecoverable. */
 			goto DONE_DO_UNGET;
 		}




More information about the uClibc-cvs mailing list