Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6c6f9d67
Commit
6c6f9d67
authored
Apr 07, 2014
by
Damien George
Browse files
windows: Make it compile with latest changes to py core.
parent
10072b72
Changes
2
Hide whitespace changes
Inline
Side-by-side
windows/main.c
View file @
6c6f9d67
...
...
@@ -59,7 +59,7 @@ static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind
printf("----------------\n");
*/
mp_obj_t
module_fun
=
mp_compile
(
pn
,
source_name
,
is_repl
);
mp_obj_t
module_fun
=
mp_compile
(
pn
,
source_name
,
MP_EMIT_OPT_NONE
,
is_repl
);
if
(
module_fun
==
mp_const_none
)
{
// compile error
...
...
@@ -230,9 +230,3 @@ int main(int argc, char **argv) {
//printf("total bytes = %d\n", m_get_total_bytes_allocated());
return
0
;
}
// for sqrt
#include
<math.h>
machine_float_t
machine_sqrt
(
machine_float_t
x
)
{
return
sqrt
(
x
);
}
windows/mpconfigport.h
View file @
6c6f9d67
...
...
@@ -13,7 +13,7 @@
#define MICROPY_ENABLE_REPL_HELPERS (1)
#define MICROPY_ENABLE_LEXER_UNIX (1)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_
LONGLONG
)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_
MPZ
)
// type definitions for the specific machine
...
...
@@ -31,6 +31,5 @@ typedef unsigned int machine_uint_t; // must be pointer size
typedef
void
*
machine_ptr_t
;
// must be of pointer size
typedef
const
void
*
machine_const_ptr_t
;
// must be of pointer size
typedef
double
machine_float_t
;
machine_float_t
machine_sqrt
(
machine_float_t
x
)
;
extern
const
struct
_mp_obj_fun_native_t
mp_builtin_open_obj
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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