14 char *ds(char *), *cat(char *, ...), *visible(int);
15 - int getopt(int,char **,char *);
16 int main(int, char **);
20 --- cdecl.c 2009-07-07 13:20:37.000000000 +0200
21 +++ cdecl.c.new 2009-07-07 13:25:00.000000000 +0200
24 # include <readline/readline.h>
25 /* prototypes for functions related to readline() */
28 char ** attempt_completion(char *, int, int);
29 char * keyword_completion(char *, int);
30 char * command_completion(char *, int);
32 static char *line_read = NULL;
34 /* Read a string, and return a pointer to it. Returns NULL on EOF. */
38 /* If the buffer has already been allocated, return the memory
42 if (!quiet) (void) printf("Type `help' or `?' for help\n");
44 - while ((line = getline())) {
45 + while ((line = mygetline())) {
46 if (!strcmp(line, "quit") || !strcmp(line, "exit")) {
49 --- Makefile.old 2010-08-26 22:06:28.000000000 +0200
50 +++ Makefile 2010-08-26 22:11:42.000000000 +0200
53 # add -DUSE_READLINE To compile in support for the GNU readline library.
55 -CFLAGS= -s -O2 -DUSE_READLINE
58 -LIBS= -lreadline -ltermcap
60 ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
66 c++decl: cdgram.c cdlex.c cdecl.c
67 - $(CC) $(CFLAGS) -o c++decl cdecl.c $(LIBS)
68 + $(CC) $(CFLAGS) ${LDFLAGS} -o c++decl cdecl.c $(LIBS)