Release 950122
[wine] / debugger / readline / editline.h
1 /*  $Revision: 1.3 $
2 **
3 **  Internal header file for editline library.
4 */
5 #include <stdio.h>
6 #if     defined(HAVE_STDLIB)
7 #include <stdlib.h>
8 #include <string.h>
9 #endif  /* defined(HAVE_STDLIB) */
10 #if     defined(SYS_UNIX)
11 #include "unix.h"
12 #endif  /* defined(SYS_UNIX) */
13 #if     defined(SYS_OS9)
14 #include "os9.h"
15 #endif  /* defined(SYS_OS9) */
16
17 #if     !defined(SIZE_T)
18 #define SIZE_T  unsigned int
19 #endif  /* !defined(SIZE_T) */
20
21 typedef unsigned char   CHAR;
22
23 #if     defined(HIDE)
24 #define STATIC  static
25 #else
26 #define STATIC  /* NULL */
27 #endif  /* !defined(HIDE) */
28
29 #if     !defined(CONST)
30 #if     defined(__STDC__)
31 #define CONST   const
32 #else
33 #define CONST
34 #endif  /* defined(__STDC__) */
35 #endif  /* !defined(CONST) */
36
37
38 #define MEM_INC         64
39 #define SCREEN_INC      256
40
41 #define DISPOSE(p)      free((char *)(p))
42 #define NEW(T, c)       \
43         ((T *)malloc((unsigned int)(sizeof (T) * (c))))
44 #define RENEW(p, T, c)  \
45         (p = (T *)realloc((char *)(p), (unsigned int)(sizeof (T) * (c))))
46 #define COPYFROMTO(new, p, len) \
47         (void)memcpy((char *)(new), (char *)(p), (int)(len))
48
49
50 /*
51 **  Variables and routines internal to this package.
52 */
53 extern int      rl_eof;
54 extern int      rl_erase;
55 extern int      rl_intr;
56 extern int      rl_kill;
57 extern int      rl_quit;
58 extern char     *rl_complete();
59 extern int      rl_list_possib();
60 extern void     rl_ttyset();
61 extern void     rl_add_slash();
62
63 #if     !defined(HAVE_STDLIB)
64 extern char     *getenv();
65 extern char     *malloc();
66 extern char     *realloc();
67 extern char     *memcpy();
68 extern char     *strcat();
69 extern char     *strchr();
70 extern char     *strrchr();
71 extern char     *strcpy();
72 extern char     *strdup();
73 extern int      strcmp();
74 extern int      strlen();
75 extern int      strncmp();
76 #endif  /* !defined(HAVE_STDLIB) */