1 --- cdecl-2.5/cdecl.c~ 2016-10-18 19:39:15.000000000 +0200
2 +++ cdecl-2.5/cdecl.c 2016-10-18 19:40:38.931448163 +0200
5 # include <readline/readline.h>
6 /* prototypes for functions related to readline() */
8 + char * cdecl_getline();
9 char ** attempt_completion(char *, int, int);
10 char * keyword_completion(char *, int);
11 char * command_completion(char *, int);
13 static char *line_read = NULL;
15 /* Read a string, and return a pointer to it. Returns NULL on EOF. */
17 +char * cdecl_getline ()
19 /* If the buffer has already been allocated, return the memory
23 if (!quiet) (void) printf("Type `help' or `?' for help\n");
25 - while ((line = getline())) {
26 + while ((line = cdecl_getline())) {
27 if (!strcmp(line, "quit") || !strcmp(line, "exit")) {