diff options
author | Guido van Rossum <guido@python.org> | 1992-01-19 16:25:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-19 16:25:49 (GMT) |
commit | 6d80647f7f82d8a0aba2d735ca9d894cadd3b332 (patch) | |
tree | b0a6a7d1dd08d653c9f60536651cd139ff36b62f | |
parent | 670e5a0d927a4feca693f45898e39750a2c0cb11 (diff) | |
download | cpython-6d80647f7f82d8a0aba2d735ca9d894cadd3b332.zip cpython-6d80647f7f82d8a0aba2d735ca9d894cadd3b332.tar.gz cpython-6d80647f7f82d8a0aba2d735ca9d894cadd3b332.tar.bz2 |
long_format() is now declared in longobject.h.
-rw-r--r-- | Python/bltinmodule.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index bd153f2..d5870fe 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -37,9 +37,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "ceval.h" #include "modsupport.h" -/* Should be in longobject.h */ -extern stringobject *long_format PROTO((object *, int)); - static object * builtin_abs(self, v) object *self; @@ -228,7 +225,7 @@ builtin_hex(self, v) return newstringobject(buf); } if (is_longobject(v)) { - return (object *) long_format(v, 16); + return long_format(v, 16); } } err_setstr(TypeError, "hex() requires int/long argument"); @@ -399,7 +396,7 @@ builtin_oct(self, v) return newstringobject(buf); } if (is_longobject(v)) { - return (object *) long_format(v, 8); + return long_format(v, 8); } } err_setstr(TypeError, "oct() requires int/long argument"); |