summaryrefslogtreecommitdiffstats
path: root/Include/mymalloc.h
Commit message (Collapse)AuthorAgeFilesLines
* Deleted now-unused include filesAndrew M. Kuchling2000-08-161-208/+0
|
* patch from Vladimir (move Py_Mem* interface to Include/pymem.h)Peter Schneider-Kamp2000-07-311-2/+3
|
* merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp2000-07-311-0/+5
| | | | marked my*.h as obsolete
* Use 'void' directly instead of the ANY #define, now that all code is ANSI C.Thomas Wouters2000-07-251-29/+11
| | | | Leave the actual #define in for API compatibility.
* delete obsolete SYMANTEC__CFM68K__ #ifdefsSkip Montanaro2000-07-121-4/+0
|
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-7/+7
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Add two scenarios by Vladimir Marangozov that show how to use your ownGuido van Rossum2000-05-051-1/+43
| | | | allocator.
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-26/+107
| | | | | | | | | | 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.)
* Add DL_IMPORT(returntype) for all officially exported functions.Guido van Rossum1998-12-041-6/+6
|
* Completely disable the declarations for malloc() and friends. UseGuido van Rossum1997-08-211-2/+3
| | | | | #ifdef though, so if you still need these for a really backwards compiler you know what to do.
* Added Py_Malloc and friends as well as PyMem_Malloc and friends.Guido van Rossum1997-08-051-2/+19
|
* Only add 1 byte to all malloc calls when it is known that malloc(0) orGuido van Rossum1997-07-101-3/+11
| | | | | realloc(p, 0) returns NULL. See changes to configure script to be checked in later.
* Oops, rename2.h was included by some other headers.Guido van Rossum1997-05-071-3/+0
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Changed ifdef __CFM68K__ to ifdef SYMANTEC__CFM68K__: CW has its ownJack Jansen1995-06-271-1/+1
| | | | unique set of ideosyncracies:-(
* changes for Mac CFM-68KGuido van Rossum1995-02-181-0/+4
|
* The great renaming, phase two: all header files have been updated toGuido van Rossum1995-01-121-8/+12
| | | | | | | use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
* changes for C++ (Tim MacKenzie)Guido van Rossum1995-01-101-5/+9
|
* Added 1995 copyright.Guido van Rossum1995-01-041-2/+2
| | | | | | object.h: made sizes and refcnts signed ints. stringobject.h: make getstrsize() signed int. methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-28/+11
|
* * compile.[ch]: support for lambda()Guido van Rossum1993-10-261-0/+10
| | | | | | | | | | * PROTO.h, mymalloc.h: added #ifdefs for TURBOC and GNUC. * allobjects.h: added #include "rangeobject.h" * Grammar: added lambda_input; relaxed syntax for exec. * bltinmodule.c: added bagof, map, reduce, lambda, xrange. * tupleobject.[ch]: added resizetuple(). * rangeobject.[ch]: new object type to speed up range operations (not convinced this is needed!!!)
* * Added support for X11 modules.Guido van Rossum1993-07-281-0/+11
| | | | | | | * Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-2/+2
| | | | | | | | | | | | | | | | | * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
* * mymalloc.h: always allocate one extra byte, since some malloc'sGuido van Rossum1992-12-141-3/+5
| | | | | | | | | | | | | return NULL for malloc(0) or realloc(p, 0). (This should be done differently than wasting one byte, but alas...) * Moved "add'l libraries" option in Makefile to an earlier place. * Remove argument compatibility hacks (b) and (c). * Add grey2mono, dither2mono and mono2grey to imageop. * Dup the fd in socket.fromfd(). * Added new modules mpz, md5 (by JH, requiring GNU MP 1.2). Affects Makefile and config.c. * socketmodule.c: added socket.fromfd(fd, family, type, [proto]), converted socket() to use of getargs().
* * renamed malloc.h mymalloc.h, and added MALLARG as the type of theGuido van Rossum1992-08-191-0/+74
argument to malloc() (size_t or unsigned int) * listobject.c: check for overflow of the size of the object, so things like range(0x7fffffff) will raise MemoryError instead of calling malloc() with -4 (and then crashing -- malloc's fault)