version 1.1.1.2, 2000/01/22 14:16:00 |
version 1.1.1.3, 2003/09/15 07:09:26 |
|
|
free(cur_line); |
free(cur_line); |
line_len = 0; |
line_len = 0; |
} |
} |
cur_line = gp_alloc((unsigned long) MAXBUF, "readline"); |
cur_line = gp_alloc(MAXBUF, "readline"); |
line_len = MAXBUF; |
line_len = MAXBUF; |
|
|
/* set the termio so we can do our own input processing */ |
/* set the termio so we can do our own input processing */ |
|
|
entry = entry->prev; |
entry = entry->prev; |
} /* end of not-storing duplicated entries */ |
} /* end of not-storing duplicated entries */ |
|
|
entry = (struct hist *) gp_alloc((unsigned long) sizeof(struct hist), "history"); |
entry = (struct hist *) gp_alloc(sizeof(struct hist), "history"); |
entry->line = gp_alloc((unsigned long) (strlen(line) + 1), "history"); |
entry->line = gp_alloc((strlen(line) + 1), "history"); |
strcpy(entry->line, line); |
strcpy(entry->line, line); |
|
|
entry->prev = history; |
entry->prev = history; |