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
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 = \
......
......@@ -15,7 +15,7 @@
#include "runtime.h"
#include "repl.h"
#ifdef 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) {
#ifdef USE_READLINE
#if MICROPY_USE_READLINE
char *line = readline(p);
if (line) {
add_history(line);
......
// 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)
......
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