cpython/Include
Guido van Rossum 36eef3c173 Changes by Greg Stein (code) and GvR (design).
Add a new member to the PyBufferProcs struct, bf_getcharbuffer.  For
backward compatibility, this member should only be used (this includes
testing for NULL!) when the flag Py_TPFLAGS_HAVE_GETCHARBUFFER is set
in the type structure, below.  Note that if its flag is not set, we
may be looking at an extension module compiled for 1.5.1, which will
have garbage at the bf_getcharbuffer member (because the struct wasn't
as long then).  If the flag is one, the pointer may still be NULL.
The function found at this member is used in a similar manner as
bf_getreadbuffer, but it is known to point to 8-bit character data.
(See discussion in getargs.c checked in later.)

As a general feature for extending the type structure and the various
structures that (may) hang off it in a backwards compatible way, we
rename the tp_xxx4 "spare" slot to tp_flags.  In 1.5.1 and before,
this slot was always zero.  In 1.5.1, it may contain various flags
indicating extra fields that weren't present in 1.5.1.  The only flag
defined so far is for the bf_getcharbuffer member of the PyBufferProcs
struct.

Note that the new spares (tp_xxx5 - tp_xxx8), once they become used,
should also be protected by a flag (or flags) in tp_flags.
1998-10-08 02:10:56 +00:00
..
Makefile Added Makefile with clean and clobber targets 1994-01-04 23:24:22 +00:00
Python.h Add Greg Stein's buffer object API. 1998-10-07 14:36:10 +00:00
abstract.h Move an indented #define to column 1. 1998-08-23 22:06:59 +00:00
bitset.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bufferobject.h Add Greg Stein's buffer object API. 1998-10-07 14:36:10 +00:00
cStringIO.h Remove the last bits of log from the leading comments. 1997-12-08 15:16:08 +00:00
ceval.h Add missing prototypes for PyEval_CallFunction() and PyEval_CallMethod(). 1998-08-08 20:53:36 +00:00
classobject.h Move the definition of PyMethodObject to classobject.h, so it can define 1998-07-10 15:46:33 +00:00
cobject.h New CObject from Jim Fulton, adds PyCObject_FromVoidPtrAndDesc() and 1997-10-21 19:48:35 +00:00
compile.h Changes to support other object types besides strings 1998-10-07 19:42:25 +00:00
complexobject.h Add prototypes for c_sum() etc. 1996-08-19 22:04:54 +00:00
config.h all: 1994 copyright 1994-01-02 00:11:39 +00:00
dictobject.h Subsumed mappingobject.h in dictobject.h. 1997-05-13 21:23:32 +00:00
errcode.h Add E_INDENT -- new error to check for bad indentation 1998-04-09 21:37:20 +00:00
eval.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
fileobject.h flushline and writestring can now return an error 1997-05-22 22:23:46 +00:00
floatobject.h Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg. 1997-08-02 02:40:58 +00:00
frameobject.h Massive changes for separate thread state management. 1997-05-05 20:56:21 +00:00
funcobject.h Add macros for direct access to the members of CFunction objects. 1998-07-10 15:47:08 +00:00
graminit.h Added assert grammar. 1997-04-02 05:24:08 +00:00
grammar.h Added prototype for PyGrammar_RemoveAccelerators(). 1997-08-12 14:57:08 +00:00
import.h Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:46:29 +00:00
intobject.h Add cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg. 1997-08-02 02:41:13 +00:00
intrcheck.h This fix (across 4 files in 3 directories) solves a subtle problem with 1997-11-14 22:24:28 +00:00
listobject.h Fred's right -- we need PyList_SET_ITEM(). 1998-04-24 18:22:02 +00:00
longintrepr.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
longobject.h Patches from Greg Stein to support 'P' format in struct module's 1998-09-18 14:14:13 +00:00
marshal.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
metagrammar.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
methodobject.h Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObject 1998-07-10 15:21:55 +00:00
modsupport.h Define new macro Py_InitModule3(name, methods, doc) which calls 1998-06-27 18:21:59 +00:00
moduleobject.h Add internal routine _PyModule_Clear(), which does approximately what 1998-02-19 20:51:52 +00:00
mymalloc.h Completely disable the declarations for malloc() and friends. Use 1997-08-21 16:13:37 +00:00
mymath.h Mac CodeWarrior has faulty declaration for hypot, which we hide with a 1998-04-28 16:02:29 +00:00
myproto.h Oops, rename2.h was included by some other headers. 1997-05-07 23:50:40 +00:00
myselect.h Move the #include of <sys/select> to *after* mytime.h (or <time.h>), 1998-09-28 22:05:22 +00:00
mytime.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
node.h Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
object.h Changes by Greg Stein (code) and GvR (design). 1998-10-08 02:10:56 +00:00
objimpl.h Oops, another forgotten renaming: varobject -> PyVarObject. 1997-05-15 21:31:03 +00:00
opcode.h Get rid of some obsolete opcodes. 1998-07-07 14:58:39 +00:00
osdefs.h Use the proper OS2 test symbol: PYOS_OS2. 1997-12-05 21:39:25 +00:00
parsetok.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
patchlevel.h Up version to 1.5a2 -- we're close enough (even though I'm still 1998-10-02 03:17:29 +00:00
pgenheaders.h Duplicate the decls for PySys_WriteStd{out,err} here so the VC++ 1998-09-17 14:00:22 +00:00
pydebug.h Added Tabcheck flag. 1998-04-10 17:59:44 +00:00
pyerrors.h New global variables: PyExc_EnvironmentError and PyExc_OSError 1998-07-23 15:57:34 +00:00
pyfpe.h Some patches to Lee Busby's fpectl mods that accidentally didn't make it 1997-10-20 23:50:01 +00:00
pystate.h On second though, NEXITFUNCS should be defined in pythonrun.c and not 1998-10-01 16:02:31 +00:00
pythonrun.h - Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow 1998-02-06 22:28:05 +00:00
pythread.h Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:46:29 +00:00
rangeobject.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
rename1.h __builtins__ mods (and sys_checkinterval for ceval.c) 1995-01-09 17:53:26 +00:00
rename2.h Oops, another forgotten renaming: varobject -> PyVarObject. 1997-05-15 21:31:03 +00:00
sliceobject.h Forget about Ellipses b/w compatibility. 1996-10-16 04:18:36 +00:00
stringobject.h Two speedup hacks. Caching the hash saves recalculation of a string's 1997-01-18 07:53:23 +00:00
structmember.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
sysmodule.h Add 1998-05-12 14:58:52 +00:00
token.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
traceback.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
tupleobject.h added PyTuple_GET_SIZE macro 1997-01-06 22:44:27 +00:00