Fossil SCM
Fix non-C89 compliant variable declaration.
Commit
d0233e1792297d961e54efdb55b31df3a8afb443
Parent
dc45d71bfe77d4d…
1 file changed
+2
-1
+2
-1
| --- src/th_tcl.c | ||
| +++ src/th_tcl.c | ||
| @@ -435,12 +435,13 @@ | ||
| 435 | 435 | void *pContext |
| 436 | 436 | ){ |
| 437 | 437 | int i; |
| 438 | 438 | /* Add the Tcl integration commands to Jim. */ |
| 439 | 439 | for(i=0; i<(sizeof(aCommand)/sizeof(aCommand[0])); i++){ |
| 440 | + void *ctx; | |
| 440 | 441 | if ( !aCommand[i].zName || !aCommand[i].xProc ) continue; |
| 441 | - void *ctx = aCommand[i].pContext; | |
| 442 | + ctx = aCommand[i].pContext; | |
| 442 | 443 | /* Use Tcl interpreter for context? */ |
| 443 | 444 | if( !ctx ) ctx = pContext; |
| 444 | 445 | Jim_CreateCommand(interp, aCommand[i].zName, aCommand[i].xProc, ctx, NULL); |
| 445 | 446 | } |
| 446 | 447 | return JIM_OK; |
| 447 | 448 |
| --- src/th_tcl.c | |
| +++ src/th_tcl.c | |
| @@ -435,12 +435,13 @@ | |
| 435 | void *pContext |
| 436 | ){ |
| 437 | int i; |
| 438 | /* Add the Tcl integration commands to Jim. */ |
| 439 | for(i=0; i<(sizeof(aCommand)/sizeof(aCommand[0])); i++){ |
| 440 | if ( !aCommand[i].zName || !aCommand[i].xProc ) continue; |
| 441 | void *ctx = aCommand[i].pContext; |
| 442 | /* Use Tcl interpreter for context? */ |
| 443 | if( !ctx ) ctx = pContext; |
| 444 | Jim_CreateCommand(interp, aCommand[i].zName, aCommand[i].xProc, ctx, NULL); |
| 445 | } |
| 446 | return JIM_OK; |
| 447 |
| --- src/th_tcl.c | |
| +++ src/th_tcl.c | |
| @@ -435,12 +435,13 @@ | |
| 435 | void *pContext |
| 436 | ){ |
| 437 | int i; |
| 438 | /* Add the Tcl integration commands to Jim. */ |
| 439 | for(i=0; i<(sizeof(aCommand)/sizeof(aCommand[0])); i++){ |
| 440 | void *ctx; |
| 441 | if ( !aCommand[i].zName || !aCommand[i].xProc ) continue; |
| 442 | ctx = aCommand[i].pContext; |
| 443 | /* Use Tcl interpreter for context? */ |
| 444 | if( !ctx ) ctx = pContext; |
| 445 | Jim_CreateCommand(interp, aCommand[i].zName, aCommand[i].xProc, ctx, NULL); |
| 446 | } |
| 447 | return JIM_OK; |
| 448 |