Guido van Rossum
54ec2884b8
A gift from Fredrik Lundh: fast C implementation of expandtabs().
...
I've reformatted it, added a few comments, a test for tabsize <= 0,
and used the AS_STRING macro.
1999-01-25 22:36:24 +00:00
Guido van Rossum
aa8d16761b
Make sure not to call realloc() with a NULL pointer -- call malloc()
...
in that case. Tamito Kajiyama.
1999-01-25 21:43:51 +00:00
Guido van Rossum
11801859e0
Include myselect.h -- needed on some platforms.
1999-01-25 21:39:03 +00:00
Guido van Rossum
8bf6dc77d1
Rearrange the -I flags for compiling _tkinter.c so that
...
/usr/local/include comes before /usr/X11R1/include. On some Linux
distributions the latter apparently contains (standard!) a bad tcl.h
or tk.h.
1999-01-25 21:38:29 +00:00
Guido van Rossum
d371ff17a1
Only do ttyname() when HAVE_TTYNAME is defined.
...
Also define F_OK etc. when not already defined, when doing access().
1999-01-25 16:12:23 +00:00
Guido van Rossum
ca6954a979
Should include "Python.h", not <Python.h> -- it's not a standard
...
header file (yet :-).
1999-01-14 19:31:42 +00:00
Guido van Rossum
11a5071ed6
Jim Ahlstrom patch: Watcom chokes on a long expression in c_asinh().
...
Break it up.
1999-01-14 19:11:11 +00:00
Guido van Rossum
5d00b6d459
Need extern decl. for fdatasync() in case it exists but isn't declared
...
anywhere (or, more likely, the declaration requires a magical
combination of _POSIX defines).
1999-01-08 21:28:05 +00:00
Guido van Rossum
21142a09f3
Added fsync() and fdatasync(). Patches by Scott Cotton. Requires
...
HAVE_* macros set by configure script.
1999-01-08 21:05:37 +00:00
Guido van Rossum
446ccfe1ac
The doc string for strptime had the arguments reversed -- the string
...
comes first, the format second! Scott Cotton discovered this.
1999-01-07 18:29:26 +00:00
Jeremy Hylton
6892aa372d
fix bug in PyZlib_flush.
...
patch from Grzegorz Makarewicz & Rafal Smotrzyk.
1999-01-06 22:56:24 +00:00
Guido van Rossum
015f22a0fa
Change the access() code to return 1 if granted, 0 if not granted.
...
Patch (again) by Sean Reifschneider.
1999-01-06 22:52:38 +00:00
Guido van Rossum
763737be52
Changes for long file support by Steve Clift.
1999-01-06 18:44:57 +00:00
Guido van Rossum
056bad993c
Changes for long file support by Steve Clift.
...
He also fixes thread-related evil that caused core dumps.
1999-01-06 18:44:23 +00:00
Guido van Rossum
94f6f72c05
Changes for long file support by Steve Clift.
...
Also added access() and ttyname() by Sean Reifschneider.
1999-01-06 18:42:14 +00:00
Guido van Rossum
716a89c606
Patch by Charles Waldman to implement an optional nlines argument to
...
w.scroll(). (It then calls wscrl(win, nlines) instead of scoll(win).)
1999-01-05 17:16:46 +00:00
Guido van Rossum
0a6363d7e1
Get rid of the strptype() declaration -- on some BSD systems, it's a
...
conflict, and it should be declared in time.h anyway.
(Too bad if gcc -Wall won't be happy if it isn't declared...)
1999-01-03 13:00:34 +00:00
Guido van Rossum
11847896ed
Chris Herborth discovered a typo in the arrow key symbols.
1998-12-23 04:45:04 +00:00
Guido van Rossum
65d5b5763c
Thanks to Chris Herborth, the thread primitives now have proper Py*
...
names in the source code (they already had those for the linker,
through some smart macros; but the source still had the old, un-Py names).
1998-12-21 19:32:43 +00:00
Guido van Rossum
95864d35c6
Add dummy variable to avoid optimizer bug on OS/2 -- patch by Jeff Rush.
...
(AMK: you should probably copy this into your patch set for pcre.)
1998-12-21 18:35:49 +00:00
Jeremy Hylton
5bc4abe006
replace missing zalloc initialization (test_zlib now runs
...
successfully)
1998-12-21 17:15:00 +00:00
Jeremy Hylton
36252022ec
remove debugging fprintf (should have checked this before previous
...
checkin)
1998-12-21 16:40:21 +00:00
Jeremy Hylton
a37e244536
patches from Andrew
...
NOTE: There is still a bug of some sort in the behavior of zlib. In
at least one case, inflate returns Z_OK (which is typically
interpreted to mean that more output space is needed) when it has
finished inflating a buffer. This has been reported as a bug to the
zlib maintainers; we may need to change the Python interface.
1998-12-18 22:13:11 +00:00
Fred Drake
6de7d0c338
When _PyString_Resize() reports failure, the variable referring to the
...
string we wanted to resize is set to NULL. Don't Py_DECREF() those
variables! (5 places)
1998-12-18 19:46:59 +00:00
Guido van Rossum
476e49f055
Jim Fulton writes:
...
This fixes a bug that can cause core dumps when doing seeks in input
StringIO objects. This has a number of other clean-ups.
1998-12-15 21:43:15 +00:00