mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
long_format() is now declared in longobject.h.
This commit is contained in:
parent
670e5a0d92
commit
6d80647f7f
1 changed files with 2 additions and 5 deletions
|
|
@ -37,9 +37,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include "ceval.h"
|
#include "ceval.h"
|
||||||
#include "modsupport.h"
|
#include "modsupport.h"
|
||||||
|
|
||||||
/* Should be in longobject.h */
|
|
||||||
extern stringobject *long_format PROTO((object *, int));
|
|
||||||
|
|
||||||
static object *
|
static object *
|
||||||
builtin_abs(self, v)
|
builtin_abs(self, v)
|
||||||
object *self;
|
object *self;
|
||||||
|
|
@ -228,7 +225,7 @@ builtin_hex(self, v)
|
||||||
return newstringobject(buf);
|
return newstringobject(buf);
|
||||||
}
|
}
|
||||||
if (is_longobject(v)) {
|
if (is_longobject(v)) {
|
||||||
return (object *) long_format(v, 16);
|
return long_format(v, 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err_setstr(TypeError, "hex() requires int/long argument");
|
err_setstr(TypeError, "hex() requires int/long argument");
|
||||||
|
|
@ -399,7 +396,7 @@ builtin_oct(self, v)
|
||||||
return newstringobject(buf);
|
return newstringobject(buf);
|
||||||
}
|
}
|
||||||
if (is_longobject(v)) {
|
if (is_longobject(v)) {
|
||||||
return (object *) long_format(v, 8);
|
return long_format(v, 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err_setstr(TypeError, "oct() requires int/long argument");
|
err_setstr(TypeError, "oct() requires int/long argument");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue