ReactOS 0.4.15-dev-7906-g1b85a5f
Go to the documentation of this file.
1#ifndef GETLINE_H
2#define GETLINE_H
4/* unix systems can #define POSIX to use termios, otherwise
5 * the bsd or sysv interface will be used
6 */
8#define GL_BUF_SIZE 1024
10/* Result codes available for gl_get_result() */
11#define GL_OK 0 /* Valid line of input entered */
12#define GL_EOF (-1) /* End of input */
13#define GL_INTERRUPT (-2) /* User hit Ctrl+C */
15typedef size_t (*gl_strwidth_proc)(char *);
16typedef int (*gl_in_hook_proc)(char *);
17typedef int (*gl_out_hook_proc)(char *);
18typedef int (*gl_tab_hook_proc)(char *, int, int *, size_t);
19typedef size_t (*gl_strlen_proc)(const char *);
20typedef char * (*gl_tab_completion_proc)(const char *, int);
22char *getline(char *); /* read a line of input */
23void gl_setwidth(int); /* specify width of screen */
24void gl_setheight(int); /* specify height of screen */
25void gl_histadd(char *); /* adds entries to hist */
26void gl_strwidth(gl_strwidth_proc); /* to bind gl_strlen */
28char *gl_local_filename_completion_proc(const char *, int);
29void gl_set_home_dir(const char *homedir);
30void gl_histsavefile(const char *const path);
31void gl_histloadfile(const char *const path);
32char *gl_getpass(const char *const prompt, char *const pass, int dsize);
33int gl_get_result(void);
35#ifndef _getline_c_
43extern const char *gl_filename_quote_characters;
46extern char gl_buf[GL_BUF_SIZE];
48#endif /* ! _getline_c_ */
50#endif /* GETLINE_H */
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
__kernel_size_t size_t
Definition: linux.h:237
int gl_ellipses_during_completion
Definition: getline.c:87
int(* gl_in_hook_proc)(char *)
Definition: getline.h:16
void gl_setheight(int)
Definition: getline.c:547
int gl_completion_exact_match_extra_char
Definition: getline.c:88
gl_tab_completion_proc gl_completion_proc
Definition: getline.c:84
char * gl_local_filename_completion_proc(const char *, int)
Definition: getline.c:2258
void gl_strwidth(gl_strwidth_proc)
size_t(* gl_strlen_proc)(const char *)
Definition: getline.h:19
int(* gl_tab_hook_proc)(char *, int, int *, size_t)
Definition: getline.h:18
gl_strlen_proc gl_strlen
void gl_histsavefile(const char *const path)
Definition: getline.c:1408
size_t(* gl_strwidth_proc)(char *)
Definition: getline.h:15
char * gl_getpass(const char *const prompt, char *const pass, int dsize)
Definition: getline.c:2051
int gl_get_result(void)
Definition: getline.c:224
char *(* gl_tab_completion_proc)(const char *, int)
Definition: getline.h:20
gl_in_hook_proc gl_in_hook
Definition: getline.c:80
const char * gl_filename_quote_characters
Definition: getline.c:86
void gl_setwidth(int)
Definition: getline.c:532
void gl_set_home_dir(const char *homedir)
Definition: getline.c:1985
gl_out_hook_proc gl_out_hook
Definition: getline.c:81
#define GL_BUF_SIZE
Definition: getline.h:8
gl_tab_hook_proc gl_tab_hook
Definition: getline.c:82
char gl_buf[GL_BUF_SIZE]
Definition: getline.c:89
int gl_filename_quoting_desired
Definition: getline.c:85
void gl_histloadfile(const char *const path)
Definition: getline.c:1437
void gl_tab_completion(gl_tab_completion_proc)
Definition: getline.c:1951
void gl_histadd(char *)
Definition: getline.c:1314
int(* gl_out_hook_proc)(char *)
Definition: getline.h:17
#define getline
Definition: schily.h:567
Definition: typegen.h:25