Release 950727
[wine] / debugger / readline / editline.h
1 /*  $Revision: 1.3 $
2 **
3 **  Internal header file for editline library.
4 */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <sys/types.h>
9 #include <sys/stat.h>
10
11
12 #define CRLF   "\r\n"
13
14
15 #define SIZE_T  size_t
16 #define CONST   const
17
18 typedef unsigned char   CHAR;
19
20 #if     defined(HIDE)
21 #define STATIC  static
22 #else
23 #define STATIC  /* NULL */
24 #endif  /* !defined(HIDE) */
25
26 #define MEM_INC         64
27 #define SCREEN_INC      256
28
29 #define DISPOSE(p)      free((char *)(p))
30 #define NEW(T, c)       \
31         ((T *)malloc((unsigned int)(sizeof (T) * (c))))
32 #define RENEW(p, T, c)  \
33         (p = (T *)realloc((char *)(p), (unsigned int)(sizeof (T) * (c))))
34 #define COPYFROMTO(new, p, len) \
35         (void)memcpy((char *)(new), (char *)(p), (int)(len))
36
37
38 /*
39 **  Variables and routines internal to this package.
40 */
41 extern int      rl_eof;
42 extern int      rl_erase;
43 extern int      rl_intr;
44 extern int      rl_kill;
45 extern int      rl_quit;
46 extern char     *rl_complete();
47 extern int      rl_list_possib();
48 extern void     rl_ttyset();
49 extern void     rl_add_slash();