Commit d674bd59 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Convert USE_READLINE config option to be consistent with others.

parent 9464cde3
...@@ -2,7 +2,7 @@ PYSRC=../py ...@@ -2,7 +2,7 @@ PYSRC=../py
BUILD=build BUILD=build
CC = gcc 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 LDFLAGS = -lm
SRC_C = \ SRC_C = \
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "runtime.h" #include "runtime.h"
#include "repl.h" #include "repl.h"
#ifdef USE_READLINE #if MICROPY_USE_READLINE
#include <readline/readline.h> #include <readline/readline.h>
#include <readline/history.h> #include <readline/history.h>
#endif #endif
...@@ -35,7 +35,7 @@ static char *str_join(const char *s1, int sep_char, const char *s2) { ...@@ -35,7 +35,7 @@ static char *str_join(const char *s1, int sep_char, const char *s2) {
} }
static char *prompt(char *p) { static char *prompt(char *p) {
#ifdef USE_READLINE #if MICROPY_USE_READLINE
char *line = readline(p); char *line = readline(p);
if (line) { if (line) {
add_history(line); add_history(line);
......
// options to control how Micro Python is built // 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_ENABLE_FLOAT (1)
#define MICROPY_EMIT_CPYTHON (0) #define MICROPY_EMIT_CPYTHON (0)
#define MICROPY_EMIT_X64 (1) #define MICROPY_EMIT_X64 (1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment