0
0
mirror of https://github.com/python/cpython.git synced 2024-11-30 01:16:51 +01:00
Commit Graph

35 Commits

Author SHA1 Message Date
Tim Peters
0d5dd68692 Python.h: Don't attempt to redefine NDEBUG if it's already defined.
Others:  Remove redundant includes of assert.h.
2001-07-15 18:38:47 +00:00
Fredrik Lundh
ee2f18d0ee bug #232815
ch is unsigned, so testing for negative values doesn't make
sense (as noticed by the OpenVMS compiler)
2001-07-03 19:27:05 +00:00
Thomas Wouters
f3f33dcf03 Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',
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 ;)
2000-07-21 06:00:07 +00:00
Thomas Wouters
7e47402264 Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
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 ;)
2000-07-16 12:04:32 +00:00
Peter Schneider-Kamp
7d0c71ac8c ANSI-fication 2000-07-10 13:05:29 +00:00
Guido van Rossum
ff1ccbfc21 casts for picky compilers. 1999-04-10 15:48:23 +00:00
Guido van Rossum
9f29990a90 Fix a benign problem found by a picky SGI compiler (unreachable break
after a return).
1998-07-07 22:23:22 +00:00
Guido van Rossum
730806d3d9 Make new gcc -Wall happy 1998-04-10 22:27:42 +00:00
Guido van Rossum
e59d3f8ae1 Small bugfixes for broken old style use of the syntax table. AMK, of
course.
1997-12-02 20:39:23 +00:00
Guido van Rossum
8102c005e0 Get rid of most silly #include and #ifdefs near the top; these are all
obsolete now it includes Python.h.

Make all functions K&R compatible (Sue Williams).
1997-09-05 01:48:48 +00:00
Guido van Rossum
d19c04a88e Change [_Py_]re_compile_pattern() to return a char*.
Since it only returns an error message (or NULL) there's no reason
for it to be unsigned char *, and various compilers like this better.
1997-09-03 00:47:36 +00:00
Guido van Rossum
ed2554a396 Casts by Jack to shut up the Mac compiler. 1997-08-18 15:31:24 +00:00
Guido van Rossum
53665e571f Last minute changes for \B. AMK. 1997-08-15 15:45:25 +00:00
Guido van Rossum
95e8053a9f 1.5a3 prerelease 1 from AMK 1997-08-13 22:34:14 +00:00
Guido van Rossum
abed54ab4a Fix bug with \< (AMK). 1997-08-13 16:35:04 +00:00
Guido van Rossum
52d6832554 Add syntax for hex,octal 1997-08-13 03:21:14 +00:00
Guido van Rossum
74fb303997 Jeffrey's latests 1997-07-17 22:41:38 +00:00
Guido van Rossum
faf490898d Reformatted.
Fixed some problem with uninitialized syntax tables.
Jeffrey.
1997-07-15 01:47:08 +00:00
Guido van Rossum
db25f32849 New versions straight from Jeffrey Ollie's web site 1997-07-10 14:31:32 +00:00
Guido van Rossum
fc4f503762 Fix showstopping bug (^ wouldn't match after \n). Jeffrey Ollie. 1997-05-14 18:27:51 +00:00
Guido van Rossum
445efa9602 Add a cast to a malloc to shut up the DEC Unix compiler. 1997-05-14 15:30:32 +00:00
Guido van Rossum
4917d93ca9 Keep picky compilers happy. 1997-05-13 17:53:34 +00:00
Guido van Rossum
004c1e1d07 Latest from Jeffrey Ollie.
Infinite failure stack, some bugs fixed (fastmap, star_jump, register bug).
1997-05-09 02:35:58 +00:00
Guido van Rossum
ee2373b930 Oops, missed some renamings. 1997-05-07 23:51:07 +00:00
Guido van Rossum
a376cc5cc8 Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
Guido van Rossum
7cf1fcf347 Always include config.h 1996-08-19 22:12:39 +00:00
Guido van Rossum
339cfa39d8 Need config.h (for Win etc.) 1996-08-08 19:12:37 +00:00
Guido van Rossum
88661e8f41 Subtle Windows changes 1996-05-23 22:55:58 +00:00
Guido van Rossum
c65a525cdc * Modules/{Setup.in,Makefile.pre.in}: renamed some modules to
shorter names (dropped the "module" from the name): sunaudiodev,
	imgformat, audioop, imageop, imgfile

	* Modules/stropmodule.c (strop_rindex): make rindex('abc', '') do
	the right thing (i.e. return 3 instead of 0)

	* Modules/socketmodule.c: disabled allowbroadcast() socket method
1994-08-05 13:44:50 +00:00
Guido van Rossum
b6775db241 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
Guido van Rossum
9abc539846 Lint fluff 1992-03-27 17:24:37 +00:00
Guido van Rossum
3b1a57a4a0 Ported to THINK C. 1992-01-27 16:47:46 +00:00
Guido van Rossum
521f81ca26 Retract the rage bugfix, but change the range assertion. 1992-01-26 18:23:48 +00:00
Guido van Rossum
5f21dd106f #ifdef'ed an unreachable line out. 1992-01-19 16:49:14 +00:00
Guido van Rossum
b674c3bba5 Initial revision 1992-01-19 16:32:47 +00:00