Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1053)

Delta Between Two Patch Sets: Include/intobject.h

Issue 1953: Compact int and float freelists
Left Patch Set: Created 5 years, 3 months ago
Right Patch Set: Created 2 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Include/floatobject.h ('k') | Lib/test/regrtest.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 1
2 /* Integer object interface */ 2 /* Integer object interface */
3 3
4 /* 4 /*
5 PyIntObject represents a (long) integer. This is an immutable object; 5 PyIntObject represents a (long) integer. This is an immutable object;
6 an integer cannot change its value after creation. 6 an integer cannot change its value after creation.
7 7
8 There are functions to create new integer objects, to test an object 8 There are functions to create new integer objects, to test an object
9 for integer-ness, and to get the integer value. The latter functions 9 for integer-ness, and to get the integer value. The latter functions
10 returns -1 and sets errno to EBADF if the object is not an PyIntObject. 10 returns -1 and sets errno to EBADF if the object is not an PyIntObject.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 /* These aren't really part of the Int object, but they're handy; the protos 53 /* These aren't really part of the Int object, but they're handy; the protos
54 * are necessary for systems that need the magic of PyAPI_FUNC and that want 54 * are necessary for systems that need the magic of PyAPI_FUNC and that want
55 * to have stropmodule as a dynamically loaded module instead of building it 55 * to have stropmodule as a dynamically loaded module instead of building it
56 * into the main Python shared library/DLL. Guido thinks I'm weird for 56 * into the main Python shared library/DLL. Guido thinks I'm weird for
57 * building it this way. :-) [cjh] 57 * building it this way. :-) [cjh]
58 */ 58 */
59 PyAPI_FUNC(unsigned long) PyOS_strtoul(char *, char **, int); 59 PyAPI_FUNC(unsigned long) PyOS_strtoul(char *, char **, int);
60 PyAPI_FUNC(long) PyOS_strtol(char *, char **, int); 60 PyAPI_FUNC(long) PyOS_strtol(char *, char **, int);
61 61
62 PyAPI_FUNC(int) PyInt_CompactFreeList(int *, int *, int *); 62 /* free list api */
63 PyAPI_FUNC(int) PyInt_CompactFreeList(size_t *, size_t *, size_t *);
64 PyAPI_FUNC(size_t) PyInt_FreeListSize(void);
63 65
64 #ifdef __cplusplus 66 #ifdef __cplusplus
65 } 67 }
66 #endif 68 #endif
67 #endif /* !Py_INTOBJECT_H */ 69 #endif /* !Py_INTOBJECT_H */
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7