remove gcc34
[dragonfly.git] / crypto / heimdal-0.6.3 / lib / editline / editline.h
1 /*  $Revision: 1.4 $
2 **
3 **  Internal header file for editline library.
4 */
5 #ifdef HAVE_CONFIG_H
6 #include <config.h>
7 #endif
8
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12
13 #define CRLF            "\r\n"
14
15 #ifdef HAVE_SYS_TYPES_H
16 #include <sys/types.h>
17 #endif
18 #ifdef HAVE_SYS_STAT_H
19 #include <sys/stat.h>
20 #endif
21
22 #ifdef HAVE_DIRENT_H
23 #include <dirent.h>
24 typedef struct dirent   DIRENTRY;
25 #else
26 #include <sys/dir.h>
27 typedef struct direct   DIRENTRY;
28 #endif
29
30 #include <roken.h>
31
32 #if     !defined(S_ISDIR)
33 #define S_ISDIR(m)              (((m) & S_IFMT) == S_IFDIR)
34 #endif  /* !defined(S_ISDIR) */
35
36 typedef unsigned char   CHAR;
37
38 #define MEM_INC         64
39 #define SCREEN_INC      256
40
41 /*
42 **  Variables and routines internal to this package.
43 */
44 extern int      rl_eof;
45 extern int      rl_erase;
46 extern int      rl_intr;
47 extern int      rl_kill;
48 extern int      rl_quit;
49
50 typedef char* (*rl_complete_func_t)(char*, int*);
51
52 typedef int (*rl_list_possib_func_t)(char*, char***);
53
54 void    add_history (char*);
55 char*   readline (const char* prompt);
56 void    rl_add_slash (char*, char*);
57 char*   rl_complete (char*, int*);
58 void    rl_initialize (void);
59 int     rl_list_possib (char*, char***);
60 void    rl_reset_terminal (char*);
61 void    rl_ttyset (int);
62 rl_complete_func_t      rl_set_complete_func (rl_complete_func_t);
63 rl_list_possib_func_t   rl_set_list_possib_func (rl_list_possib_func_t);
64