For /dev/mem, map in memory to be copied to memory's own address space
[minix3.git] / lib / editline / editline.h
blob145fc193f27f7af7a6e6ef2d60fa67138aaf0a7c
1 /* $Revision$
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) */
17 #if !defined(SIZE_T)
18 #define SIZE_T unsigned int
19 #endif /* !defined(SIZE_T) */
21 typedef unsigned char CHAR;
23 #if defined(HIDE)
24 #define STATIC static
25 #else
26 #define STATIC /* NULL */
27 #endif /* !defined(HIDE) */
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) */
38 #define MEM_INC 64
39 #define SCREEN_INC 256
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))
51 ** Variables and routines internal to this package.
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();
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 int strcmp();
73 extern int strlen();
74 extern int strncmp();
75 #endif /* !defined(HAVE_STDLIB) */
77 #if defined(NEED_STRDUP)
78 extern char *strdup();
79 #endif