Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
76a90f2f
Commit
76a90f2f
authored
Jan 13, 2014
by
Paul Sokolovsky
Browse files
Move mp_obj_int_t definition to objint.h, to reuse in long int impls.
parent
f62d33aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/objint.c
View file @
76a90f2f
...
...
@@ -8,16 +8,7 @@
#include
"mpconfig.h"
#include
"mpqstr.h"
#include
"obj.h"
typedef
struct
_mp_obj_int_t
{
mp_obj_base_t
base
;
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
mp_longint_impl_t
val
;
#endif
}
mp_obj_int_t
;
void
int_print
(
void
(
*
print
)(
void
*
env
,
const
char
*
fmt
,
...),
void
*
env
,
mp_obj_t
self_in
);
mp_obj_t
int_binary_op
(
int
op
,
mp_obj_t
lhs_in
,
mp_obj_t
rhs_in
);
#include
"objint.h"
// This dispatcher function is expected to be independent of the implementation
// of long int
...
...
py/objint.h
0 → 100644
View file @
76a90f2f
typedef
struct
_mp_obj_int_t
{
mp_obj_base_t
base
;
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
mp_longint_impl_t
val
;
#endif
}
mp_obj_int_t
;
void
int_print
(
void
(
*
print
)(
void
*
env
,
const
char
*
fmt
,
...),
void
*
env
,
mp_obj_t
self_in
);
mp_obj_t
int_binary_op
(
int
op
,
mp_obj_t
lhs_in
,
mp_obj_t
rhs_in
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment