summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-07-27 21:34:00 (GMT)
committerGuido van Rossum <guido@python.org>1991-07-27 21:34:00 (GMT)
commit76a00af3f2727df350c12d3110cddbb6be8c8a1f (patch)
treea66f2ecd383394e7f62a9d0fc9b9b461d15d87be /Python
parenta049031f2de52d4ef38c39b3e5f6b5efd1b7e023 (diff)
downloadcpython-76a00af3f2727df350c12d3110cddbb6be8c8a1f.zip
cpython-76a00af3f2727df350c12d3110cddbb6be8c8a1f.tar.gz
cpython-76a00af3f2727df350c12d3110cddbb6be8c8a1f.tar.bz2
Support for long integers
Diffstat (limited to 'Python')
-rw-r--r--Python/cgensupport.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/Python/cgensupport.c b/Python/cgensupport.c
index 8d20f02..9a33eb9 100644
--- a/Python/cgensupport.c
+++ b/Python/cgensupport.c
@@ -24,21 +24,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Functions used by cgen output */
-#include <stdio.h>
-
-#include "PROTO.h"
-#include "object.h"
-#include "intobject.h"
-#include "floatobject.h"
-#include "stringobject.h"
-#include "tupleobject.h"
-#include "listobject.h"
-#include "methodobject.h"
-#include "moduleobject.h"
-#include "modsupport.h"
-#include "import.h"
+#include "allobjects.h"
#include "cgensupport.h"
-#include "errors.h"
/* Functions to construct return values */
@@ -130,6 +117,10 @@ extractdouble(v, p_arg)
*p_arg = GETINTVALUE((intobject *)v);
return 1;
}
+ else if (is_longobject(v)) {
+ *p_arg = dgetlongvalue(v);
+ return 1;
+ }
return err_badarg();
}
@@ -149,6 +140,10 @@ extractfloat(v, p_arg)
*p_arg = GETINTVALUE((intobject *)v);
return 1;
}
+ else if (is_longobject(v)) {
+ *p_arg = dgetlongvalue(v);
+ return 1;
+ }
return err_badarg();
}