Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uPython-mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TASTE
uPython-mirror
Commits
d674bd59
PL1
Commit
d674bd59
authored
11 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
Convert USE_READLINE config option to be consistent with others.
parent
9464cde3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
unix/Makefile
+1
-1
1 addition, 1 deletion
unix/Makefile
unix/main.c
+2
-2
2 additions, 2 deletions
unix/main.c
unix/mpconfigport.h
+5
-0
5 additions, 0 deletions
unix/mpconfigport.h
with
8 additions
and
3 deletions
unix/Makefile
+
1
−
1
View file @
d674bd59
...
...
@@ -2,7 +2,7 @@ PYSRC=../py
BUILD
=
build
CC
=
gcc
CFLAGS
=
-I
.
-I
$(
PYSRC
)
-Wall
-Werror
-ansi
-std
=
gnu99
-Os
-DUSE_READLINE
#-DNDEBUG
CFLAGS
=
-I
.
-I
$(
PYSRC
)
-Wall
-Werror
-ansi
-std
=
gnu99
-Os
#-DNDEBUG
LDFLAGS
=
-lm
SRC_C
=
\
...
...
This diff is collapsed.
Click to expand it.
unix/main.c
+
2
−
2
View file @
d674bd59
...
...
@@ -15,7 +15,7 @@
#include
"runtime.h"
#include
"repl.h"
#if
def
USE_READLINE
#if
MICROPY_
USE_READLINE
#include
<readline/readline.h>
#include
<readline/history.h>
#endif
...
...
@@ -35,7 +35,7 @@ static char *str_join(const char *s1, int sep_char, const char *s2) {
}
static
char
*
prompt
(
char
*
p
)
{
#if
def
USE_READLINE
#if
MICROPY_
USE_READLINE
char
*
line
=
readline
(
p
);
if
(
line
)
{
add_history
(
line
);
...
...
This diff is collapsed.
Click to expand it.
unix/mpconfigport.h
+
5
−
0
View file @
d674bd59
// options to control how Micro Python is built
// Linking with GNU readline causes binary to be licensed under GPL
#ifndef MICROPY_USE_READLINE
#define MICROPY_USE_READLINE (1)
#endif
#define MICROPY_ENABLE_FLOAT (1)
#define MICROPY_EMIT_CPYTHON (0)
#define MICROPY_EMIT_X64 (1)
...
...
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