Lines Matching refs:it
449 struct pair *it = symbols->s_pairs[ i ]; local
451 nw->p_name = it->p_name;
452 nw->p_value = it->p_value;
455 while ( it->p_next )
458 it = it->p_next;
460 nw->p_name = it->p_name;
461 nw->p_value = it->p_value;
479 struct pair *it = symbols->s_pairs[ i ]; local
481 while ( it )
483 next = it->p_next;
484 free( it );
485 it = next;
496 struct pair *it; local
515 it = (*symbols)->s_pairs[ hashval ];
518 if ( it == NULL )
520 it = (*symbols)->s_pairs[ hashval ] = (struct pair*) malloc( sizeof( struct pair ) );
521 it->p_name = copy( name );
522 it->p_value = copy( val );
523 it->p_next = NULL;
525 else if ( strcmp( it->p_name, name ) == 0 )
527 it->p_value = copy( val );
531 while ( it->p_next && ( strcmp( it->p_next->p_name, name ) != 0 ) )
533 it = it->p_next;
535 if ( it->p_next )
536 it->p_next->p_name = copy( name );
539 it->p_next = (struct pair*) malloc( sizeof( struct pair ) );
540 it->p_next->p_name = copy( name );
541 it->p_next->p_value = copy( val );
542 it->p_next->p_next = NULL;
551 struct pair *it; local
556 it = symbols->s_pairs[ hash( symbol ) ];
558 while ( it && ( strcmp( it->p_name, symbol ) != 0 ) )
560 it = it->p_next;
562 if ( it )
563 return it->p_value;
573 struct pair *it; local
579 it = symbols->s_pairs[ hashval ];
582 if ( it == NULL )
584 else if ( strcmp( it->p_name, symbol ) == 0 )
586 if ( it->p_next )
589 it->p_name = it->p_next->p_name;
590 it->p_value = it->p_next->p_value;
591 tmp = it->p_next->p_next;
592 free( it->p_next );
593 it->p_next = tmp;
597 free( it );
603 while ( it->p_next && ( strcmp( it->p_next->p_name, symbol ) != 0 ) )
605 it = it->p_next;
607 if ( it->p_next )
609 struct pair *tmp = it->p_next;
610 it->p_next = it->p_next->p_next;