Lines Matching refs:source

116 	register Name		source;  in find_suffix_rule()  local
196 source = getname_fn(sourcename, FIND_LENGTH, false, &name_found); in find_suffix_rule()
202 (void) exists(source); in find_suffix_rule()
204 if (!source->stat.is_file) { in find_suffix_rule()
208 free_name(source); in find_suffix_rule()
222 if(source->string_mb[source->hash.length - 1] == '~' && in find_suffix_rule()
228 tmpbuf = getmem(source->hash.length + 8); in find_suffix_rule()
230 memset(tmpbuf,0,source->hash.length + 8); in find_suffix_rule()
231 source->string_mb[source->hash.length - 1] = '\0'; in find_suffix_rule()
232 if(p = (char *) memchr((char *)source->string_mb,'/',source->hash.length)) in find_suffix_rule()
235 if(np = (char *) memchr((char *)p+1,'/',source->hash.length - (p - source->string_mb))) { in find_suffix_rule()
240 strncpy(tmpbuf, source->string_mb, p - source->string_mb + 1); in find_suffix_rule()
243 retmem((wchar_t *) source->string_mb); in find_suffix_rule()
244 source->string_mb = tmpbuf; in find_suffix_rule()
248 strcat(tmpbuf, source->string_mb); in find_suffix_rule()
249 retmem((wchar_t *) source->string_mb); in find_suffix_rule()
250 source->string_mb = tmpbuf; in find_suffix_rule()
253 source->hash.length = strlen(source->string_mb); in find_suffix_rule()
254 if(exists(source) == file_doesnt_exist) in find_suffix_rule()
260 free_name(source); in find_suffix_rule()
266 if(exists(source) == file_doesnt_exist) { in find_suffix_rule()
268 free_name(source); in find_suffix_rule()
277 store_name(source); in find_suffix_rule()
283 if (dependency_exists(source, in find_suffix_rule()
286 result = (Doname) source->state; in find_suffix_rule()
289 result = doname(source, in find_suffix_rule()
294 result = doname(source, in find_suffix_rule()
300 result = target_can_be_built(source); in find_suffix_rule()
306 free_name(source); in find_suffix_rule()
319 if (source->stat.time == file_doesnt_exist) { in find_suffix_rule()
321 free_name(source); in find_suffix_rule()
327 store_name(source); in find_suffix_rule()
331 enter_dependency(line, source, false); in find_suffix_rule()
336 store_name(source); in find_suffix_rule()
341 store_name(source); in find_suffix_rule()
357 if (source->depends_on_conditional) { in find_suffix_rule()
369 if ((source->stat.time > (*command)->body.line.dependency_time) && in find_suffix_rule()
374 source->string_mb, in find_suffix_rule()
375 time_to_string(source-> in find_suffix_rule()
388 source->stat.time); in find_suffix_rule()
408 source->string_mb); in find_suffix_rule()
424 enter_dependency(line, source, false); in find_suffix_rule()
438 MBSTOWCS(wcs_buffer, source->string_mb); in find_suffix_rule()
445 line->body.line.less = source; in find_suffix_rule()
447 add_target_to_chain(source, &(line->body.line.query)); in find_suffix_rule()