Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | ANSIfy some more forward declarations. | Thomas Wouters | 2000-07-24 | 8 | -13/+13 | |
| | ||||||
* | ... and yet more ANSIfications... | Thomas Wouters | 2000-07-24 | 1 | -3/+4 | |
| | ||||||
* | ANSIfy yet another hidden function definition. | Thomas Wouters | 2000-07-24 | 1 | -5/+0 | |
| | ||||||
* | Fix typo in previous patch. | Thomas Wouters | 2000-07-24 | 1 | -3/+3 | |
| | ||||||
* | *** empty log message *** | Thomas Wouters | 2000-07-24 | 1 | -3/+3 | |
| | ||||||
* | Patch #100926 - Better error messages for socket exceptions on Windows. ↵ | Mark Hammond | 2000-07-24 | 1 | -2/+78 | |
| | | | | [Slight style differences from posted patch] | |||||
* | -- SRE 0.9.6 sync. this includes: | Fredrik Lundh | 2000-07-23 | 2 | -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: signal | Tim Peters | 2000-07-23 | 3 | -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 close | Fredrik Lundh | 2000-07-23 | 1 | -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 pointing | Tim Peters | 2000-07-23 | 1 | -1/+1 | |
| | | | | it out! | |||||
* | Recent ANSIfication introduced a couple instances of | Tim Peters | 2000-07-23 | 1 | -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 than | Thomas Wouters | 2000-07-23 | 2 | -4/+4 | |
| | | | | empty argumentlists. | |||||
* | Even more ANSIfication: fix as many function pointers and declarations as | Thomas Wouters | 2000-07-22 | 10 | -17/+18 | |
| | | | | possible. | |||||
* | ANSIfication: add proper prototypes to function-pointers and declarations. | Thomas Wouters | 2000-07-22 | 1 | -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 to | Thomas Wouters | 2000-07-22 | 1 | -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 sure | Thomas Wouters | 2000-07-22 | 1 | -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 Wouters | 2000-07-22 | 1 | -1/+0 | |
| | ||||||
* | Remove unused helper-function 'posix_strint'. | Thomas Wouters | 2000-07-22 | 1 | -18/+0 | |
| | ||||||
* | Mark Favas's fix for typos in docstrings. | Thomas Wouters | 2000-07-22 | 1 | -4/+4 | |
| | ||||||
* | Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)', | Thomas Wouters | 2000-07-21 | 59 | -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 ;) | |||||
* | added history file truncation based upon code from Johannes Zellner. | Skip Montanaro | 2000-07-19 | 1 | -0/+42 | |
| | ||||||
* | ANSIfy the just-checked-in isatty() wrapper. | Thomas Wouters | 2000-07-19 | 1 | -3/+1 | |
| | ||||||
* | new method isatty from Thomas Wouters | Skip Montanaro | 2000-07-19 | 1 | -0/+16 | |
| | ||||||
* | Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either | Thomas Wouters | 2000-07-16 | 20 | -36/+36 | |
| | | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;) | |||||
* | Implemented getdefaultlocale() for macintosh, after an idea by Fredrik. | Jack Jansen | 2000-07-15 | 1 | -2/+10 | |
| | ||||||
* | Move (actually copy) support for the sgi._getpty() function into | Thomas Wouters | 2000-07-14 | 1 | -5/+24 | |
| | | | | | | | posix.openpty(). And conveniently also check if CVS write access really works. Closes SF patch #100722 | |||||
* | Use PyObject_AsFileDescriptor | Andrew M. Kuchling | 2000-07-13 | 2 | -68/+4 | |
| | ||||||
* | ANSI-fication (got lost in the deep seas of source forge <wink>) | Peter Schneider-Kamp | 2000-07-13 | 1 | -195/+60 | |
| | ||||||
* | From Sam Rushing's Medusa, via SF patch #100858: add & document | Andrew M. Kuchling | 2000-07-13 | 1 | -0/+88 | |
| | | | | os.seteuid(), os.setegid(), os.setreuid(), os.setregid(). | |||||
* | replace PyXXX_Length calls with PyXXX_Size calls | Jeremy Hylton | 2000-07-12 | 8 | -15/+15 | |
| | ||||||
* | Add "exceptions" to list of built-in modules for the sake of | Guido van Rossum | 2000-07-12 | 1 | -0/+1 | |
| | | | | sys.builtin_module_names. (Noticed by Toby Dickenson.) | |||||
* | Fixed up some ANSIfications. | Sjoerd Mullender | 2000-07-12 | 2 | -5/+5 | |
| | ||||||
* | debug_instance(): Use the same %p format directive as with | Barry Warsaw | 2000-07-12 | 1 | -6/+3 | |
| | | | | | | debug_cycle(), and don't cast the pointer to a long. Neither needs the literal `0x' prefix as %p automatically inserts this (on Linux at least). | |||||
* | Convert coding style to be internally consistent and similar to the | Fred Drake | 2000-07-12 | 1 | -545/+531 | |
| | | | | | rest of the Python C code: space between "if", "for" and "(", no space between "(", ")" and function call parameters, etc. | |||||
* | Always use the :funcname part of the format specifier for PyArg_ParseTuple() | Fred Drake | 2000-07-12 | 1 | -5/+5 | |
| | | | | so we get better error messages. | |||||
* | Fix bugs in readinst(): | Andrew M. Kuchling | 2000-07-12 | 1 | -10/+25 | |
| | | | | | | | | * There was no error reported if the .read() method returns a non-string * If read() returned too much data, the buffer would be overflowed causing a core dump * Used strncpy, not memcpy, which seems incorrect if there are embedded \0s. * The args and bytes objects were leaked | |||||
* | Patch #100854 from jhylton: eliminate compiler warnings in pyexpat: | Andrew M. Kuchling | 2000-07-12 | 1 | -21/+22 | |
| | | | | | | | | The first two warnings seem harmless enough, but the last one looks like a potential bug: an uninitialized int is returned on error. (I also ended up reformatting some of the code, because it was hard to read.) | |||||
* | Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc(). | Vladimir Marangozov | 2000-07-12 | 1 | -1/+1 | |
| | ||||||
* | Errare humanum est. | Peter Schneider-Kamp | 2000-07-11 | 1 | -1/+1 | |
| | | | | Changed parameter in getsockaddrlen from unsigned to socklen_t. | |||||
* | One more include of limits.h (possibly to be moved elsewhere when there is | Jack Jansen | 2000-07-11 | 1 | -0/+3 | |
| | | | | consensus where it should go). | |||||
* | satisfy the -Wall: remove two unused local variables and unused ins function | Jeremy Hylton | 2000-07-11 | 1 | -13/+0 | |
| | ||||||
* | fixed a warning in getsockaddrlen | Peter Schneider-Kamp | 2000-07-11 | 1 | -1/+1 | |
| | ||||||
* | Neil Schemenauer <nascheme@enme.ucalgary.ca>: | Fred Drake | 2000-07-11 | 1 | -4/+4 | |
| | | | | | | | Change a cast, intialize a local, and make some sprintf() format strings type-appropriate (add the "l" to "%d"). Closes SourceForge patch #100737. | |||||
* | Now that prototypes are in scope, the compiler gives legit wngs | Tim Peters | 2000-07-10 | 1 | -2/+2 | |
| | | | | | | about int size mismatches at two calls to s_rand. Stuffed in casts to make the code do what it did before but w/o warnings -- although unclear that's correct! | |||||
* | ANSI-fication (fixed on parameter list I messed up in the patch) | Peter Schneider-Kamp | 2000-07-10 | 1 | -53/+19 | |
| | ||||||
* | ANSI-fication | Peter Schneider-Kamp | 2000-07-10 | 3 | -105/+35 | |
| | ||||||
* | ANSI-fication, added #ifdef construction in mpz_coerce | Peter Schneider-Kamp | 2000-07-10 | 1 | -138/+54 | |
| | ||||||
* | ANSI-fication, not really tested, but should (hopefully) compile | Peter Schneider-Kamp | 2000-07-10 | 2 | -116/+34 | |
| | ||||||
* | ANSI-fication of the SGI modules (note that svmodule.c and sgimodule.c | Peter Schneider-Kamp | 2000-07-10 | 7 | -2295/+769 | |
| | | | | | | have already been checked in) UNTESTED! | |||||
* | - stupid typo. | Fredrik Lundh | 2000-07-10 | 1 | -1/+1 | |
| |