sim/erc32: Use readline.h for readline types and functions.
authorJiri Gaisler <jiri@gaisler.se>
Thu, 19 Feb 2015 22:31:34 +0000 (23:31 +0100)
committerMike Frysinger <vapier@gentoo.org>
Sun, 22 Feb 2015 20:57:25 +0000 (15:57 -0500)
Use gdb's readline.h for readline types.

sim/erc32/ChangeLog
sim/erc32/Makefile.in
sim/erc32/sis.c

index 47e82d2f3f80443a77a4d7fd9089627a95748310..4677d758f55cc7dc776883787aea3ee0ebdf3486 100644 (file)
@@ -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>
 
        * func.c (reset_stat, show_stat): Switch to double in time keeping.
index 418e7e4874ee5e5dad528d4f4e7fdd70d3712d0d..a60cd8a8ec6c225f7e797881b49fdfecee7c822b 100644 (file)
@@ -30,7 +30,7 @@ SIM_EXTRA_CLEAN = clean-sis
 # UARTS run at about 115200 baud (simulator time). Add -DFAST_UART to
 # CFLAGS if faster (infinite) UART speed is desired. Might affect the
 # behaviour of UART interrupt routines ...
-SIM_EXTRA_CFLAGS = -DFAST_UART
+SIM_EXTRA_CFLAGS = -DFAST_UART -I$(srcroot)
 
 ## COMMON_POST_CONFIG_FRAG
 
index d7fa245cff142ac22ab167b741159b42b4ba9727..ce9b3d0c642f9acceb300beb33741f4c3380b776 100644 (file)
 
 /* Structures and functions from readline library */
 
-typedef struct {
-  char *line;
-  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);
-
-
+#include "readline/readline.h"
+#include "readline/history.h"
 
 /* Command history buffer length - MUST be binary */
 #define HIST_LEN       64
This page took 0.028127 seconds and 4 git commands to generate.