- Replace 'switch(' with 'switch ('.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2359 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -77,7 +77,7 @@ int tap_move_ndx( tap_state_t astate )
|
||||
|
||||
int ndx;
|
||||
|
||||
switch( astate )
|
||||
switch ( astate )
|
||||
{
|
||||
case TAP_RESET: ndx = 0; break;
|
||||
case TAP_DRSHIFT: ndx = 2; break;
|
||||
@@ -209,10 +209,10 @@ bool tap_is_state_stable(tap_state_t astate)
|
||||
{
|
||||
bool is_stable;
|
||||
|
||||
/* A switch() is used because it is symbol dependent
|
||||
/* A switch () is used because it is symbol dependent
|
||||
(not value dependent like an array), and can also check bounds.
|
||||
*/
|
||||
switch( astate )
|
||||
switch ( astate )
|
||||
{
|
||||
case TAP_RESET:
|
||||
case TAP_IDLE:
|
||||
@@ -331,7 +331,7 @@ const char* tap_state_name(tap_state_t state)
|
||||
{
|
||||
const char* ret;
|
||||
|
||||
switch( state )
|
||||
switch ( state )
|
||||
{
|
||||
case TAP_RESET: ret = "RESET"; break;
|
||||
case TAP_IDLE: ret = "RUN/IDLE"; break;
|
||||
|
||||
@@ -363,7 +363,7 @@ dtc_load_from_buffer(
|
||||
exit(1);
|
||||
}
|
||||
|
||||
switch(header->type) {
|
||||
switch (header->type) {
|
||||
case DTCLOAD_COMMENT:
|
||||
break;
|
||||
|
||||
@@ -1243,7 +1243,7 @@ rlink_scan(
|
||||
/* chunk_bits is a multiple of 8, so there are no rounding issues. */
|
||||
chunk_bytes = chunk_bits / 8;
|
||||
|
||||
switch(type) {
|
||||
switch (type) {
|
||||
case SCAN_IN:
|
||||
x = DTC_CMD_SHIFT_TDO_BYTES(chunk_bytes);
|
||||
break;
|
||||
|
||||
@@ -374,7 +374,7 @@ static int jim_newtap_cmd( Jim_GetOptInfo *goi )
|
||||
return e;
|
||||
}
|
||||
LOG_DEBUG("Processing option: %s", n->name );
|
||||
switch( n->value ){
|
||||
switch ( n->value ){
|
||||
case NTAP_OPT_ENABLED:
|
||||
pTap->disabled_after_reset = false;
|
||||
break;
|
||||
@@ -414,7 +414,7 @@ static int jim_newtap_cmd( Jim_GetOptInfo *goi )
|
||||
Jim_SetResult_sprintf( goi->interp, "option: %s bad parameter", n->name );
|
||||
return e;
|
||||
}
|
||||
switch(n->value){
|
||||
switch (n->value){
|
||||
case NTAP_OPT_IRLEN:
|
||||
if (w > (jim_wide) (8 * sizeof(pTap->ir_capture_value)))
|
||||
LOG_WARNING("huge IR length %d", (int) w);
|
||||
@@ -440,7 +440,7 @@ static int jim_newtap_cmd( Jim_GetOptInfo *goi )
|
||||
reqbits &= (~(NTREQ_IRCAPTURE));
|
||||
break;
|
||||
}
|
||||
} /* switch(n->value) */
|
||||
} /* switch (n->value) */
|
||||
} /* while ( goi->argc ) */
|
||||
|
||||
/* default is enabled-after-reset */
|
||||
@@ -540,7 +540,7 @@ static int jim_jtag_command( Jim_Interp *interp, int argc, Jim_Obj *const *argv
|
||||
return e;
|
||||
}
|
||||
Jim_SetEmptyResult( goi.interp );
|
||||
switch( n->value ){
|
||||
switch ( n->value ){
|
||||
case JTAG_CMD_INTERFACE:
|
||||
/* return the name of the interface */
|
||||
/* TCL code might need to know the exact type... */
|
||||
|
||||
@@ -362,7 +362,7 @@ static int vsllink_execute_queue(void)
|
||||
|
||||
case JTAG_STABLECLOCKS:
|
||||
DEBUG_JTAG_IO("add %d clocks", cmd->cmd.stableclocks->num_cycles);
|
||||
switch(tap_get_state())
|
||||
switch (tap_get_state())
|
||||
{
|
||||
case TAP_RESET:
|
||||
// tms should be '1' to stay in TAP_RESET mode
|
||||
|
||||
Reference in New Issue
Block a user