- Replace 'while(' with 'while ('.
---
 src/flash/avrf.c                         |    6 +-
 src/flash/pic32mx.c                      |    2 
 src/flash/stellaris.c                    |    6 +-
 src/flash/str7x.c                        |    2 
 src/flash/str9x.c                        |    2 
 src/flash/str9xpec.c                     |   10 +--
 src/helper/command.c                     |    8 +-
 src/helper/jim-eventloop.c               |   14 ++---
 src/helper/jim.c                         |   86 +++++++++++++++----------------
 src/helper/jim.h                         |   10 +--
 src/jtag/core.c                          |    4 -
 src/jtag/interface.c                     |    2 
 src/jtag/rlink/rlink.c                   |   22 +++----
 src/jtag/tcl.c                           |    6 +-
 src/server/server.c                      |    8 +-
 src/target/arm11_dbgtap.c                |    2 
 src/target/cortex_m3.c                   |    4 -
 src/target/mips32_dmaacc.c               |   12 ++--
 src/target/mips_m4k.c                    |    2 
 src/target/target.c                      |   26 ++++-----
 src/xsvf/xsvf.c                          |    2 
 testing/examples/PIC32/BlinkingLeds.c    |    2 
 testing/examples/ledtest-imx27ads/test.c |    4 -
 testing/examples/ledtest-imx31pdk/test.c |    6 +-
 24 files changed, 124 insertions(+), 124 deletions(-)
- Replace 'while(' with 'while ('.
---
 src/flash/avrf.c                         |    6 +-
 src/flash/pic32mx.c                      |    2 
 src/flash/stellaris.c                    |    6 +-
 src/flash/str7x.c                        |    2 
 src/flash/str9x.c                        |    2 
 src/flash/str9xpec.c                     |   10 +--
 src/helper/command.c                     |    8 +-
 src/helper/jim-eventloop.c               |   14 ++---
 src/helper/jim.c                         |   86 +++++++++++++++----------------
 src/helper/jim.h                         |   10 +--
 src/jtag/core.c                          |    4 -
 src/jtag/interface.c                     |    2 
 src/jtag/rlink/rlink.c                   |   22 +++----
 src/jtag/tcl.c                           |    6 +-
 src/server/server.c                      |    8 +-
 src/target/arm11_dbgtap.c                |    2 
 src/target/cortex_m3.c                   |    4 -
 src/target/mips32_dmaacc.c               |   12 ++--
 src/target/mips_m4k.c                    |    2 
 src/target/target.c                      |   26 ++++-----
 src/xsvf/xsvf.c                          |    2 
 testing/examples/PIC32/BlinkingLeds.c    |    2 
 testing/examples/ledtest-imx27ads/test.c |    4 -
 testing/examples/ledtest-imx31pdk/test.c |    6 +-
 24 files changed, 124 insertions(+), 124 deletions(-)
======
diff -u src/helper/command.c src/helper/command.c
--- src/helper/command.c	(working copy)
+++ src/helper/command.c	(working copy)
@@ -269,11 +269,11 @@
 	if (context == NULL)
 		return ERROR_OK;
 
