aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:37:21 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:37:21 +0000
commit95d2a2372421aeddae01f1af51279ab7989e46b5 (patch)
treeee7907029137638c353969e5ada42e4dc7dd2779 /src/helper
parent9af5e445b796f3b4a51d41f9d2eeaf1f5cd78e3b (diff)
downloadriscv-openocd-95d2a2372421aeddae01f1af51279ab7989e46b5.zip
riscv-openocd-95d2a2372421aeddae01f1af51279ab7989e46b5.tar.gz
riscv-openocd-95d2a2372421aeddae01f1af51279ab7989e46b5.tar.bz2
- Replace 'for(' with 'for ('.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2360 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/jim.c8
-rw-r--r--src/helper/options.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/helper/jim.c b/src/helper/jim.c
index 84ac39b..ab0b18c 100644
--- a/src/helper/jim.c
+++ b/src/helper/jim.c
@@ -504,7 +504,7 @@ static jim_wide JimPowWide(jim_wide b, jim_wide e)
{
jim_wide i, res = 1;
if ((b==0 && e!=0) || (e<0)) return 0;
- for(i=0; i<e; i++) {res *= b;}
+ for (i=0; i<e; i++) {res *= b;}
return res;
}
@@ -10425,7 +10425,7 @@ static int Jim_SwitchCoreCommand(Jim_Interp *interp, int argc,
script = caseList[i+1];
}
}
- for(; i < patCount && Jim_CompareStringImmediate(interp, script, "-");
+ for (; i < patCount && Jim_CompareStringImmediate(interp, script, "-");
i += 2)
script = caseList[i+1];
if (script && Jim_CompareStringImmediate(interp, script, "-")) {
@@ -12599,7 +12599,7 @@ Jim_GetOpt_Debug( Jim_GetOptInfo *p )
int x;
Jim_fprintf( p->interp, p->interp->cookie_stderr, "---args---\n");
- for( x = 0 ; x < p->argc ; x++ ){
+ for ( x = 0 ; x < p->argc ; x++ ){
Jim_fprintf( p->interp, p->interp->cookie_stderr,
"%2d) %s\n",
x,
@@ -12823,7 +12823,7 @@ Jim_Debug_ArgvString( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
}
debug_string_obj = Jim_NewEmptyStringObj( interp );
- for( x = 0 ; x < argc ; x++ ){
+ for ( x = 0 ; x < argc ; x++ ){
Jim_AppendStrings( interp,
debug_string_obj,
Jim_GetString( argv[x], NULL ),
diff --git a/src/helper/options.c b/src/helper/options.c
index c48939e..23491d3 100644
--- a/src/helper/options.c
+++ b/src/helper/options.c
@@ -90,7 +90,7 @@ int add_default_dirs(void)
GetModuleFileName (NULL, strExePath, MAX_PATH);
*strrchr(strExePath, '\\')=0;
strcat(strExePath, "/../lib/"PACKAGE);
- for(p=strExePath; *p; p++) {
+ for (p=strExePath; *p; p++) {
if (*p == '\\')
*p = '/';
}