Lines Matching defs:fname

247     String getSuffix(const String &fname);
305 bool addIncludeFile(FileRec *frec, const String &fname);
310 bool scanFile(const String &fname, FileRec *frec);
323 String &fname,
528 String DepTool::getSuffix(const String &fname)
530 if (fname.size() < 2)
532 String::size_type pos = fname.find_last_of('.');
533 if (pos == fname.npos)
536 String res = fname.substr(pos, fname.size()-pos);
567 String fname;
573 fname.append(dirname);
574 fname.append("/");
576 fname.append(s);
577 if (stat(fname.c_str(), &finfo)<0)
581 else if (excludes.find(fname) != excludes.end())
583 //trace("excluded file/dir: %s", fname.c_str());
584 excludesUsed.insert(fname);
588 //trace("directory: %s", fname.c_str());
589 subdirs.push_back(fname);
593 trace("not regular: %s", fname.c_str());
600 parseName(fname, path, basename, sfx);
608 allFiles[fname] = fe;
618 allFiles[fname] = fe;
670 String fname = *iter;
671 std::set<String>::iterator citer = excludesUsed.find(fname);
673 excludesUnused.insert(fname);
799 bool DepTool::scanFile(const String &fname, FileRec *frec)
801 FILE *f = fopen(fname.c_str(), "r");
804 error("Could not open '%s' for reading", fname.c_str());
890 String fname = iter->first;
891 if (ofile->files.find(fname) != ofile->files.end())
893 //trace("file '%s' already seen", fname.c_str());
897 ofile->files[fname] = child;
914 String &fname,
922 frec->files.find(fname);
970 String fname = include->path;
971 if (fname.size()>0)
972 fname.append("/");
973 fname.append(include->baseName);
974 fname.append(".o");
975 depFiles[fname] = ofile;
978 //trace("ofile:%s", fname.c_str());
985 String fname = iter->first;
990 refFiles[fname] = hfile;
991 //trace("hfile:%s", fname.c_str());
993 processReference(hfile, fname, 0);
1064 String fname = *uiter;
1065 fprintf(f, "%s\n", fname.c_str());
1075 String fname = *uiter;
1076 fprintf(f, "%s\n", fname.c_str());
1148 String fname = frec->path;
1149 if (fname.size()>0)
1150 fname.append("/");
1151 fname.append(frec->baseName);
1152 fname.append(".o");
1153 fprintf(f, " <obj name='%s'/>\n", fname.c_str());
1172 String fname = iter->first;
1173 fprintf(f, "<file name='%s'>\n", fname.c_str());
1228 String fname = frec->path;
1229 if (fname.size()>0)
1230 fname.append("/");
1231 fname.append(frec->baseName);
1232 fname.append(".o");
1233 fprintf(f, "%s", fname.c_str());
1248 String fname = iter->first;
1249 fprintf(f, "%s:", fname.c_str());
1308 String fname = iter->first;
1309 fprintf(f, "<file name='%s'>\n", fname.c_str());
1346 String fname = iter->first;
1347 fprintf(f, "### %s\n", fname.c_str());
1410 String fname = frec->path;
1411 if (fname.size()>0)
1412 fname.append("/");
1413 fname.append(frec->baseName);
1414 fname.append(".");
1415 fname.append(frec->suffix);
1416 fprintf(f, "%s\n", fname.c_str());