Lines Matching refs:source

74  *	It then scans the list to find the first possible source file that
76 * (target name less target suffix) and the source suffix and checking
116 register Name source;
157 * This will make finding the synthesized source possible.
180 /* Build the synthesized source name. */
196 source = getname_fn(sourcename, FIND_LENGTH, false, &name_found);
198 * If the source file is not registered as
199 * a file, this source suffix did not match.
202 (void) exists(source);
204 if (!source->stat.is_file) {
208 free_name(source);
222 if(source->string_mb[source->hash.length - 1] == '~' &&
228 tmpbuf = getmem(source->hash.length + 8);
230 memset(tmpbuf,0,source->hash.length + 8);
231 source->string_mb[source->hash.length - 1] = '\0';
232 if(p = (char *) memchr((char *)source->string_mb,'/',source->hash.length))
235 if(np = (char *) memchr((char *)p+1,'/',source->hash.length - (p - source->string_mb))) {
240 strncpy(tmpbuf, source->string_mb, p - source->string_mb + 1);
243 retmem((wchar_t *) source->string_mb);
244 source->string_mb = tmpbuf;
248 strcat(tmpbuf, source->string_mb);
249 retmem((wchar_t *) source->string_mb);
250 source->string_mb = tmpbuf;
253 source->hash.length = strlen(source->string_mb);
254 if(exists(source) == file_doesnt_exist)
260 free_name(source);
266 if(exists(source) == file_doesnt_exist) {
268 free_name(source);
277 store_name(source);
280 * The source file is a file.
283 if (dependency_exists(source,
286 result = (Doname) source->state;
289 result = doname(source,
294 result = doname(source,
300 result = target_can_be_built(source);
306 free_name(source);
315 * If we still can't build the source,
319 if (source->stat.time == file_doesnt_exist) {
321 free_name(source);
327 store_name(source);
331 enter_dependency(line, source, false);
336 store_name(source);
341 store_name(source);
357 if (source->depends_on_conditional) {
369 if ((source->stat.time > (*command)->body.line.dependency_time) &&
374 source->string_mb,
375 time_to_string(source->
388 source->stat.time);
408 source->string_mb);
424 enter_dependency(line, source, false);
438 MBSTOWCS(wcs_buffer, source->string_mb);
445 line->body.line.less = source;
447 add_target_to_chain(source, &(line->body.line.query));
774 * For each target match it checks if the corresponding source exists.