Staging
v0.5.1
https://github.com/python/cpython
Revision b0e51b2957f7e4ba4bd2399329bae810b57881aa authored by Guido van Rossum on 13 April 2001, 18:14:27 UTC, committed by Guido van Rossum on 13 April 2001, 18:14:27 UTC
always:

- #undef HAVE_CONFIG_H (because otherwise chardefs.h tries to include
  strings.h)

- #include readline.h and history.h

and we never declare any readline function prototypes ourselves.

This makes it compile with readline 4.2, albeit with a few warnings.
Some of the remaining warnings are about completion_matches(), which
is renamed to rl_completion_matches().

I've tested it with various other versions, from 2.0 up, and they all
seem to work (some with warnings) -- but only on Red Hat Linux 6.2.

Fixing the warnings for readline 4.2 would break compatibility with
3.0 (and maybe even earlier versions), and readline doesn't seem to
have a way to test for its version at compile time, so I'd rather
leave the warnings in than break compilation with older versions.
1 parent fc4ee0a
History
Tip revision: b0e51b2957f7e4ba4bd2399329bae810b57881aa authored by Guido van Rossum on 13 April 2001, 18:14:27 UTC
Clean up the unsightly mess around the readline header files. We now
Tip revision: b0e51b2
File Mode Size
.cvsignore -rw-r--r-- 17 bytes
abstract.c -rw-r--r-- 34.2 KB
bufferobject.c -rw-r--r-- 11.1 KB
cellobject.c -rw-r--r-- 2.3 KB
classobject.c -rw-r--r-- 47.8 KB
cobject.c -rw-r--r-- 3.6 KB
complexobject.c -rw-r--r-- 13.9 KB
dictobject.c -rw-r--r-- 31.0 KB
fileobject.c -rw-r--r-- 33.8 KB
floatobject.c -rw-r--r-- 17.9 KB
frameobject.c -rw-r--r-- 10.0 KB
funcobject.c -rw-r--r-- 8.1 KB
intobject.c -rw-r--r-- 19.2 KB
listobject.c -rw-r--r-- 40.5 KB
longobject.c -rw-r--r-- 38.8 KB
methodobject.c -rw-r--r-- 5.0 KB
moduleobject.c -rw-r--r-- 5.7 KB
object.c -rw-r--r-- 36.0 KB
obmalloc.c -rw-r--r-- 22.2 KB
rangeobject.c -rw-r--r-- 6.5 KB
sliceobject.c -rw-r--r-- 4.1 KB
stringobject.c -rw-r--r-- 75.3 KB
tupleobject.c -rw-r--r-- 12.3 KB
typeobject.c -rw-r--r-- 1.3 KB
unicodectype.c -rw-r--r-- 8.5 KB
unicodeobject.c -rw-r--r-- 122.8 KB
unicodetype_db.h -rw-r--r-- 37.0 KB
xxobject.c -rw-r--r-- 2.4 KB

back to top