x = -1;
t = all_targets;
- while( t ){
+ while ( t ){
if ( x < t->target_number ){
x = (t->target_number)+1;
}
/* number is 0 based */
x = -1;
t = all_targets;
- while(t){
+ while (t){
if ( x < t->target_number ){
x = t->target_number;
}
reg_cache_t *cache = target->reg_cache;
count = 0;
- while(cache)
+ while (cache)
{
int i;
for (i = 0; i < cache->num_regs; i++)
reg_cache_t *cache = target->reg_cache;
count = 0;
- while(cache)
+ while (cache)
{
int i;
for (i = 0; i < cache->num_regs; i++)
teap = target->event_action;
done = 0;
- while( teap ){
+ while ( teap ){
if ( teap->event == e ){
done = 1;
LOG_DEBUG( "target: (%d) %s (%s) event: %d (%s) action: %s\n",
int e;
/* parse config or cget options ... */
- while( goi->argc > 0 ){
+ while ( goi->argc > 0 ){
Jim_SetEmptyResult( goi->interp );
/* Jim_GetOpt_Debug( goi ); */
teap = target->event_action;
/* replace existing? */
- while( teap ){
+ while ( teap ){
if ( teap->event == (enum target_event)n->value ){
break;
}
/* loop for more e*/
break;
}
- } /* while( goi->argc ) */
+ } /* while ( goi->argc ) */
/* done - we return */
/* convert to "bytes" */
c = c * b;
/* count is now in 'BYTES' */
- while( c > 0 ){
+ while ( c > 0 ){
y = c;
if ( y > 16 ){
y = 16;
}
}
/* space pad */
- while( x < 16 ){
+ while ( x < 16 ){
target_buf[x] = ' ';
x++;
}
target->cmd_name );
command_print( cmd_ctx, "%-25s | Body", "Event");
command_print( cmd_ctx, "------------------------- | ----------------------------------------");
- while( teap ){
+ while ( teap ){
command_print( cmd_ctx,
"%-25s | %s",
Jim_Nvp_value2name_simple( nvp_target_event, teap->event )->name,
{
target_t **tpp;
tpp = &(all_targets);
- while( *tpp ){
+ while ( *tpp ){
tpp = &( (*tpp)->next );
}
*tpp = target;
}
Jim_SetResult( goi.interp, Jim_NewListObj( goi.interp, NULL, 0 ) );
target = all_targets;
- while( target ){
+ while ( target ){
Jim_ListAppendElement( goi.interp,
Jim_GetResult(goi.interp),
Jim_NewStringObj( goi.interp, target->cmd_name, -1 ) );