#include <stdio.h>
#include <stdlib.h>
#include "GRL/readline.h"
#include "GRL/history.h"
#include "CLI/CLI_pubdefs.h"
#include "CLI_prvdefs.h"
Defines | |
#define | CLI_OOM 0 |
Out of memory. | |
#define | CLI_EOL 1 |
End of line. | |
#define | CLI_EOF 2 |
End of file. | |
#define | CLI_BAD 3 |
Error reading file. | |
#define | CLI_QUANTUM 256 |
Memory allocation quantum. | |
Functions | |
CLI_Control * | CLI_createCtl (const CLI_Syntax *) |
Allocate and initialize a CLI control structure. More... | |
char * | CLI_getTerm (const char *) |
Fetch a line of input from the terminal. More... | |
char * | CLI_getFile (CLI_Control *) |
Fetch a line of input from a file. More... | |
unsigned int | CLI_getLine (FILE *, char **, int *) |
Construct the next logical line of input in a file. More... | |
unsigned int | CLI_command (const char *ilin, const char *prompt, const CLI_Syntax *syntax, void *user) |
Parse and dispatch command lines. More... |
CLI_command.c handles command looping including fetching lines from files to satisfy command indirection.
|
Parse and dispatch command lines.
|
|
Allocate and initialize a CLI control structure.
|
|
Fetch a line of input from a file.
|
|
Construct the next logical line of input in a file.
|
|
Fetch a line of input from the terminal.
|