- Purely mechanical transformations to the source files.
- Rename 'jtag_TapByString' as 'jtag_tap_by_string.'
git-svn-id: svn://svn.berlios.de/openocd/trunk@2065
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
*tap = t;
}
-jtag_tap_t *jtag_TapByString( const char *s )
+jtag_tap_t *jtag_tap_by_string( const char *s )
{
jtag_tap_t *t;
char *cp;
cp = "(unknown)";
t = NULL;
} else {
- t = jtag_TapByString( cp );
+ t = jtag_tap_by_string( cp );
}
if( t == NULL ){
Jim_SetResult_sprintf(interp,"Tap: %s is unknown", cp );
for (i = 0; i < num_fields; i++)
{
- tap = jtag_TapByString( args[i*2] );
+ tap = jtag_tap_by_string( args[i*2] );
if (tap==NULL)
{
command_print( cmd_ctx, "Tap: %s unknown", args[i*2] );
extern jtag_tap_t* jtag_all_taps(void);
extern const char *jtag_tap_name(const jtag_tap_t *tap);
extern jtag_tap_t* jtag_tap_by_position(int n);
-extern jtag_tap_t* jtag_TapByString(const char* dotted_name);
+extern jtag_tap_t* jtag_tap_by_string(const char* dotted_name);
extern jtag_tap_t* jtag_TapByJimObj(Jim_Interp* interp, Jim_Obj* obj);
extern jtag_tap_t* jtag_tap_by_abs_position(int abs_position);
extern int jtag_NumEnabledTaps(void);
return ERROR_PLD_DEVICE_INVALID;
}
- tap = jtag_TapByString( args[1] );
+ tap = jtag_tap_by_string( args[1] );
if( tap == NULL ){
command_print( cmd_ctx, "Tap: %s does not exist", args[1] );
return ERROR_OK;
jtag_tap_t * tap;
target_t * t;
- tap = jtag_TapByString(arg);
+ tap = jtag_tap_by_string(arg);
if (!tap)
return 0;
return ERROR_FAIL;
}
- tap = jtag_TapByString( args[1] );
+ tap = jtag_tap_by_string( args[1] );
if (tap == NULL)
{
command_print(cmd_ctx, "Tap: %s does not exist", args[1] );
if (strcmp(args[0], "plain") != 0)
{
- tap = jtag_TapByString( args[0] );
+ tap = jtag_tap_by_string( args[0] );
if (!tap )
{
command_print( cmd_ctx, "Tap: %s unknown", args[0] );