-	while(NULL != context->commands)
+	while (NULL != context->commands)
 	{
 		c = context->commands;
 
-		while(NULL != c->children)
+		while (NULL != c->children)
 		{
 			c2 = c->children;
 			c->children = c->children->next;
@@ -304,7 +304,7 @@
 	/* find command */
 	c = context->commands;
 
-	while(NULL != c)
+	while (NULL != c)
 	{
 		if (strcmp(name, c->name) == 0)
 		{
@@ -320,7 +320,7 @@
 			}
 
 			/* unregister children */
-			while(NULL != c->children)
+			while (NULL != c->children)
 			{
 				c2 = c->children;
 				c->children = c->children->next;
diff -u src/helper/jim.c src/helper/jim.c
--- src/helper/jim.c	(working copy)
+++ src/helper/jim.c	(working copy)
@@ -245,7 +245,7 @@
 static int JimStringMatch(const char *pattern, int patternLen,
         const char *string, int stringLen, int nocase)
 {
-    while(patternLen) {
+    while (patternLen) {
         switch(pattern[0]) {
         case '*':
             while (pattern[1] == '*') {
@@ -254,7 +254,7 @@
             }
             if (patternLen == 1)
                 return 1; /* match */
-            while(stringLen) {
+            while (stringLen) {
                 if (JimStringMatch(pattern+1, patternLen-1,
                             string, stringLen, nocase))
                     return 1; /* match */
@@ -281,7 +281,7 @@
                 patternLen--;
             }
             match = 0;
-            while(1) {
+            while (1) {
                 if (pattern[0] == '\\') {
                     pattern++;
                     patternLen--;
@@ -352,7 +352,7 @@
         pattern++;
         patternLen--;
         if (stringLen == 0) {
-            while(*pattern == '*') {
+            while (*pattern == '*') {
                 pattern++;
                 patternLen--;
             }
@@ -370,7 +370,7 @@
     unsigned char *u1 = (unsigned char*) s1, *u2 = (unsigned char*) s2;
 
     if (nocase == 0) {
-        while(l1 && l2) {
+        while (l1 && l2) {
             if (*u1 != *u2)
                 return (int)*u1-*u2;
             u1++; u2++; l1--; l2--;
@@ -378,7 +378,7 @@
         if (!l1 && !l2) return 0;
         return l1-l2;
     } else {
-        while(l1 && l2) {
+        while (l1 && l2) {
             if (tolower((int)*u1) != tolower((int)*u2))
                 return tolower((int)*u1)-tolower((int)*u2);
             u1++; u2++; l1--; l2--;
@@ -424,7 +424,7 @@
     if ((str[0] == '\0') || (str == endptr) )
         return JIM_ERR;
     if (endptr[0] != '\0') {
-        while(*endptr) {
+        while (*endptr) {
             if (!isspace((int)*endptr))
                 return JIM_ERR;
             endptr++;
@@ -441,7 +441,7 @@
     if ( (str[0] == '\0') || (str == endptr) )
         return JIM_ERR;
     if (endptr[0] != '\0') {
-        while(*endptr) {
+        while (*endptr) {
             if (!isspace((int)*endptr))
                 return JIM_ERR;
             endptr++;
@@ -473,7 +473,7 @@
 
     len = sprintf(buf, "%.17g", doubleValue);
     s = buf;
-    while(*s) {
+    while (*s) {
         if (*s == '.') return len;
         s++;
     }
@@ -661,7 +661,7 @@
 unsigned int Jim_GenHashFunction(const unsigned char *buf, int len)
 {
     unsigned int h = 0;
-    while(len--)
+    while (len--)
         h += (h<<3)+*buf++;
     return h;
 }
@@ -729,7 +729,7 @@
         
         /* For each hash entry on this slot... */
         he = ht->table[i];
-        while(he) {
+        while (he) {
             unsigned int h;
 
             nextHe = he->next;
@@ -802,7 +802,7 @@
     he = ht->table[h];
 
     prevHe = NULL;
-    while(he) {
+    while (he) {
         if (Jim_CompareHashKeys(ht, key, he->key)) {
             /* Unlink the element from the list */
             if (prevHe)
@@ -831,7 +831,7 @@
         Jim_HashEntry *he, *nextHe;
 
         if ((he = ht->table[i]) == NULL) continue;
-        while(he) {
+        while (he) {
             nextHe = he->next;
             Jim_FreeEntryKey(ht, he);
             Jim_FreeEntryVal(ht, he);
@@ -855,7 +855,7 @@
     if (ht->size == 0) return NULL;
     h = Jim_HashKey(ht, key) & ht->sizemask;
     he = ht->table[h];
-    while(he) {
+    while (he) {
         if (Jim_CompareHashKeys(ht, key, he->key))
             return he;
         he = he->next;
@@ -916,7 +916,7 @@
 
     if (size >= 2147483648U)
         return 2147483648U;
-    while(1) {
+    while (1) {
         if (i >= size)
             return i;
         i *= 2;
@@ -938,7 +938,7 @@
     h = Jim_HashKey(ht, key) & ht->sizemask;
     /* Search if this slot does not already contain the given key */
     he = ht->table[h];
-    while(he) {
+    while (he) {
         if (Jim_CompareHashKeys(ht, key, he->key))
             return -1;
         he = he->next;
@@ -1180,7 +1180,7 @@
 
 int JimParseScript(struct JimParserCtx *pc)
 {
-    while(1) { /* the while is used to reiterate with continue if needed */
+    while (1) { /* the while is used to reiterate with continue if needed */
         if (!pc->len) {
             pc->tstart = pc->p;
             pc->tend = pc->p-1;
@@ -1657,7 +1657,7 @@
     int level = 0;
     int state = ' ';
 
-    while(len) {
+    while (len) {
         switch (*s) {
             case '\\':
                 if (len > 1)
@@ -2341,7 +2341,7 @@
 		case '8':
 		case '9':
 			accum = 0;
-			while( isdigit(*fmt) && (fmtLen > 0) ){
+			while ( isdigit(*fmt) && (fmtLen > 0) ){
 				accum = (accum * 10) + (*fmt - '0');
 				fmt++;  fmtLen--;
 			}
@@ -3029,7 +3029,7 @@
     }
 
     JimParserInit(&parser, scriptText, scriptTextLen, initialLineNumber);
-    while(!JimParserEof(&parser)) {
+    while (!JimParserEof(&parser)) {
         char *token;
         int len, type, linenr;
 
@@ -3621,7 +3621,7 @@
         Jim_Obj *objPtr = targetNameObjPtr;
         Jim_Var *varPtr;
         /* Cycles are only possible with 'uplevel 0' */
-        while(1) {
+        while (1) {
             if (Jim_StringEqObj(objPtr, nameObjPtr, 0)) {
                 Jim_SetResultString(interp,
                     "can't upvar from variable to itself", -1);
@@ -4262,7 +4262,7 @@
      * is of a type that can contain references. */
     Jim_InitHashTable(&marks, &JimRefMarkHashTableType, NULL);
     objPtr = interp->liveList;
-    while(objPtr) {
+    while (objPtr) {
         if (objPtr->typePtr == NULL ||
             objPtr->typePtr->flags & JIM_TYPE_REFERENCES) {
             const char *str, *p;
@@ -4291,7 +4291,7 @@
                 continue;
             }
             /* Extract references from the object string repr. */
-            while(1) {
+            while (1) {
                 int i;
                 jim_wide id;
                 char buf[21];
@@ -4488,7 +4488,7 @@
     Jim_FreeHashTable(&i->packages);
     Jim_Free(i->prngState);
     /* Free the call frames list */
-    while(cf) {
+    while (cf) {
         prevcf = cf->parentCallFrame;
         JimFreeCallFrame(i, cf, JIM_FCF_NONE);
         cf = prevcf;
@@ -4500,7 +4500,7 @@
     
         Jim_fprintf( i, i->cookie_stdout,JIM_NL "-------------------------------------" JIM_NL);
         Jim_fprintf( i, i->cookie_stdout,"Objects still in the free list:" JIM_NL);
-        while(objPtr) {
+        while (objPtr) {
             const char *type = objPtr->typePtr ?
                 objPtr->typePtr->name : "";
             Jim_fprintf( i, i->cookie_stdout,"%p \"%-10s\": '%.20s' (refCount: %d)" JIM_NL,
@@ -4526,7 +4526,7 @@
     }
     /* Free cached CallFrame structures */
     cf = i->freeFramesList;
-    while(cf) {
+    while (cf) {
         nextcf = cf->nextFramePtr;
         if (cf->vars.table != NULL)
             Jim_Free(cf->vars.table);
@@ -5102,7 +5102,7 @@
     char *q = Jim_Alloc(len*2+1), *p;
 
     p = q;
-    while(*s) {
+    while (*s) {
         switch (*s) {
         case ' ':
         case '$':
@@ -5215,7 +5215,7 @@
 
     /* Convert into a list */
     JimParserInit(&parser, str, strLen, 1);
-    while(!JimParserEof(&parser)) {
+    while (!JimParserEof(&parser)) {
         char *token;
         int tokenLen, type;
         Jim_Obj *elementPtr;
@@ -5794,7 +5794,7 @@
     /* Convert into a dict */
     JimParserInit(&parser, str, strLen, 1);
     i = 0;
-    while(!JimParserEof(&parser)) {
+    while (!JimParserEof(&parser)) {
         char *token;
         int tokenLen, type;
 
@@ -6276,7 +6276,7 @@
 int JimParseExpression(struct JimParserCtx *pc)
 {
     /* Discard spaces and quoted newline */
-    while(*(pc->p) == ' ' ||
+    while (*(pc->p) == ' ' ||
           *(pc->p) == '\t' ||
           *(pc->p) == '\r' ||
           *(pc->p) == '\n' ||
@@ -6623,7 +6623,7 @@
         /* Search for the end of the first operator */
         leftindex = index-1;
         arity = 1;
-        while(arity) {
+        while (arity) {
             switch(expr->opcode[leftindex]) {
             case JIM_EXPROP_NUMBER:
             case JIM_EXPROP_COMMAND:
@@ -6697,7 +6697,7 @@
 
     Jim_InitStack(&stack);
     JimParserInit(&parser, exprText, exprTextLen, 1);
-    while(!JimParserEof(&parser)) {
+    while (!JimParserEof(&parser)) {
         char *token;
         int len, type;
 
@@ -6731,7 +6731,7 @@
             break;
         case JIM_TT_EXPR_OPERATOR:
             op = JimExprOperatorInfo(token);
-            while(1) {
+            while (1) {
                 Jim_ExprOperator *stackTopOp;
 
                 if (Jim_StackPeek(&stack) != NULL) {
@@ -6758,7 +6758,7 @@
         case JIM_TT_SUBEXPR_END:
             {
                 int found = 0;
-                while(Jim_StackLen(&stack)) {
+                while (Jim_StackLen(&stack)) {
                     char *opstr = Jim_StackPop(&stack);
                     if (!strcmp(opstr, "(")) {
                         Jim_Free(opstr);
@@ -9094,7 +9094,7 @@
     script->fileName = NULL;
 
     JimParserInit(&parser, scriptText, scriptTextLen, 1);
-    while(1) {
+    while (1) {
         char *token;
         int len, type, linenr;
 
@@ -11138,7 +11138,7 @@
     }
     str = Jim_GetString(objPtr, &strLen);
     /* Map it */
-    while(strLen) {
+    while (strLen) {
         for (i = 0; i < numMaps; i++) {
             if (strLen >= keyLen[i] && keyLen[i]) {
                 if (!JimStringCompare(str, keyLen[i], key[i], keyLen[i],
@@ -11630,7 +11630,7 @@
         return JIM_ERR;
     }
     i = argc-2;
-    while(i--) {
+    while (i--) {
         if (Jim_CompareStringImmediate(interp, argv[i+1],
                     "-nobackslashes"))
             flags |= JIM_SUBST_NOESC;
@@ -12283,7 +12283,7 @@
 {
     int i = 0;
 
-    while(Jim_CoreCommandsTable[i].name != NULL) {
+    while (Jim_CoreCommandsTable[i].name != NULL) {
         Jim_CreateCommand(interp, 
                 Jim_CoreCommandsTable[i].name,
                 Jim_CoreCommandsTable[i].cmdProc,
@@ -12361,7 +12361,7 @@
         Jim_fflush( interp, interp->cookie_stdout);
         scriptObjPtr = Jim_NewStringObj(interp, "", 0);
         Jim_IncrRefCount(scriptObjPtr);
-        while(1) {
+        while (1) {
             const char *str;
             char state;
             int len;
@@ -12457,7 +12457,7 @@
 Jim_Nvp *
 Jim_Nvp_name2value_simple( const Jim_Nvp *p, const char *name )
 {
-	while( p->name ){
+	while ( p->name ){
 		if ( 0 == strcmp( name, p->name ) ){
 			break;
 		}
@@ -12469,7 +12469,7 @@
 Jim_Nvp *
 Jim_Nvp_name2value_nocase_simple( const Jim_Nvp *p, const char *name )
 {
-	while( p->name ){
+	while ( p->name ){
 		if ( 0 == strcasecmp( name, p->name ) ){
 			break;
 		}
@@ -12553,7 +12553,7 @@
 Jim_Nvp *
 Jim_Nvp_value2name_simple( const Jim_Nvp *p, int value )
 {
-	while( p->name ){
+	while ( p->name ){
 		if ( value == p->value ){
 			break;
 		}
@@ -12792,7 +12792,7 @@
 							   "Unknown param: %s, try one of: ",
 							   Jim_GetString( param_value, NULL ) );
 	}
-	while( nvp->name ){
+	while ( nvp->name ){
 		const char *a;
 		const char *b;
 
diff -u src/helper/jim.h src/helper/jim.h
--- src/helper/jim.h	(working copy)
+++ src/helper/jim.h	(working copy)
@@ -241,7 +241,7 @@
         entry->val = (ht)->type->valDup((ht)->privdata, _val_); \
     else \
         entry->val = (_val_); \
-} while(0)
+} while (0)
 
 #define Jim_FreeEntryKey(ht, entry) \
     if ((ht)->type->keyDestructor) \
@@ -252,7 +252,7 @@
         entry->key = (ht)->type->keyDup((ht)->privdata, _key_); \
     else \
         entry->key = (_key_); \
-} while(0)
+} while (0)
 
 #define Jim_CompareHashKeys(ht, key1, key2) \
     (((ht)->type->keyCompare) ? \
@@ -555,7 +555,7 @@
     Jim_IncrRefCount(_resultObjPtr_); \
     Jim_DecrRefCount(i,(i)->result);  \
     (i)->result = _resultObjPtr_;     \
-} while(0)
+} while (0)
 
 /* Reference structure. The interpreter pointer is held within privdata member in HashTable */
 #define JIM_REFERENCE_TAGLEN 7 /* The tag is fixed-length, because the reference
@@ -985,7 +985,7 @@
  *
  *   Jim_GetOpt_Setup( &goi, interp, argc, argv );
  *
- *   while( goi.argc ){
+ *   while ( goi.argc ){
  *         e = Jim_GetOpt_Nvp( &goi, nvp_options, &n );
  *         if ( e != JIM_OK ){
  *               Jim_GetOpt_NvpUnknown( &goi, nvp_options, 0 );
@@ -1102,7 +1102,7 @@
  * Example:
  * \code
  *
- *  while( goi.argc ){
+ *  while ( goi.argc ){
  *     // Get the next option 
  *     e = Jim_GetOpt_Nvp( &goi, cmd_options, &n );
  *     if ( e != JIM_OK ){
diff -u src/jtag/rlink/rlink.c src/jtag/rlink/rlink.c
--- src/jtag/rlink/rlink.c	(working copy)
+++ src/jtag/rlink/rlink.c	(working copy)
@@ -128,7 +128,7 @@
 	usb_buffer_p = usb_buffer;
 
 	va_start(ap, length);
-	while(length > 0) {
+	while (length > 0) {
 		*usb_buffer_p++ = va_arg(ap, int);
 		length--;
 	}
@@ -175,7 +175,7 @@
 	remain = length;
 	count = 0;
 
-	while(remain) {
+	while (remain) {
 		if (remain > sizeof(usb_buffer)) {
 			length = sizeof(usb_buffer);
 		} else {
@@ -236,7 +236,7 @@
 	remain = length;
 	count = 0;
 
-	while(remain) {
+	while (remain) {
 		if (remain > (sizeof(usb_buffer) - 4)) {
 			length = (sizeof(usb_buffer) - 4);
 		} else {
@@ -299,7 +299,7 @@
 	buffer_p = buffer;
 
 	va_start(ap, length);
-	while(remain > 0) {
+	while (remain > 0) {
 		*buffer_p++ = va_arg(ap, int);
 		remain--;
 	}
@@ -348,7 +348,7 @@
 	);
 	if (usb_err < 0) return(usb_err);
 
-	while(length) {
+	while (length) {
 		if (length < sizeof(*header)) {
 			LOG_ERROR("Malformed DTC image\n");
 			exit(1);
@@ -1169,7 +1169,7 @@
 		x = 0;
 		dtc_mask = 1 << (extra_bits - 1);
 
-		while(extra_bits--) {
+		while (extra_bits--) {
 			if (*tdi_p & tdi_mask) {
 				x |= dtc_mask;
 			}
@@ -1190,7 +1190,7 @@
 	}
 
 	/* Loop scheduling full bytes into the DTC command buffer */
-	while(byte_bits) {
+	while (byte_bits) {
 		if (type == SCAN_IN) {
 			/* make sure there's room for stop and byte op */
 			x = (dtc_queue.cmd_index >= sizeof(dtc_queue.cmd_buffer) - (1 + 1));
@@ -1260,7 +1260,7 @@
 			x = 0;
 			dtc_mask = 1 << (8 - 1);
 
-			while(chunk_bits--) {
+			while (chunk_bits--) {
 				if (*tdi_p & tdi_mask) {
 					x |= dtc_mask;
 				}
@@ -1315,7 +1315,7 @@
 			x = 0;
 			dtc_mask = 1 << (8 - 1);
 
-			while(extra_bits--) {
+			while (extra_bits--) {
 				if (*tdi_p & tdi_mask) {
 					x |= dtc_mask;
 				}
@@ -1682,7 +1682,7 @@
 								LOG_DEBUG("interface claimed!\n");
 								break;
 							}
-						} while(--retries);
+						} while (--retries);
 
 						if (!i)
 						{
@@ -1695,7 +1695,7 @@
 								success=1;
 						}
 					}
-				} while(0);
+				} while (0);
 			}
 		}
 	}
diff -u src/jtag/interface.c src/jtag/interface.c
--- src/jtag/interface.c	(working copy)
+++ src/jtag/interface.c	(working copy)
@@ -372,7 +372,7 @@
 #ifdef _DEBUG_JTAG_IO_
 
 #define JTAG_DEBUG_STATE_APPEND(buf, len, bit) \
-		do { buf[len] = bit ? '1' : '0'; } while(0)
+		do { buf[len] = bit ? '1' : '0'; } while (0)
 #define JTAG_DEBUG_STATE_PRINT(a, b, astr, bstr) \
 		DEBUG_JTAG_IO("TAP/SM: %9s -> %5s\tTMS: %s\tTDI: %s", \
 			tap_state_name(a), tap_state_name(b), astr, bstr)
diff -u src/jtag/tcl.c src/jtag/tcl.c
--- src/jtag/tcl.c	(working copy)
+++ src/jtag/tcl.c	(working copy)
@@ -367,7 +367,7 @@
 	/* clear them as we find them */
 	reqbits = (NTREQ_IRLEN | NTREQ_IRCAPTURE | NTREQ_IRMASK);
 
-	while( goi->argc ){
+	while ( goi->argc ){
 		e = Jim_GetOpt_Nvp( goi, opts, &n );
 		if ( e != JIM_OK ){
 			Jim_GetOpt_NvpUnknown( goi, opts, 0 );
@@ -441,7 +441,7 @@
 				break;
 			}
 		} /* switch(n->value) */
-	} /* while( goi->argc ) */
+	} /* while ( goi->argc ) */
 
 	/* default is enabled-after-reset */
 	pTap->enabled = !pTap->disabled_after_reset;
@@ -861,7 +861,7 @@
 	command_print(cmd_ctx, "     TapName            | Enabled |   IdCode      Expected    IrLen IrCap  IrMask Instr     ");
 	command_print(cmd_ctx, "---|--------------------|---------|------------|------------|------|------|------|---------");
 
-	while( tap ){
+	while ( tap ){
 		uint32_t expected, expected_mask, cur_instr, ii;
 		expected = buf_get_u32(tap->expected, 0, tap->ir_length);
 		expected_mask = buf_get_u32(tap->expected_mask, 0, tap->ir_length);
diff -u src/jtag/core.c src/jtag/core.c
--- src/jtag/core.c	(working copy)
+++ src/jtag/core.c	(working copy)
@@ -142,7 +142,7 @@
 {
 	jtag_tap_t *t = jtag_all_taps();
 	unsigned n = 0;
-	while(t)
+	while (t)
 	{
 		if (t->enabled)
 			n++;
@@ -157,7 +157,7 @@
 	t->abs_chain_position = jtag_num_taps++;
 
 	jtag_tap_t **tap = &__jtag_all_taps;
-	while(*tap != NULL)
+	while (*tap != NULL)
 		tap = &(*tap)->next_tap;
 	*tap = t;
 }
diff -u src/target/target.c src/target/target.c
--- src/target/target.c	(working copy)
+++ src/target/target.c	(working copy)
@@ -242,7 +242,7 @@
 
 	x = -1;
 	t = all_targets;
-	while( t ){
+	while ( t ){
 		if ( x < t->target_number ){
 			x = (t->target_number)+1;
 		}
@@ -260,7 +260,7 @@
 	/* number is 0 based */
 	x = -1;
 	t = all_targets;
-	while(t){
+	while (t){
 		if ( x < t->target_number ){
 			x = t->target_number;
 		}
@@ -1705,7 +1705,7 @@
 		reg_cache_t *cache = target->reg_cache;
 
 		count = 0;
-		while(cache)
+		while (cache)
 		{
 			int i;
 			for (i = 0; i < cache->num_regs; i++)
@@ -1730,7 +1730,7 @@
 
 		reg_cache_t *cache = target->reg_cache;
 		count = 0;
-		while(cache)
+		while (cache)
 		{
 			int i;
 			for (i = 0; i < cache->num_regs; i++)
@@ -3312,7 +3312,7 @@
 	teap = target->event_action;
 
 	done = 0;
-	while( teap ){
+	while ( teap ){
 		if ( teap->event == e ){
 			done = 1;
 			LOG_DEBUG( "target: (%d) %s (%s) event: %d (%s) action: %s\n",
@@ -3371,7 +3371,7 @@
 	int e;
 
 	/* parse config or cget options ... */
-	while( goi->argc > 0 ){
+	while ( goi->argc > 0 ){
 		Jim_SetEmptyResult( goi->interp );
 		/* Jim_GetOpt_Debug( goi ); */
 
@@ -3439,7 +3439,7 @@
 
 				teap = target->event_action;
 				/* replace existing? */
-				while( teap ){
+				while ( teap ){
 					if ( teap->event == (enum target_event)n->value ){
 						break;
 					}
@@ -3621,7 +3621,7 @@
 			/* loop for more e*/
 			break;
 		}
-	} /* while( goi->argc ) */
+	} /* while ( goi->argc ) */
 
 
 		/* done - we return */
@@ -3815,7 +3815,7 @@
 		/* convert to "bytes" */
 		c = c * b;
 		/* count is now in 'BYTES' */
-		while( c > 0 ){
+		while ( c > 0 ){
 			y = c;
 			if ( y > 16 ){
 				y = 16;
@@ -3868,7 +3868,7 @@
 				}
 			}
 			/* space pad  */
-			while( x < 16 ){
+			while ( x < 16 ){
 				target_buf[x] = ' ';
 				x++;
 			}
@@ -3997,7 +3997,7 @@
 						   target->cmd_name );
 			command_print( cmd_ctx, "%-25s | Body", "Event");
 			command_print( cmd_ctx, "------------------------- | ----------------------------------------");
-			while( teap ){
+			while ( teap ){
 				command_print( cmd_ctx,
 							   "%-25s | %s",
 							   Jim_Nvp_value2name_simple( nvp_target_event, teap->event )->name,
@@ -4170,7 +4170,7 @@
 	{
 		target_t **tpp;
 		tpp = &(all_targets);
-		while( *tpp ){
+		while ( *tpp ){
 			tpp = &( (*tpp)->next );
 		}
 		*tpp = target;
@@ -4260,7 +4260,7 @@
 		}
 		Jim_SetResult( goi.interp, Jim_NewListObj( goi.interp, NULL, 0 ) );
 		target = all_targets;
-		while( target ){
+		while ( target ){
 			Jim_ListAppendElement( goi.interp,
 								   Jim_GetResult(goi.interp),
 								   Jim_NewStringObj( goi.interp, target->cmd_name, -1 ) );
diff -u src/target/arm11_dbgtap.c src/target/arm11_dbgtap.c
--- src/target/arm11_dbgtap.c	(working copy)
+++ src/target/arm11_dbgtap.c	(working copy)
@@ -30,7 +30,7 @@
 #if 0
 #define JTAG_DEBUG(expr ...)	DEBUG(expr)
 #else
-#define JTAG_DEBUG(expr ...)	do {} while(0)
+#define JTAG_DEBUG(expr ...)	do {} while (0)
 #endif
 
 /*
diff -u src/target/cortex_m3.c src/target/cortex_m3.c
--- src/target/cortex_m3.c	(working copy)
+++ src/target/cortex_m3.c	(working copy)
@@ -908,7 +908,7 @@
 
 	if (breakpoint->type == BKPT_HARD)
 	{
-		while(comparator_list[fp_num].used && (fp_num < cortex_m3->fp_num_code))
+		while (comparator_list[fp_num].used && (fp_num < cortex_m3->fp_num_code))
 			fp_num++;
 		if (fp_num >= cortex_m3->fp_num_code)
 		{
@@ -1091,7 +1091,7 @@
 
 	if (watchpoint->mask == 0xffffffffu)
 	{
-		while(comparator_list[dwt_num].used && (dwt_num < cortex_m3->dwt_num_comp))
+		while (comparator_list[dwt_num].used && (dwt_num < cortex_m3->dwt_num_comp))
 			dwt_num++;
 		if (dwt_num >= cortex_m3->dwt_num_comp)
 		{
diff -u src/target/mips32_dmaacc.c src/target/mips32_dmaacc.c
--- src/target/mips32_dmaacc.c	(working copy)
+++ src/target/mips32_dmaacc.c	(working copy)
@@ -61,7 +61,7 @@
 	do {
 		ejtag_ctrl = EJTAG_CTRL_DMAACC | ejtag_info->ejtag_ctrl;
 		mips_ejtag_drscan_32(ejtag_info, &ejtag_ctrl);
-	} while(ejtag_ctrl & EJTAG_CTRL_DSTRT);
+	} while (ejtag_ctrl & EJTAG_CTRL_DSTRT);
 
 	/* Read Data */
 	mips_ejtag_set_instr(ejtag_info, EJTAG_INST_DATA, NULL);
@@ -107,7 +107,7 @@
 	do {
 		ejtag_ctrl = EJTAG_CTRL_DMAACC | ejtag_info->ejtag_ctrl;
 		mips_ejtag_drscan_32(ejtag_info, &ejtag_ctrl);
-	} while(ejtag_ctrl & EJTAG_CTRL_DSTRT);
+	} while (ejtag_ctrl & EJTAG_CTRL_DSTRT);
 
 	/* Read Data */
 	mips_ejtag_set_instr(ejtag_info, EJTAG_INST_DATA, NULL);
@@ -159,7 +159,7 @@
 	do {
 		ejtag_ctrl = EJTAG_CTRL_DMAACC | ejtag_info->ejtag_ctrl;
 		mips_ejtag_drscan_32(ejtag_info, &ejtag_ctrl);
-	} while(ejtag_ctrl & EJTAG_CTRL_DSTRT);
+	} while (ejtag_ctrl & EJTAG_CTRL_DSTRT);
 
 	/* Read Data */
 	mips_ejtag_set_instr(ejtag_info, EJTAG_INST_DATA, NULL);
@@ -226,7 +226,7 @@
 	do {
 		ejtag_ctrl = EJTAG_CTRL_DMAACC | ejtag_info->ejtag_ctrl;
 		mips_ejtag_drscan_32(ejtag_info, &ejtag_ctrl);
-	} while(ejtag_ctrl & EJTAG_CTRL_DSTRT);
+	} while (ejtag_ctrl & EJTAG_CTRL_DSTRT);
 
 	/* Clear DMA & Check DERR */
 	mips_ejtag_set_instr(ejtag_info, EJTAG_INST_CONTROL, NULL);
@@ -277,7 +277,7 @@
 	do {
 		ejtag_ctrl = EJTAG_CTRL_DMAACC | ejtag_info->ejtag_ctrl;
 		mips_ejtag_drscan_32(ejtag_info, &ejtag_ctrl);
-	} while(ejtag_ctrl & EJTAG_CTRL_DSTRT);
+	} while (ejtag_ctrl & EJTAG_CTRL_DSTRT);
 
 	/* Clear DMA & Check DERR */
 	mips_ejtag_set_instr(ejtag_info, EJTAG_INST_CONTROL, NULL);
@@ -329,7 +329,7 @@
 	do {
 		ejtag_ctrl = EJTAG_CTRL_DMAACC | ejtag_info->ejtag_ctrl;
 		mips_ejtag_drscan_32(ejtag_info, &ejtag_ctrl);
-	} while(ejtag_ctrl & EJTAG_CTRL_DSTRT);
+	} while (ejtag_ctrl & EJTAG_CTRL_DSTRT);
 
 	/* Clear DMA & Check DERR */
 	mips_ejtag_set_instr(ejtag_info, EJTAG_INST_CONTROL, NULL);
diff -u src/target/mips_m4k.c src/target/mips_m4k.c
--- src/target/mips_m4k.c	(working copy)
+++ src/target/mips_m4k.c	(working copy)
@@ -509,7 +509,7 @@
 	{
 		int bp_num = 0;
 
-		while(comparator_list[bp_num].used && (bp_num < mips32->num_inst_bpoints))
+		while (comparator_list[bp_num].used && (bp_num < mips32->num_inst_bpoints))
 			bp_num++;
 		if (bp_num >= mips32->num_inst_bpoints)
 		{
diff -u src/xsvf/xsvf.c src/xsvf/xsvf.c
--- src/xsvf/xsvf.c	(working copy)
+++ src/xsvf/xsvf.c	(working copy)
@@ -261,7 +261,7 @@
 
 	LOG_USER("xsvf processing file: \"%s\"", filename);
 
-	while( read(xsvf_fd, &opcode, 1) > 0 )
+	while ( read(xsvf_fd, &opcode, 1) > 0 )
 	{
 		/* record the position of the just read opcode within the file */
 		file_offset = lseek(xsvf_fd, 0, SEEK_CUR) - 1;
diff -u src/flash/str9xpec.c src/flash/str9xpec.c
--- src/flash/str9xpec.c	(working copy)
+++ src/flash/str9xpec.c	(working copy)
@@ -542,7 +542,7 @@
 		jtag_add_dr_scan(1, &field, jtag_get_end_state());
 		jtag_execute_queue();
 
-	} while(!(status & ISC_STATUS_BUSY));
+	} while (!(status & ISC_STATUS_BUSY));
 
 	str9xpec_isc_disable(bank);
 
@@ -722,7 +722,7 @@
 
 				status = buf_get_u32(scanbuf, 0, 8);
 
-			} while(!(status & ISC_STATUS_BUSY));
+			} while (!(status & ISC_STATUS_BUSY));
 
 			if ((status & ISC_STATUS_ERROR) != STR9XPEC_ISC_SUCCESS)
 				return ERROR_FLASH_OPERATION_FAILED;
@@ -740,7 +740,7 @@
 		uint8_t last_dword[8] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
 		int i = 0;
 
-		while(bytes_remaining > 0)
+		while (bytes_remaining > 0)
 		{
 			last_dword[i++] = *(buffer + bytes_written);
 			bytes_remaining--;
@@ -772,7 +772,7 @@
 
 			status = buf_get_u32(scanbuf, 0, 8);
 
-		} while(!(status & ISC_STATUS_BUSY));
+		} while (!(status & ISC_STATUS_BUSY));
 
 		if ((status & ISC_STATUS_ERROR) != STR9XPEC_ISC_SUCCESS)
 			return ERROR_FLASH_OPERATION_FAILED;
@@ -962,7 +962,7 @@
 		jtag_add_dr_scan(1, &field, jtag_get_end_state());
 		jtag_execute_queue();
 
-	} while(!(status & ISC_STATUS_BUSY));
+	} while (!(status & ISC_STATUS_BUSY));
 
 	str9xpec_isc_disable(bank);
 
diff -u src/flash/avrf.c src/flash/avrf.c
--- src/flash/avrf.c	(working copy)
+++ src/flash/avrf.c	(working copy)
@@ -156,7 +156,7 @@
 			return ERROR_FAIL;
 		}
 		LOG_DEBUG("poll_value = 0x%04X", poll_value);
-	}while(!(poll_value & 0x0200));
+	}while (!(poll_value & 0x0200));
 
 	return ERROR_OK;
 }
@@ -203,7 +203,7 @@
 			return ERROR_FAIL;
 		}
 		LOG_DEBUG("poll_value = 0x%04X", poll_value);
-	}while(!(poll_value & 0x0200));
+	}while (!(poll_value & 0x0200));
 
 	return ERROR_OK;
 }
@@ -277,7 +277,7 @@
 	}
 
 	cur_size = 0;
-	while(count > 0)
+	while (count > 0)
 	{
 		if (count > page_size)
 		{
diff -u src/flash/stellaris.c src/flash/stellaris.c
--- src/flash/stellaris.c	(working copy)
+++ src/flash/stellaris.c	(working copy)
@@ -588,7 +588,7 @@
 		{
 			target_read_u32(target, FLASH_FMC, &flash_fmc);
 		}
-		while(flash_fmc & FMC_ERASE);
+		while (flash_fmc & FMC_ERASE);
 
 		/* Check acess violations */
 		target_read_u32(target, FLASH_CRIS, &flash_cris);
@@ -665,7 +665,7 @@
 	{
 		target_read_u32(target, FLASH_FMC, &flash_fmc);
 	}
-	while(flash_fmc & FMC_COMT);
+	while (flash_fmc & FMC_COMT);
 
 	/* Check acess violations */
 	target_read_u32(target, FLASH_CRIS, &flash_cris);
@@ -904,7 +904,7 @@
 		uint8_t last_word[4] = {0xff, 0xff, 0xff, 0xff};
 		int i = 0;
 
-		while(bytes_remaining > 0)
+		while (bytes_remaining > 0)
 		{
 			last_word[i++] = *(buffer + bytes_written);
 			bytes_remaining--;
diff -u src/flash/pic32mx.c src/flash/pic32mx.c
--- src/flash/pic32mx.c	(working copy)
+++ src/flash/pic32mx.c	(working copy)
@@ -452,7 +452,7 @@
 
 	target_free_working_area(target, source);
 
-	while(count > 0)
+	while (count > 0)
 	{
 		uint32_t value;
 		memcpy(&value, buffer, sizeof(uint32_t));
diff -u src/flash/str7x.c src/flash/str7x.c
--- src/flash/str7x.c	(working copy)
+++ src/flash/str7x.c	(working copy)
@@ -578,7 +578,7 @@
 		uint8_t last_dword[8] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
 		int i = 0;
 				
-		while(bytes_remaining > 0)
+		while (bytes_remaining > 0)
 		{
 			last_dword[i++] = *(buffer + bytes_written); 
 			bytes_remaining--;
diff -u src/flash/str9x.c src/flash/str9x.c
--- src/flash/str9x.c	(working copy)
+++ src/flash/str9x.c	(working copy)
@@ -607,7 +607,7 @@
 		uint8_t last_halfword[2] = {0xff, 0xff};
 		int i = 0;
 
-		while(bytes_remaining > 0)
+		while (bytes_remaining > 0)
 		{
 			last_halfword[i++] = *(buffer + bytes_written);
 			bytes_remaining--;
only in patch2:
unchanged:
--- src/helper/jim-eventloop.c	(revision 2272)
+++ src/helper/jim-eventloop.c	(working copy)
@@ -116,7 +116,7 @@
     Jim_EventLoop *eventLoop = Jim_GetAssocData(interp, "eventloop");
 
     fe = eventLoop->fileEventHead;
-    while(fe) {
+    while (fe) {
         if (fe->handle == handle) {
             if (prev == NULL)
                 eventLoop->fileEventHead = fe->next;
@@ -194,7 +194,7 @@
     te = eventLoop->timeEventHead;
     if (id >= eventLoop->timeEventNextId) 
     	return -2; /* wrong event ID */
-    while(te) {
+    while (te) {
         if (te->id == id) {
             remain  = (te->when_sec - cur_sec) * 1000;
             remain += (te->when_ms  - cur_ms) ;
@@ -224,7 +224,7 @@
     Jim_TimeEvent *te = eventLoop->timeEventHead;
     Jim_TimeEvent *nearest = NULL;
 
-    while(te) {
+    while (te) {
         if (!nearest || te->when_sec < nearest->when_sec ||
                 (te->when_sec == nearest->when_sec &&
                  te->when_ms < nearest->when_ms))
@@ -319,7 +319,7 @@
 	   }
 	} else if (retval > 0) {
             fe = eventLoop->fileEventHead;
-            while(fe != NULL) {
+            while (fe != NULL) {
                 int fd = fileno((FILE*)fe->handle);
 
 		// fprintf(stderr,"fd: %d mask: %02x \n",fd,fe->mask);
@@ -361,7 +361,7 @@
     /* Check time events */
     te = eventLoop->timeEventHead;
     maxId = eventLoop->timeEventNextId-1;
-    while(te) {
+    while (te) {
         long now_sec, now_ms;
         jim_wide id;
 
@@ -400,7 +400,7 @@
     Jim_EventLoop *eventLoop = data;
 
     fe = eventLoop->fileEventHead;
-    while(fe) {
+    while (fe) {
         next = fe->next;
         if (fe->finalizerProc)
             fe->finalizerProc(interp, fe->clientData);
@@ -409,7 +409,7 @@
     }
 
     te = eventLoop->timeEventHead;
-    while(te) {
+    while (te) {
         next = te->next;
         if (te->finalizerProc)
             te->finalizerProc(interp, te->clientData);
only in patch2:
unchanged:
--- src/server/server.c	(revision 2272)
+++ src/server/server.c	(working copy)
@@ -116,7 +116,7 @@
 	connection_t *c;
 	
 	/* find connection */
-	while((c = *p))
+	while ((c = *p))
 	{		
 		if (c->fd == connection->fd)
 		{	
@@ -237,7 +237,7 @@
 	service_t *c;
 	
 	/* find service */
-	while((c = *p))
+	while ((c = *p))
 	{		
 		if (c->port == port)
 		{	
@@ -264,7 +264,7 @@
 	service_t *c = services;
 
 	/* loop service */
-	while(c)
+	while (c)
 	{
 		service_t *next = c->next;
 
@@ -310,7 +310,7 @@
 	tv.tv_sec = 0;
 	tv.tv_usec = 10000;
 	
-	while(!shutdown_openocd)
+	while (!shutdown_openocd)
 	{
 		/* monitor sockets for acitvity */
 		fd_max = 0;
only in patch2:
unchanged:
--- testing/examples/PIC32/BlinkingLeds.c	(revision 2272)
+++ testing/examples/PIC32/BlinkingLeds.c	(working copy)
@@ -9,7 +9,7 @@
 	mPORTDClearBits(BIT_2);
 	mPORTDSetPinsDigitalOut(BIT_2);
 	
-	while(1)
+	while (1)
 	{
 		for(i = 0; i < 500000; i++)
 			mPORTDToggleBits(BIT_0);
only in patch2:
unchanged:
--- testing/examples/ledtest-imx27ads/test.c	(revision 2272)
+++ testing/examples/ledtest-imx27ads/test.c	(working copy)
@@ -48,13 +48,13 @@
 
 void exit(int exit_code)
 {
-  while(1);
+  while (1);
 } /* EXIT */
 
 
 atexit()
 {
-  while(1);
+  while (1);
 } /* ATEXIT */
 
 
only in patch2:
unchanged:
--- testing/examples/ledtest-imx31pdk/test.c	(revision 2272)
+++ testing/examples/ledtest-imx31pdk/test.c	(working copy)
@@ -29,7 +29,7 @@
 {
         volatile unsigned char *led = ((volatile unsigned char *)0xB6020000);
 	
-	while(1)
+	while (1)
     	{
 		*led = 0xFF;
 		delay();
@@ -46,13 +46,13 @@
 
 void exit(int exit_code)
 {
-  while(1);
+  while (1);
 } /* EXIT */
 
 
 atexit()
 {
-  while(1);
+  while (1);
 } /* ATEXIT */
 
 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to