sim/erc32: Use readline.h for readline types and functions.
Use gdb's readline.h for readline types.
This commit is contained in:
parent
be66981e16
commit
5634e839cc
|
@ -1,3 +1,8 @@
|
||||||
|
2015-02-22 Jiri Gaisler <jiri@gaisler.se>
|
||||||
|
|
||||||
|
* Makefile.in: Add include path to readline.h.
|
||||||
|
sis.c: Remove locally define readline types.
|
||||||
|
|
||||||
2015-02-21 Jiri Gaisler <jiri@gaisler.se>
|
2015-02-21 Jiri Gaisler <jiri@gaisler.se>
|
||||||
|
|
||||||
* func.c (reset_stat, show_stat): Switch to double in time keeping.
|
* func.c (reset_stat, show_stat): Switch to double in time keeping.
|
||||||
|
|
|
@ -30,7 +30,7 @@ SIM_EXTRA_CLEAN = clean-sis
|
||||||
# UARTS run at about 115200 baud (simulator time). Add -DFAST_UART to
|
# UARTS run at about 115200 baud (simulator time). Add -DFAST_UART to
|
||||||
# CFLAGS if faster (infinite) UART speed is desired. Might affect the
|
# CFLAGS if faster (infinite) UART speed is desired. Might affect the
|
||||||
# behaviour of UART interrupt routines ...
|
# behaviour of UART interrupt routines ...
|
||||||
SIM_EXTRA_CFLAGS = -DFAST_UART
|
SIM_EXTRA_CFLAGS = -DFAST_UART -I$(srcroot)
|
||||||
|
|
||||||
## COMMON_POST_CONFIG_FRAG
|
## COMMON_POST_CONFIG_FRAG
|
||||||
|
|
||||||
|
|
|
@ -35,17 +35,8 @@
|
||||||
|
|
||||||
/* Structures and functions from readline library */
|
/* Structures and functions from readline library */
|
||||||
|
|
||||||
typedef struct {
|
#include "readline/readline.h"
|
||||||
char *line;
|
#include "readline/history.h"
|
||||||
char *data;
|
|
||||||
} HIST_ENTRY;
|
|
||||||
|
|
||||||
extern char * readline (char *prompt);
|
|
||||||
extern void using_history (void);
|
|
||||||
extern void add_history (char *string);
|
|
||||||
extern HIST_ENTRY *remove_history (int which);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Command history buffer length - MUST be binary */
|
/* Command history buffer length - MUST be binary */
|
||||||
#define HIST_LEN 64
|
#define HIST_LEN 64
|
||||||
|
|
Loading…
Reference in New Issue