diff options
author | Guido van Rossum <guido@python.org> | 1998-12-10 16:54:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-10 16:54:17 (GMT) |
commit | cc34faaf14799f78ab7f3b1333e624029b041839 (patch) | |
tree | aa0c6b55aa9c98c40d55b754ba77c20d6c198971 /Include/intobject.h | |
parent | 9df827f3ba53f290fc12846cd4ee3d95ca343099 (diff) | |
download | cpython-cc34faaf14799f78ab7f3b1333e624029b041839.zip cpython-cc34faaf14799f78ab7f3b1333e624029b041839.tar.gz cpython-cc34faaf14799f78ab7f3b1333e624029b041839.tar.bz2 |
Add prototypes for PyOS_strto[u]l -- Chris Herborth.
Diffstat (limited to 'Include/intobject.h')
-rw-r--r-- | Include/intobject.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/intobject.h b/Include/intobject.h index 2d3e750..e6eb49d 100644 --- a/Include/intobject.h +++ b/Include/intobject.h @@ -85,6 +85,15 @@ extern DL_IMPORT(PyIntObject) _Py_ZeroStruct, _Py_TrueStruct; /* Don't use these /* Macro, trading safety for speed */ #define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival) +/* These aren't really part of the Int object, but they're handy; the protos + * are necessary for systems that need the magic of DL_IMPORT and that want + * to have stropmodule as a dynamically loaded module instead of building it + * into the main Python shared library/DLL. Guido thinks I'm weird for + * building it this way. :-) [cjh] + */ +extern DL_IMPORT(unsigned long) PyOS_strtoul Py_PROTO((char *, char **, int)); +extern DL_IMPORT(long) PyOS_strtol Py_PROTO((char *, char **, int)); + #ifdef __cplusplus } #endif |