summaryrefslogtreecommitdiff
path: root/Include/cStringIO.h
AgeCommit message (Collapse)AuthorLines
2013-01-28Remove trailing whitespaces in cStringIO.h.Serhiy Storchaka-2/+2
2010-03-25Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings-2/+5
CObject to PyCapsule.
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes-2/+2
Py_REFCNT. Macros for b/w compatibility are available.
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-2/+2
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
2006-02-15Merge ssize_t branch.Martin v. Löwis-2/+2
2005-12-10Add const to several API functions that take char *.Jeremy Hylton-1/+1
In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.
2003-01-19SF bug #670229: doc improvement for cStringIO.hRaymond Hettinger-5/+12
Gernot Hillier added more detail to the internal API documentation.
2002-10-04SF # 607253, header file problems by Ralf W. Grosse-KunstleveNeal Norwitz-3/+3
Don't pollute the namespace when protecting against multiple header inclusion. Prefix with Py_ and use standard naming convention Py_FILENAME_H.
2002-08-05Remove function definition from cStringIO.h.Jeremy Hylton-23/+4
xxxPyCObject_Import() seems to be a copy of PyCObject_Import().
2002-04-04Removed old Digital Creations copyright/license notices (withGuido van Rossum-55/+0
permission from Paul Everitt). Also removed a few other references to Digital Creations and changed the remaining ones to Zope Corporation.
2002-03-30Patch #536908: Add missing #include guards/extern "C".Martin v. Löwis-0/+6
2001-06-09Cast the result of xxxPyCObject_Import to PycStringIO_CAPI*.Martin v. Löwis-1/+1
This fixes bug #431557.
2000-07-22Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,Thomas Wouters-3/+1
char**) and return an int even on PC platforms. If not, please fix PC/utils/makesrc.c ;-P
2000-07-16Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters-1/+1
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-09Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters-6/+6
1999-01-25There's a macro PycString_IMPORT which the documentation listed asGuido van Rossum-1/+1
PycStringIO_IMPORT. While arguably the name used in the documentation is more consistent, I think it's probably safer not to change the macro definition and instead fix the doco.
1998-12-08Undo the change here -- there's no point in declaring a staticGuido van Rossum-1/+1
function as DL_IMPORT()!
1998-12-04Add DL_IMPORT(returntype) for all officially exported functions.Guido van Rossum-1/+1
1997-12-08Remove the last bits of log from the leading comments.Guido van Rossum-13/+1
1997-12-04Merge between my version and Jim Fulton's version; removed RCS keywordsGuido van Rossum-8/+2
but otherwise unchanged.
1997-10-07Use K&R function prototypes.Guido van Rossum-7/+12
1997-08-13cPickle release 0.3 from Jim FultonGuido van Rossum-6/+25
1997-04-09Got rid of the static decl of PyCObject_Import, which was a 1.4Guido van Rossum-19/+4
compatibility hack.
1997-04-09Changed the way the C API was exported. Jim Fulton.Guido van Rossum-37/+45
1997-01-06Jim's latest versionGuido van Rossum-8/+12
1996-12-05Jim F's brainchildGuido van Rossum-0/+130