Lines Matching refs:rec
118 FileRecord rec; in add_file() local
119 rec.listFile = listFile; in add_file()
120 rec.listLine = listLine; in add_file()
121 rec.fileOp = fileOp; in add_file()
122 rec.sourceName = sourceName; in add_file()
123 rec.outName = outName; in add_file()
124 files->push_back(rec); in add_file()
331 locate(FileRecord* rec, const vector<string>& search) in locate() argument
333 if (rec->fileOp == FILE_OP_REMOVE) { in locate()
335 rec->sourceMod = 0; in locate()
336 rec->sourceSize = 0; in locate()
337 rec->sourceIsDir = false; in locate()
345 string full = path_append(*it, rec->sourceName); in locate()
349 rec->sourceBase = *it; in locate()
350 rec->sourcePath = full; in locate()
351 rec->sourceMod = st.st_mtime; in locate()
352 rec->sourceSize = st.st_size; in locate()
353 rec->sourceIsDir = S_ISDIR(st.st_mode); in locate()
359 rec->listFile.c_str(), rec->listLine, rec->sourceName.c_str()); in locate()
364 stat_out(const string& base, FileRecord* rec) in stat_out() argument
366 rec->outPath = path_append(base, rec->outName); in stat_out()
370 err = stat(rec->outPath.c_str(), &st); in stat_out()
372 rec->outMod = st.st_mtime; in stat_out()
373 rec->outSize = st.st_size; in stat_out()
374 rec->outIsDir = S_ISDIR(st.st_mode); in stat_out()
376 rec->outMod = 0; in stat_out()
377 rec->outSize = 0; in stat_out()
378 rec->outIsDir = false; in stat_out()
394 const FileRecord& rec, vector<FileRecord>*more) in add_more() argument
397 r.listFile = rec.listFile; in add_more()
398 r.listLine = rec.listLine; in add_more()
399 r.sourceName = path_append(rec.sourceName, entry); in add_more()
400 r.sourcePath = path_append(rec.sourceBase, r.sourceName); in add_more()
407 r.outName = path_append(rec.outName, entry); in add_more()
424 list_dir(const string& path, const FileRecord& rec, in list_dir() argument
428 string full = path_append(rec.sourceBase, rec.sourceName); in list_dir()
449 add_more(entry, is_directory, rec, more); in list_dir()
457 list_dir(*it, rec, excludes, more); in list_dir()
464 list_dir(const FileRecord& rec, const vector<string>& excludes, in list_dir() argument
467 return list_dir("", rec, excludes, files); in list_dir()