- Replace 'switch(' with 'switch ('.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2359 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -1332,7 +1332,7 @@ int evaluate_b_bl_blx_thumb(uint16_t opcode, uint32_t address, arm_instruction_t
|
||||
|
||||
target_address = address + 4 + (offset<<1);
|
||||
|
||||
switch(opc)
|
||||
switch (opc)
|
||||
{
|
||||
/* unconditional branch */
|
||||
case 0:
|
||||
@@ -1416,7 +1416,7 @@ int evaluate_shift_imm_thumb(uint16_t opcode, uint32_t address, arm_instruction_
|
||||
uint8_t opc = (opcode >> 11) & 0x3;
|
||||
char *mnemonic = NULL;
|
||||
|
||||
switch(opc)
|
||||
switch (opc)
|
||||
{
|
||||
case 0:
|
||||
instruction->type = ARM_MOV;
|
||||
@@ -1465,7 +1465,7 @@ int evaluate_data_proc_imm_thumb(uint16_t opcode, uint32_t address, arm_instruct
|
||||
instruction->info.data_proc.variant = 0; /*immediate*/
|
||||
instruction->info.data_proc.shifter_operand.immediate.immediate = imm;
|
||||
|
||||
switch(opc)
|
||||
switch (opc)
|
||||
{
|
||||
case 0:
|
||||
instruction->type = ARM_MOV;
|
||||
@@ -1679,7 +1679,7 @@ int evaluate_load_store_reg_thumb(uint16_t opcode, uint32_t address, arm_instruc
|
||||
uint8_t opc = (opcode >> 9) & 0x7;
|
||||
char *mnemonic = NULL;
|
||||
|
||||
switch(opc)
|
||||
switch (opc)
|
||||
{
|
||||
case 0:
|
||||
instruction->type = ARM_STR;
|
||||
|
||||
@@ -533,7 +533,7 @@ static int image_mot_buffer_complete(image_t *image)
|
||||
}
|
||||
else if (record_type >= 1 && record_type <= 3)
|
||||
{
|
||||
switch( record_type )
|
||||
switch ( record_type )
|
||||
{
|
||||
case 1:
|
||||
/* S1 - 16 bit address data record */
|
||||
|
||||
@@ -765,7 +765,7 @@ int mips_m4k_read_memory(struct target_s *target, uint32_t address, uint32_t siz
|
||||
|
||||
for(i = 0; i < (count*size); i += size)
|
||||
{
|
||||
switch(size)
|
||||
switch (size)
|
||||
{
|
||||
case 4:
|
||||
t32 = le_to_h_u32(&buffer[i]);
|
||||
@@ -810,7 +810,7 @@ int mips_m4k_write_memory(struct target_s *target, uint32_t address, uint32_t si
|
||||
|
||||
for(i = 0; i < (count*size); i += size)
|
||||
{
|
||||
switch(size)
|
||||
switch (size)
|
||||
{
|
||||
case 4:
|
||||
t32 = be_to_h_u32(&buffer[i]);
|
||||
|
||||
@@ -2699,7 +2699,7 @@ static int handle_wp_command(struct command_context_s *cmd_ctx, char *cmd, char
|
||||
return retval;
|
||||
// fall through
|
||||
case 3:
|
||||
switch(args[2][0])
|
||||
switch (args[2][0])
|
||||
{
|
||||
case 'r':
|
||||
type = WPT_READ;
|
||||
@@ -3460,7 +3460,7 @@ static int target_configure( Jim_GetOptInfo *goi, target_t *target )
|
||||
Jim_GetOpt_NvpUnknown( goi, nvp_config_opts, 0 );
|
||||
return e;
|
||||
}
|
||||
switch( n->value ){
|
||||
switch ( n->value ){
|
||||
case TCFG_TYPE:
|
||||
/* not setable */
|
||||
if ( goi->isconfigure ){
|
||||
@@ -3763,7 +3763,7 @@ static int tcl_target_func( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
|
||||
/* Assume blank result */
|
||||
Jim_SetEmptyResult( goi.interp );
|
||||
|
||||
switch( n->value ){
|
||||
switch ( n->value ){
|
||||
case TS_CMD_CONFIGURE:
|
||||
if ( goi.argc < 2 ){
|
||||
Jim_WrongNumArgs( goi.interp, goi.argc, goi.argv, "missing: -option VALUE ...");
|
||||
@@ -3815,7 +3815,7 @@ static int tcl_target_func( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
|
||||
c = 1;
|
||||
}
|
||||
|
||||
switch( n->value ){
|
||||
switch ( n->value ){
|
||||
case TS_CMD_MWW:
|
||||
target_buffer_set_u32( target, target_buf, b );
|
||||
b = 4;
|
||||
@@ -3866,7 +3866,7 @@ static int tcl_target_func( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
|
||||
c = 1;
|
||||
}
|
||||
b = 1; /* shut up gcc */
|
||||
switch( n->value ){
|
||||
switch ( n->value ){
|
||||
case TS_CMD_MDW:
|
||||
b = 4;
|
||||
break;
|
||||
@@ -3893,7 +3893,7 @@ static int tcl_target_func( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
|
||||
}
|
||||
|
||||
Jim_fprintf( interp, interp->cookie_stdout, "0x%08x ", (int)(a) );
|
||||
switch( b ){
|
||||
switch ( b ){
|
||||
case 4:
|
||||
for( x = 0 ; (x < 16) && (x < y) ; x += 4 ){
|
||||
z = target_buffer_get_u32( target, &(target_buf[ x * 4 ]) );
|
||||
@@ -4296,7 +4296,7 @@ static int jim_target( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
|
||||
return r;
|
||||
}
|
||||
|
||||
switch(x){
|
||||
switch (x){
|
||||
default:
|
||||
Jim_Panic(goi.interp,"Why am I here?");
|
||||
return JIM_ERR;
|
||||
|
||||
@@ -3610,7 +3610,7 @@ int xscale_handle_cp15(command_context_t *cmd_ctx, char *cmd, char **args, int a
|
||||
{
|
||||
reg_no = strtoul(args[0], NULL, 0);
|
||||
/*translate from xscale cp15 register no to openocd register*/
|
||||
switch(reg_no)
|
||||
switch (reg_no)
|
||||
{
|
||||
case 0:
|
||||
reg_no = XSCALE_MAINID;
|
||||
|
||||
Reference in New Issue
Block a user