summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Expand)AuthorAgeFilesLines
* Use (void) to throw away a function result, not (void *) !Guido van Rossum1998-05-011-1/+1
* When following symlinks to the real executable, use a loop so aGuido van Rossum1998-04-291-1/+2
* Still somewhat experimental speedup. This appears to speed up theGuido van Rossum1998-04-291-9/+110
* Add a new method of interpreter objects, interpaddr(). This returnsGuido van Rossum1998-04-291-0/+13
* Made lint a bit happier.Fred Drake1998-04-291-54/+80
* On the Mac a call to TkMacInitMenus is needed. Also, we passGuido van Rossum1998-04-281-2/+31
* Add a declaration for strdup() for the Mac.Guido van Rossum1998-04-281-0/+3
* Generate the clear() method manually (calling __GLclear(), anotherGuido van Rossum1998-04-281-1/+12
* Type casts, and added a strdup() declaration for the Mac.Guido van Rossum1998-04-281-4/+7
* Instead of calling mktime(), which has all sorts of unwanted sideGuido van Rossum1998-04-271-6/+2
* Purported fixes for 64-bit platforms with help from John JorgensenGuido van Rossum1998-04-233-69/+105
* Tiny patch for zlib 1.1.2Guido van Rossum1998-04-231-0/+1
* In method & function tables, added a cast for the function pointers to keepFred Drake1998-04-211-16/+21
* Add #ifdefs so Tcl_Finalize isn't referenced when it's not defined.Guido van Rossum1998-04-201-0/+2
* Typo in usage message.Guido van Rossum1998-04-131-1/+1
* The documentation threatened it would happen -- the functions that shouldFred Drake1998-04-131-35/+97
* Don't allow unescaped newlines in doc strings.Guido van Rossum1998-04-131-2/+1
* Added support for pickling ast objects.Fred Drake1998-04-131-14/+65
* Module docstring indicated seek() isn't implemented, but it is.Fred Drake1998-04-111-1/+1
* Make new gcc -Wall happyGuido van Rossum1998-04-106-14/+29
* Address warnings issued by the MSVC++ compilerGuido van Rossum1998-04-102-3/+2
* Delete reference to reopmodule.c. Add comment about soundex' obsolescence.Guido van Rossum1998-04-101-2/+1
* Delete this obsolete module.Guido van Rossum1998-04-101-1053/+0
* Add -t option to set the Py_TabcheckFlag flag.Guido van Rossum1998-04-101-5/+10
* Support raise with no parameters.Fred Drake1998-04-101-3/+4
* remove C++ entries of the form Class::methodGuido van Rossum1998-04-091-2/+6
* Threading speedup patches by Christopher Lindblad <cjl@infoseek.com>.Guido van Rossum1998-04-092-24/+192
* Add not_ and __not__.Guido van Rossum1998-04-091-0/+2
* AMK's latestGuido van Rossum1998-04-034-90/+168
* Use %.17f to format floats/doublesGuido van Rossum1998-04-031-1/+1
* Export MPZType -- the type of mpz objects....Fred Drake1998-04-031-1/+9
* Check for boundary errors in [r]find -- find("x", "", 2) should return -1.Guido van Rossum1998-03-241-2/+2
* patch for re.sub bug, by AMK.Guido van Rossum1998-03-103-6/+7
* Check for HAVE_MKTIME (if you don't have it, some tests will fail, butGuido van Rossum1998-03-061-0/+9
* Don't use setvbuf unless HAVE_SETVBUF is defined.Guido van Rossum1998-03-061-4/+12
* Clear class_map in constructor so that when it later detects an errorGuido van Rossum1998-03-061-1/+2
* Raise ValueError: "unconvertible time" when ctime() returns NULL,Guido van Rossum1998-03-031-0/+4
* Doc strings added by Mitch Chapman.Guido van Rossum1998-03-031-7/+67
* Doc strings added by Mitch Chapman.Guido van Rossum1998-03-031-4/+32
* Doc strings added by Mitch Chapman.Guido van Rossum1998-03-031-19/+107
* Looks like mention of http://quest.jpl.nasa.gov/zlib/ got added butKen Manheimer1998-03-031-1/+1
* A bug in PCRE could cause core dumps in patterns such asGuido van Rossum1998-02-201-2/+7
* Delete the 'exit' command from the Tcl interpreter -- it would allowGuido van Rossum1998-02-191-0/+3
* Forgot to return NULL in joinfields() when a type error was detectedGuido van Rossum1998-02-061-1/+3
* Updated URL for zlib.Guido van Rossum1998-02-061-1/+2
* Register Tcl_Finalize as a Python exit handler.Guido van Rossum1998-02-061-1/+4
* Don't store the exception info from an unhandled exception in a threadGuido van Rossum1998-02-061-1/+1
* - Use Py_GetPythonHome() instead of getenv("PYTHONHOME").Guido van Rossum1998-02-061-2/+4
* Renamed Jim's PyErr_[JF]Format() to cPickle_ErrFormat(). It's not aGuido van Rossum1998-01-191-11/+10
* Instead of a single exists(), differentiate between files, modules,Guido van Rossum1998-01-191-13/+70
l esc">\n') { ++i; } if(i == begin || *(i-1) != '\r') { // Include this portion of the line. line += std::string(begin, i-begin); } else { // Include this portion of the line. // Don't include the \r in a \r\n pair. line += std::string(begin, i-1-begin); } if(i != end) { // Completed a line. this->CheckLine(line.c_str()); line = ""; // Skip the newline character. ++i; } } } } if(line.length()) { // Partial last line. this->CheckLine(line.c_str()); } return true; } //---------------------------------------------------------------------------- void cmLoadCacheCommand::CheckLine(const char* line) { // Check one line of the cache file. std::string var; std::string value; if(this->ParseEntry(line, var, value)) { // Found a real entry. See if this one was requested. if(this->VariablesToRead.find(var) != this->VariablesToRead.end()) { // This was requested. Set this variable locally with the given // prefix. var = this->Prefix + var; if(value.length()) { m_Makefile->AddDefinition(var.c_str(), value.c_str()); } else { m_Makefile->RemoveDefinition(var.c_str()); } } } } //---------------------------------------------------------------------------- bool cmLoadCacheCommand::ParseEntry(const char* entry, std::string& var, std::string& value) { // input line is: key:type=value cmRegularExpression reg("^([^:]*):([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); // input line is: "key":type=value cmRegularExpression regQuoted("^\"([^\"]*)\":([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); bool flag = false; if(regQuoted.find(entry)) { var = regQuoted.match(1); value = regQuoted.match(3); flag = true; } else if (reg.find(entry)) { var = reg.match(1); value = reg.match(3); flag = true; } // if value is enclosed in single quotes ('foo') then remove them // it is used to enclose trailing space or tab if (flag && value.size() >= 2 && value[0] == '\'' && value[value.size() - 1] == '\'') { value = value.substr(1, value.size() - 2); } return flag; }