/* 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 */
*p_arg = GETINTVALUE((intobject *)v);
return 1;
}
+ else if (is_longobject(v)) {
+ *p_arg = dgetlongvalue(v);
+ return 1;
+ }
return err_badarg();
}
*p_arg = GETINTVALUE((intobject *)v);
return 1;
}
+ else if (is_longobject(v)) {
+ *p_arg = dgetlongvalue(v);
+ return 1;
+ }
return err_badarg();
}
/* 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 */
*p_arg = GETINTVALUE((intobject *)v);
return 1;
}
+ else if (is_longobject(v)) {
+ *p_arg = dgetlongvalue(v);
+ return 1;
+ }
return err_badarg();
}
*p_arg = GETINTVALUE((intobject *)v);
return 1;
}
+ else if (is_longobject(v)) {
+ *p_arg = dgetlongvalue(v);
+ return 1;
+ }
return err_badarg();
}