| 155 | */ |
| 156 | |
| 157 | TARGET * bindtarget( OBJECT * const target_name ) |
| 158 | { |
| 159 | int found; |
| 160 | TARGET * t; |
| 161 | |
| 162 | if ( !targethash ) |
| 163 | targethash = hashinit( sizeof( TARGET ), "targets" ); |
| 164 | |
| 165 | t = (TARGET *)hash_insert( targethash, target_name, &found ); |
| 166 | if ( !found ) |
| 167 | { |
| 168 | memset( (char *)t, '\0', sizeof( *t ) ); |
| 169 | t->name = object_copy( target_name ); |
| 170 | t->boundname = object_copy( t->name ); /* default for T_FLAG_NOTFILE */ |
| 171 | } |
| 172 | |
| 173 | return t; |
| 174 | } |
| 175 | |
| 176 | |
| 177 | static void bind_explicitly_located_target( void * xtarget, void * data ) |
no test coverage detected