summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Remobe beopen/cnri/cwi copyrights, according to CNRI instructions.Guido van Rossum2000-08-031-10/+0
| | | | | | This doesn't change the copyright status for these files -- just the markings! Doing it on the main branch for these three files for which the HEAD revision was pushed back into 1.6.
* -- added recursion limit (currently ~10,000 levels)Fredrik Lundh2000-08-032-158/+172
| | | | | | | -- improved error messages -- factored out SRE_COUNT; the same code is used by SRE_OP_REPEAT_ONE_TEMPLATE -- minor cleanups
* Changing the CNRI copyright notice according to CNRI's instructions.Guido van Rossum2000-08-034-4/+4
| | | | | This is a notice without a date, which apparently is not a claim to copyright but only advice to the reader. IANAL. :-)
* Use METH_OLDARGS instead of numeric constant 0 in method def. tablesAndrew M. Kuchling2000-08-039-55/+78
|
* Use METH_VARARGS instead of numeric constant 1 in method def. tablesAndrew M. Kuchling2000-08-0312-108/+179
|
* Use METH_VARARGS instead of numeric constant 1Andrew M. Kuchling2000-08-031-12/+22
|
* Rob Hooft (Patch #101046): use PyArg_ParseTuple everywhere.Guido van Rossum2000-08-021-21/+27
|
* Fix for bug #110651 (Jitterbug PR#343): only use the low 8 bits of an octalAndrew M. Kuchling2000-08-021-1/+1
| | | | escape, as documented in the comment for the check_escape() function
* final 0.9.8 updates:Fredrik Lundh2000-08-012-40/+72
| | | | | -- added REPEAT_ONE operator -- added ANY_ALL operator (used to represent "(?s).")
* -- fixed width calculations for alternationsFredrik Lundh2000-08-012-28/+191
| | | | | | | -- fixed literal check in branch operator (this broke test_tokenize, as reported by Mark Favas) -- added REPEAT_ONE operator (still not enabled, though) -- added some debugging stuff (maxlevel)
* Removed decl of unreferenced vrbl.Tim Peters2000-08-011-1/+0
|
* SRE 0.9.8: passes the entire test suiteFredrik Lundh2000-08-013-481/+324
| | | | | | | | | -- reverted REPEAT operator to use "repeat context" strategy (from 0.8.X), but done right this time. -- got rid of backtracking stack; use nested SRE_MATCH calls instead (should probably put it back again in 0.9.9 ;-) -- properly reset state in scanner mode -- don't use aggressive inlining by default
* Update e-mail addressAndrew M. Kuchling2000-08-011-1/+1
|
* replaced PyArgs_Parse by PyArgs_ParseTuplePeter Schneider-Kamp2000-07-311-34/+39
| | | | changed error messages for extend method from "append" to "extend"
* added count, extend, index, pop and remove to arraymodulePeter Schneider-Kamp2000-07-311-72/+168
|
* merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp2000-07-3113-32/+0
| | | | marked my*.h as obsolete
* More Windows changes.Mark Hammond2000-07-301-24/+38
| | | | | | | | * After discussion with Trent, all INT_PTR references have been removed in favour of the HANDLE it should always have been. Trent can see no 64bit issues here. * In this process, I noticed that the close operation was dangerous, in that we could end up passing bogus results to the Win32 API. These result of the API functions passed the bogus values were never (and still are not) checked, but this is closer to "the right thing" (tm) than before. Tested on Windows and Linux.
* Fixes for Windows (but also tested on Linux). Test suite now completes, and ↵Mark Hammond2000-07-301-6/+46
| | | | | | this module should not leak in the face of errors. Checkin that replaces the INT_PTR types with HANDLEs still TBD (but as that is a "spelling" patch, rather than a functional one, I will commit it seperately.
* Added list of missing functions as a commentAndrew M. Kuchling2000-07-271-0/+26
|
* Comment out a debugging print (spotted by Michael Deegan)Andrew M. Kuchling2000-07-261-1/+1
|
* - changed windows pclose to make sure we don't return before theFredrik Lundh2000-07-261-10/+21
| | | | | underlying process has terminated (bug fix from David Bolen)
* Fix UCNs machine with >= 32bit longsJeremy Hylton2000-07-261-19/+51
| | | | | | | originally submitted by Bill Tutt Note: This code is actually going to be replaced in 2.0 by /F's new database. Until then, this patch keeps the test suite working.
* Added wrappers for tiget{flag,num,str}, for querying terminfo capabilitiesAndrew M. Kuchling2000-07-261-0/+47
|
* Use 'void' directly instead of the ANY #define, now that all code is ANSI C.Thomas Wouters2000-07-254-9/+9
| | | | Leave the actual #define in for API compatibility.
* Modified version of patch #100963 from Mark Favas: has_key() is anAndrew M. Kuchling2000-07-251-5/+5
| | | | ncurses extension, so it's made conditional depending on STRICT_SYSV_CURSES
* Bug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:Andrew M. Kuchling2000-07-241-4/+4
| | | | | reversed tests resulted in an exception when you supplied the correct number of arguments
* Remove unused variable and what looks like an ancient relic of an oldThomas Wouters2000-07-241-7/+0
| | | | version of SSLeay (now known as OpenSSL.)
* Create a new section of pyport.h to hold all external function declarationsThomas Wouters2000-07-243-35/+4
| | | | | | | | | | | | | | for systems that are missing those declarations from system include files. Start by moving a pointy-haired ones from their previous locations to the new section. (The gethostname() one, for instance, breaks on several systems, because some define it as (char *, size_t) and some as (char *, int).) I purposely decided not to include the summary of used #defines like Tim did in the first section of pyport.h. In my opinion, the number of #defines likedly to be used by this section would make such an overview unwieldy. I would suggest documenting the non-obvious ones, though.
* ANSIfy a bit more.Thomas Wouters2000-07-241-1/+1
|
* Fix floattime prototype ((void), not (double))Thomas Wouters2000-07-241-1/+1
|
* ANSIfy some more forward declarations.Thomas Wouters2000-07-248-13/+13
|
* ... and yet more ANSIfications...Thomas Wouters2000-07-241-3/+4
|
* ANSIfy yet another hidden function definition.Thomas Wouters2000-07-241-5/+0
|
* Fix typo in previous patch.Thomas Wouters2000-07-241-3/+3
|
* *** empty log message ***Thomas Wouters2000-07-241-3/+3
|
* Patch #100926 - Better error messages for socket exceptions on Windows. ↵Mark Hammond2000-07-241-2/+78
| | | | [Slight style differences from posted patch]
* -- SRE 0.9.6 sync. this includes:Fredrik Lundh2000-07-232-1097/+1194
| | | | | | | | | | | + added "regs" attribute + fixed "pos" and "endpos" attributes + reset "lastindex" and "lastgroup" in scanner methods + removed (?P#id) syntax; the "lastindex" and "lastgroup" attributes are now always set + removed string module dependencies in sre_parse + better debugging support in sre_parse + various tweaks to build under 1.5.2
* Removed all instances of RETSIGTYPE from the source code: signalTim Peters2000-07-233-13/+9
| | | | | | | handlers "return void", according to ANSI C. Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro. Left RETSIGTYPE in the config stuff, because it's not clear to me that others aren't relying on it (e.g., extension modules).
* -- added code to the new Windows popen functions to make closeFredrik Lundh2000-07-231-8/+90
| | | | | | return the exit code. Only works on Windows NT/2000, due to limitations in the Win9X shell. (based on patch #100941 by David Bolen)
* Missed a return from a signal handler -- thanks to /F for pointingTim Peters2000-07-231-1/+1
| | | | it out!
* Recent ANSIfication introduced a couple instances ofTim Peters2000-07-231-3/+1
| | | | | | | | | | | #if RETSIGTYPE != void That isn't C, and MSVC properly refuses to compile it. Introduced new Py_RETURN_FROM_SIGNAL_HANDLER macro in pyport.h to expand to the correct thing based on RETSIGTYPE. However, only void is ANSI! Do we still have platforms that return int? The Unix config mess appears to #define RETSIGTYPE by magic without being asked to, so I assume it's "a problem" across Unices still.
* Fix prototypes generated by makesetup, so they include '(void)' rather thanThomas Wouters2000-07-232-4/+4
| | | | empty argumentlists.
* Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters2000-07-2210-17/+18
| | | | possible.
* ANSIfication: add proper prototypes to function-pointers and declarations.Thomas Wouters2000-07-221-24/+13
| | | | | Also, fix a bug found by said declarations, where a string was defined as unsigned char*, but used as signed.
* ANSIfication of function-pointers and declarations. Also, make sure toThomas Wouters2000-07-221-2/+5
| | | | | return something if RETSIGTYPE is not void, in functions that are defined as returning RETSIGTYPE.
* Further ANSIfication of functionpointers and declarations. Also, make sureThomas Wouters2000-07-221-7/+16
| | | | | | to return something if RETSIGTYPE isn't void, in functions that are defined to return RETSIGTYPE. Work around an argumentlist mismatch ('void' vs. 'void *') by using a static wrapper function.
* Remove unused variable.Thomas Wouters2000-07-221-1/+0
|
* Remove unused helper-function 'posix_strint'.Thomas Wouters2000-07-221-18/+0
|
* Mark Favas's fix for typos in docstrings.Thomas Wouters2000-07-221-4/+4
|
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-2159-117/+103
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)