1 diff -Naur cdecl-2.5/cdecl.c cdecl-2.5-new/cdecl.c
2 --- cdecl-2.5/cdecl.c 1996-01-15 21:54:46.000000000 -0600
3 +++ cdecl-2.5-new/cdecl.c 2010-09-04 03:12:43.000000000 -0500
6 # include <readline/readline.h>
7 /* prototypes for functions related to readline() */
9 + char * our_getline(void);
10 char ** attempt_completion(char *, int, int);
11 char * keyword_completion(char *, int);
12 char * command_completion(char *, int);
14 static char *line_read = NULL;
16 /* Read a string, and return a pointer to it. Returns NULL on EOF. */
18 +char * our_getline (void)
20 /* If the buffer has already been allocated, return the memory
24 if (!quiet) (void) printf("Type `help' or `?' for help\n");
26 - while ((line = getline())) {
27 + while ((line = our_getline())) {
28 if (!strcmp(line, "quit") || !strcmp(line, "exit")) {