49 #define HAVE_TCGETATTR
60 typedef enum _STATUS {
61 CSdone, CSeof, CSmove, CSdispatch, CSstay
64 typedef STATUS (*Keymap_Function)();
68 #if defined(HAVE_STDLIB)
80 #define ESIZE_T unsigned int
83 typedef unsigned char ECHAR;
101 #define SCREEN_INC 256
104 #define DISPOSE(p) free((char *)(p))
106 ((T *)malloc((unsigned int)(sizeof (T) * (c))))
107 #define RENEW(p, T, c) \
108 (p = (T *)realloc((char *)(p), (unsigned int)(sizeof (T) * (c))))
109 #define STRDUP(X) strdup(X)
111 #define COPYFROMTO(new, p, len) \
112 (void)memcpy((char *)(new), (char *)(p), (int)(len))
114 #include "EST_walloc.h"
115 #define DISPOSE(p) wfree(p)
116 #define NEW(T,c) walloc(T,c)
117 #define RENEW(p,T,c) (p = wrealloc(p,T,c))
118 #define STRDUP(X) wstrdup(X)
128 extern int el_user_intr;
129 extern int el_no_echo;
130 extern char *rl_complete(
char *pathname,
int *unique);
131 extern int rl_list_possib(
char *pathname,
char ***avp);
132 extern char *editline_history_file;
133 void rl_ttyset(
int Reset);
134 void rl_add_slash(
char *path,
char *p);
135 int el_is_directory(
char *path);
138 #if !defined(HAVE_STDLIB)
139 extern char *getenv();
140 extern char *malloc();
141 extern char *realloc();
142 extern char *memcpy();
143 extern char *strcat();
144 extern char *strchr();
145 extern char *strrchr();
146 extern char *strcpy();
147 extern char *strdup();
150 extern int strncmp();
155 char * readline(CONST
char* prompt);
156 void add_history(
char *p);
157 void read_history(
const char *history_file);
158 void write_history(
const char *history_file);
159 typedef char **EL_USER_COMPLETION_FUNCTION_TYPE(
char *text,
int start,
int end);
160 extern EL_USER_COMPLETION_FUNCTION_TYPE*el_user_completion_function;
161 char *el_current_sym();
163 void el_bind_key_in_metamap(
char c, Keymap_Function func);