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
d674bd59
Commit
d674bd59
authored
Jan 04, 2014
by
Paul Sokolovsky
Browse files
Convert USE_READLINE config option to be consistent with others.
parent
9464cde3
Changes
3
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
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
=
\
...
...
unix/main.c
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
);
...
...
unix/mpconfigport.h
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)
...
...
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