summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--windows/main.c8
-rw-r--r--windows/mpconfigport.h5
2 files changed, 3 insertions, 10 deletions
diff --git a/windows/main.c b/windows/main.c
index 59174d73df..98d293161a 100644
--- a/windows/main.c
+++ b/windows/main.c
@@ -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);
-}
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h
index 309271ba23..74fe749e1e 100644
--- a/windows/mpconfigport.h
+++ b/windows/mpconfigport.h
@@ -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;