#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <assert.h>
#include <string.h>
#include <malloc.h>
#include "readline.h"
Go to the source code of this file.
Defines | |
#define | HISTORY_SIZE 8 |
Functions | |
void | addline (char *s) |
Add a new line to the history buffer. | |
char * | getline (int line) |
Get a line from the history buffer. | |
char * | readline (char *s, int n) |
A simple version of the GNU readline function. | |
Variables | |
char * | history [HISTORY_SIZE] |
int | numlines = 0 |
|
Definition at line 29 of file readline.cpp. Referenced by addline(). |
|
Add a new line to the history buffer. If the history is already full, the oldest entry gets discarded.
Definition at line 42 of file readline.cpp. References history, HISTORY_SIZE, and numlines. Referenced by readline(). |
|
Get a line from the history buffer.
Definition at line 63 of file readline.cpp. References history, and numlines. Referenced by readline(). |
|
A simple version of the GNU readline function. Only the most basic editing functions are implemented.
Definition at line 85 of file readline.cpp. |
|
Definition at line 31 of file readline.cpp. |
|
Definition at line 32 of file readline.cpp. |