summaryrefslogtreecommitdiff
path: root/Objects/bufferobject.c
AgeCommit message (Collapse)AuthorLines
2006-04-11More C++-compliance. Note especially listobject.c - to get C++ to accept theAnthony Baxter-2/+2
PyTypeObject structures, I had to make prototypes for the functions, and move the structure definition ahead of the functions. I'd dearly like a better way to do this - to change this would make for a massive set of changes to the codebase. There's still some warnings - this is purely to get rid of errors first.
2006-02-16Use proper PyArg_Parse format char for Py_ssize_t, instead of 'l', inThomas Wouters-1/+1
buffer_new(). Probably fixes a bug in 'buffer("", 10, 10)' on platforms where sizeof(Py_ssize_t) != sizeof(long) (Win64?)
2006-02-16Revert 42400.Martin v. Löwis-3/+3
2006-02-16Support %zd in PyErr_Format and PyString_FromFormat.Martin v. Löwis-2/+2
2006-02-16Get rid of compiler warnings (gcc 3.3.4 on x86)Neal Norwitz-3/+3
2006-02-15Merge ssize_t branch.Martin v. Löwis-61/+63
2005-12-18Check return result for errorNeal Norwitz-0/+2
2005-08-26Disallow keyword arguments for type constructors that don't use them.Georg Brandl-1/+4
(fixes bug #1119418)
2004-09-24Ensure negative offsets cannot be passed to buffer(). When composingNeil Schemenauer-2/+15
buffers, compute the new buffer size based on the old buffer size. Fixes SF bug #1034242.
2004-09-24Fix buffer offset calculation (need to compute it before changingNeil Schemenauer-11/+7
'base'). Fixes SF bug #1033720. Move offset sanity checking to buffer_from_memory().
2004-03-25Correct code to advance ptr to be well-formed C.Martin v. Löwis-1/+1
2004-03-11Make buffer objects based on mutable objects (like array) safe.Neil Schemenauer-82/+149
2004-03-11Document one of the many problems with the buffer object.Neil Schemenauer-2/+9
2004-03-11Rename static functions, they should not have the _Py prefix.Neil Schemenauer-11/+10
2002-08-19Call me anal, but there was a particular phrase that was speading toGuido van Rossum-1/+1
comments everywhere that bugged me: /* Foo is inlined */ instead of /* Inline Foo */. Somehow the "is inlined" phrase always confused me for half a second (thinking, "No it isn't" until I added the missing "here"). The new phrase is hopefully unambiguous.
2002-06-25Fix SF bug 546434 -- buffer slice type inconsistent.Raymond Hettinger-13/+0
2002-06-14SF patch 568629 by Oren Tirosh: types made callable.Guido van Rossum-1/+39
These built-in functions are replaced by their (now callable) type: slice() buffer() and these types can also be called (but have no built-in named function named after them) classobj (type name used to be "class") code function instance instancemethod (type name used to be "instance method") The module "new" has been replaced with a small backward compatibility placeholder in Python. A large portion of the patch simply removes the new module from various platform-specific build recipes. The following binary Mac project files still have references to it: Mac/Build/PythonCore.mcp Mac/Build/PythonStandSmall.mcp Mac/Build/PythonStandalone.mcp [I've tweaked the code layout and the doc strings here and there, and added a comment to types.py about StringTypes vs. basestring. --Guido]
2002-03-29Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.Tim Peters-10/+0
2001-10-19Fix for Bug #216405:Thomas Heller-4/+6
use the correct base for a buffer object in _PyBuffer_FromObject.
2001-08-24repr's converted to using PyString_FromFormat() instead of sprintf'ingBarry Warsaw-13/+7
into a hardcoded char* buffer. Closes patch #454743.
2001-08-02Merge of descr-branch back into trunk.Tim Peters-17/+17
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-08-04Removing warnings found by gcc -WallMoshe Zadka-4/+5
2000-07-09ANSI-fication of the sources.Fred Drake-78/+24
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-30Trent Mick <trentm@activestate.com>:Fred Drake-7/+7
The common technique for printing out a pointer has been to cast to a long and use the "%lx" printf modifier. This is incorrect on Win64 where casting to a long truncates the pointer. The "%p" formatter should be used instead. The problem as stated by Tim: > Unfortunately, the C committee refused to define what %p conversion "looks > like" -- they explicitly allowed it to be implementation-defined. Older > versions of Microsoft C even stuck a colon in the middle of the address (in > the days of segment+offset addressing)! The result is that the hex value of a pointer will maybe/maybe not have a 0x prepended to it. Notes on the patch: There are two main classes of changes: - in the various repr() functions that print out pointers - debugging printf's in the various thread_*.h files (these are why the patch is large) Closes SourceForge patch #100505.
2000-05-03Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum-4/+4
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
1999-08-04PyBuffer_New(): Raise ValueError if size is negative (the otherFred Drake-1/+6
constructors didn't miss this). Raise MemoryError if malloc() fails, instead of just returning NULL.
1999-03-24Folded long lines.Guido van Rossum-9/+18
1999-03-19Added check for negative offset for PyBuffer_FromObject and check forGuido van Rossum-1/+13
negative size for PyBuffer_FromMemory. Greg Stein.
1998-10-08Greg Stein: Implement the new bf_getcharbuffer function, indicatingGuido van Rossum-2/+18
that (as far as the data type is concerned!) this is character data.
1998-10-07Make gcc -Wall happy.Guido van Rossum-5/+4
1998-10-07Add Greg Stein's buffer object API.Guido van Rossum-0/+599