Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
circuitpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
circuitpython
Commits
5e83a75c
Commit
5e83a75c
authored
Mar 03, 2017
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix: Remove remaining, obsolete traces of GNU readline support.
parent
3d91c12d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
15 deletions
+1
-15
unix/input.c
unix/input.c
+0
-14
unix/main.c
unix/main.c
+1
-1
No files found.
unix/input.c
View file @
5e83a75c
...
...
@@ -35,10 +35,6 @@
#if MICROPY_USE_READLINE == 1
#include "lib/mp-readline/readline.h"
#elif MICROPY_USE_READLINE == 2
#include <readline/readline.h>
#include <readline/history.h>
#include <readline/tilde.h>
#endif
char
*
prompt
(
char
*
p
)
{
...
...
@@ -66,12 +62,6 @@ char *prompt(char *p) {
char
*
line
=
malloc
(
vstr
.
len
+
1
);
memcpy
(
line
,
vstr
.
buf
,
vstr
.
len
+
1
);
vstr_clear
(
&
vstr
);
#elif MICROPY_USE_READLINE == 2
// GNU readline
char
*
line
=
readline
(
p
);
if
(
line
)
{
add_history
(
line
);
}
#else
// simple read string
static
char
buf
[
256
];
...
...
@@ -124,8 +114,6 @@ void prompt_read_history(void) {
}
vstr_clear
(
&
vstr
);
}
#elif MICROPY_USE_READLINE == 2
read_history
(
tilde_expand
(
"~/.micropython.history"
));
#endif
#endif
}
...
...
@@ -152,8 +140,6 @@ void prompt_write_history(void) {
close
(
fd
);
}
}
#elif MICROPY_USE_READLINE == 2
write_history
(
tilde_expand
(
"~/.micropython.history"
));
#endif
#endif
}
...
...
unix/main.c
View file @
5e83a75c
...
...
@@ -249,7 +249,7 @@ STATIC int do_repl(void) {
#else
// use
GNU or
simple readline
// use simple readline
for
(;;)
{
char
*
line
=
prompt
(
">>> "
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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