| LEFT | RIGHT |
| 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 Loading... |
| 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 */ |
| LEFT | RIGHT |