Lines Matching +refs:val +refs:file

27  * To use this file, compile with:
37 * gettimeofday() might be missing. If so, just build this file with
916 * Parse a named XML file. The file is loaded like a data file;
918 * @param fileName the name of the file to read
1982 { URI::SCHEME_FILE, "file:", 0 },
2369 long val = strtol(pstr, &endStr, 10);
2371 port = val;
2617 error("unknown file:%s", childName.c_str());
2674 void setDirectory(const String &val)
2675 { directory = val; }
2680 void setFiles(const std::vector<String> &val)
2681 { files = val; }
2692 void setIncludes(const std::vector<String> &val)
2693 { includes = val; }
2704 void setExcludes(const std::vector<String> &val)
2705 { excludes = val; }
2797 void setDirectory(const String &val)
2798 { directory = val; }
2803 void setFiles(const std::vector<String> &val)
2804 { files = val; }
2853 * Base class for all classes in this file
2865 * Return the URI of the file associated with this object
2918 * Set the current line number in the file
2920 void setLine(int val)
2921 { line = val; }
2924 * Get the current line number in the file
2933 virtual void setProperty(const String &name, const String &val)
2935 properties[name] = val;
2943 String val;
2946 val = iter->second;
2948 if (!getSubstitutions(val, sval))
2968 * The path to the file associated with this object
3055 std::vector<String> tokenize(const String &val,
3156 * Copy a file from one name to another. Perform only if needed
3161 * Delete a file
3163 bool removeFile(const String &file);
3166 * Tests if the file exists
3171 * Tests if the file exists and is a regular file
3176 * Tests if the file exists and is a directory
3275 virtual void setPath(const String &val)
3276 { path = val; }
3285 * Allow the user to override the prefix in the file
3287 virtual void setPrefix(const String &val)
3288 { prefix = val; }
3356 * Read a file for its details
3361 * Read a file for its details
3527 * Universal way. Parse the file directly. Not so safe from
3540 error("could not open SVN 'entries' file");
3688 * Return the suffix, if any, of a file name
4287 error("cannot stat file:%s", childNative.c_str());
4352 error("unknown file:%s", childName.c_str());
4470 String val;
4471 if (!pkgConfigRecursive(depPkgName, path, prefix, query, val, deplist))
4477 result.append(val);
4490 String val;
4491 if (!pkgConfigRecursive(packageName, path, prefix, query, val, deplist))
4493 result = val;
4521 String val;
4522 if (!pkgConfigQuery(varname, 0, val))
4524 result = val;
4530 String val;
4531 if (!pkgConfigQuery(varname, 1, val))
4533 result = val;
4539 String val;
4540 if (!pkgConfigQuery(varname, 2, val))
4542 result = val;
4548 String val;
4553 if (!bzrRevno.query(val))
4555 result = "r"+val;
4557 /*if (!svnInfo.query(varname, val))
4559 result = val;*/
4596 String val;
4623 val.append(varval2);
4635 val.push_back(ch);
4638 result = val;
4678 String val = eval(s, "false");
4679 if (val.size()==0)
4681 if (val == "true" || val == "TRUE")
4692 int val = atoi(s.c_str());
4694 return val;
4809 //Get the base directory for reading file names
4843 * since no directory scanning is needed. The file names are listed
4851 //Look for child tags, namely "file"
4857 if (tagName == "file")
4862 error("<file> element requires name="" attribute");
4875 //Get the base directory for reading file names
4905 error("mkdir: file %s exists but is not a directory",
4984 error("cannot stat file:%s", cnative);
5000 //trace("DEL file: %s", childName.c_str());
5026 * Copy a file from one name to another. Perform only if needed
5035 error("source file %s for copy does not exist",
5103 * Delete a file
5105 bool MakeBase::removeFile(const String &file)
5107 String native = getNativePath(file);
5129 error("Failed to delete file %s: %s", native.c_str(), strerror(errno));
5138 error("File %s does not exist or is not a regular file", native.c_str());
5153 "Failed to delete file %s: %s", native.c_str());
5167 * Tests if the file exists
5183 * Tests if the file exists and is a regular file
5195 //check the file mode
5203 * Tests if the file exists and is a directory
5215 //check the file mode
5324 String val;
5325 int pos2 = getword(pos, val);
5329 //trace("val %s", val.c_str());
5330 requireList.push_back(val);
5340 long val = strtol(s, &ends, 10);
5344 return val;
5548 error("cannot open file '%s' for reading", fileName.c_str());
5601 * Class which holds information for each file.
5645 * Directory part of the file name
5660 * Type of file: CFILE, HFILE, OFILE
5725 * Directory part of the file name
5808 virtual void setSourceDirectory(const String &val)
5809 { sourceDir = val; }
5824 * Creates the list of all file names which will be
5838 * Generates the forward dependency list, saving the file
5844 * Load a dependency file
5849 * Load a dependency file, generating one if necessary
5855 * Save a dependency file
5956 //clear output file list
6010 * Generate our internal file list.
6123 * Add an include file name to a file record. If the name
6135 //h file in same dir
6173 * Lightly parse a file to find the #include directives. Do
6267 * a given file is dependent.
6277 //trace("file '%s' already seen", fname.c_str());
6295 * Generate the file dependency list.
6327 //add the .c file first? no, don't
6610 virtual void setType(int val)
6611 { type = val; }
7102 taskstatus("copy %s to file %s", fullSource.c_str(),
7106 error("copy : file %s does not exist", fullSource.c_str());
7116 taskstatus("1 file copied");
7181 taskstatus("%d file(s) copied", nrFiles);
7183 else //file source
7185 //For file->dir we want only the basename of
7203 taskstatus("file %s to new dir : %s", fullSource.c_str(),
7207 error("copy : file %s does not exist", fullSource.c_str());
7217 taskstatus("1 file copied");
7228 if (!parent.getAttribute(elem, "file", fileNameOpt))
7262 error("<copy> can only have one of : file= and <fileset>");
7277 error("<copy> tofile= must be associated with : file=");
7282 error("<copy> todir= must be associated with : file= or <fileset>");
7400 * Generate the CxxTest root file
7537 // Note that the log file names are based on the exact name used to call cxxtests (it uses argv[0] + ".log"/".xml")
7632 taskstatus("file: %s", fileName.c_str());
7639 //error("Could not delete file '%s'", fullName.c_str());
7663 if (!parent.getAttribute(elem, "file", fileNameOpt))
7673 error("<delete> can have one attribute of file= or dir=");
7678 error("<delete> must have one attribute of file= or dir=");
8046 error("<strip> symbol file failed : %s", errbuf.c_str());
8127 * Create a named file
8171 if (!parent.getAttribute(elem, "file", fileNameOpt))
8177 error("<makefile> requires 'file=\"filename\"' attribute");
8294 //Pick the output file name
8420 String val = "";
8422 val = pkgconfig.getCflags();
8424 val =pkgconfig.getLibs();
8426 val = pkgconfig.getAll();
8432 taskstatus("property %s = '%s'", propName.c_str(), val.c_str());
8433 parent.setProperty(propName, val);
8519 if (!parent.getAttribute(elem, "file", fileNameOpt))
8523 error("<ranlib> requires 'file=\"fileNname\"' attribute");
8538 * Compile a resource file into a binary object
8583 if (!parent.getAttribute(elem, "file", fileNameOpt))
8709 if (!parent.getAttribute(elem, "file", fileNameOpt))
8831 if (!parent.getAttribute(elem, "file", fileNameOpt))
8893 error("<strip> symbol file failed : %s", errbuf.c_str());
8913 if (!parent.getAttribute(elem, "file", fileNameOpt))
8919 error("<strip> requires 'file=\"fileName\"' attribute");
8978 if (!parent.getAttribute(elem, "file", fileNameOpt))
8982 error("<touch> requires 'file=\"fileName\"' attribute");
9139 virtual void setName(const String &val)
9140 { name = val; }
9151 virtual void setDescription(const String &val)
9152 { description = val; }
9157 virtual void addDependency(const String &val)
9158 { deps.push_back(val); }
9163 virtual void parseDependencies(const String &val)
9164 { deps = tokenize(val, ", "); }
9181 virtual void setIf(const String &val)
9182 { ifVar = val; }
9193 virtual void setUnless(const String &val)
9194 { unlessVar = val; }
9199 virtual void addTask(Task *val)
9200 { tasks.push_back(val); }
9474 * Perform a file globbing
9644 String val;
9650 val.push_back(ch);
9653 result = val;
9669 error("could not open property file %s", fileName.c_str());
9687 String val;
9692 error("property file %s, line %d: expected keyword",
9709 error("property file %s, line %d: expected '='",
9721 p2 = getword(p, s, val);
9724 error("property file %s, line %d: expected value",
9732 error("property file %s, line %d: expected value",
9736 val = s.substr(p);
9739 //allow property to be set, even if val=""
9741 //trace("key:'%s' val:'%s'", key.c_str(), val.c_str());
9747 val = iter->second;
9749 key.c_str(), val.c_str());
9751 properties[key] = val;
9773 String val;
9774 if (!getAttribute(elem, "value", val))
9776 if (val.size() > 0)
9778 properties[attrVal] = val;
9782 if (!getAttribute(elem, "location", val))
9785 properties[attrVal] = val;
9792 val = iter->second;
9794 attrVal.c_str(), val.c_str());
9795 properties[attrVal] = val;
9798 else if (attrName == "file")
10107 static bool parseProperty(const String &s, String &name, String &val)
10127 val.push_back(ch);
10154 printf(" -file <file> use given buildfile\n");
10155 printf(" -f <file> ''\n");
10195 else if (arg == "-f" || arg == "-file")