Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
6c6f9d67
Commit
6c6f9d67
authored
Apr 7, 2014
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
windows: Make it compile with latest changes to py core.
parent
10072b72
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
windows/main.c
+1
-7
1 addition, 7 deletions
windows/main.c
windows/mpconfigport.h
+2
-3
2 additions, 3 deletions
windows/mpconfigport.h
with
3 additions
and
10 deletions
windows/main.c
+
1
−
7
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
);
}
This diff is collapsed.
Click to expand it.
windows/mpconfigport.h
+
2
−
3
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
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment