Aprepro  5.0x
apr_getline_int.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 
7 #ifndef GETLINE_H
8 #define GETLINE_H
9 
10 /* unix systems can #define POSIX to use termios, otherwise
11  * the bsd or sysv interface will be used
12  */
13 
14 #define GL_BUF_SIZE 1024
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 typedef size_t (*gl_strwidth_proc)(char *);
21 typedef int (*gl_in_hook_proc)(char *);
22 typedef int (*gl_out_hook_proc)(char *);
23 typedef int (*gl_tab_hook_proc)(char *, int, int *, size_t);
24 typedef size_t (*gl_strlen_proc)(const char *);
25 typedef char *(*gl_tab_completion_proc)(const char *, int);
26 
27 char *getline_int(char *); /* read a line of input */
28 void gl_setwidth(int); /* specify width of screen */
29 void gl_histadd(char *); /* adds entries to hist */
30 void gl_strwidth(gl_strwidth_proc); /* to bind gl_strlen */
32 char *gl_local_filename_completion_proc(const char *, int);
33 void gl_set_home_dir(const char *homedir);
34 void gl_histsavefile(const char *const path);
35 void gl_histloadfile(const char *const path);
36 char *gl_win_getpass(const char *const prompt, char *const pass, int dsize);
37 
38 #ifndef _getline_c_
39 
46 extern const char * gl_filename_quote_characters;
49 extern char gl_buf[GL_BUF_SIZE];
50 
51 #endif /* ! _getline_c_ */
52 
53 #ifdef __cplusplus
54 } /* close brackets on extern "C" declaration */
55 #endif
56 
57 #endif /* GETLINE_H */
gl_win_getpass
char * gl_win_getpass(const char *const prompt, char *const pass, int dsize)
gl_completion_exact_match_extra_char
int gl_completion_exact_match_extra_char
GL_BUF_SIZE
#define GL_BUF_SIZE
Definition: apr_getline_int.h:14
gl_filename_quoting_desired
int gl_filename_quoting_desired
gl_histadd
void gl_histadd(char *)
gl_strlen
gl_strlen_proc gl_strlen
gl_ellipses_during_completion
int gl_ellipses_during_completion
gl_completion_proc
gl_tab_completion_proc gl_completion_proc
gl_local_filename_completion_proc
char * gl_local_filename_completion_proc(const char *, int)
gl_tab_completion_proc
char *(* gl_tab_completion_proc)(const char *, int)
Definition: apr_getline_int.h:25
gl_tab_hook
gl_tab_hook_proc gl_tab_hook
gl_strlen_proc
size_t(* gl_strlen_proc)(const char *)
Definition: apr_getline_int.h:24
gl_buf
char gl_buf[GL_BUF_SIZE]
getline_int
char * getline_int(char *)
gl_setwidth
void gl_setwidth(int)
gl_strwidth
void gl_strwidth(gl_strwidth_proc)
gl_set_home_dir
void gl_set_home_dir(const char *homedir)
gl_filename_quote_characters
const char * gl_filename_quote_characters
gl_strwidth_proc
size_t(* gl_strwidth_proc)(char *)
Definition: apr_getline_int.h:20
gl_in_hook
gl_in_hook_proc gl_in_hook
gl_histloadfile
void gl_histloadfile(const char *const path)
gl_histsavefile
void gl_histsavefile(const char *const path)
gl_tab_hook_proc
int(* gl_tab_hook_proc)(char *, int, int *, size_t)
Definition: apr_getline_int.h:23
gl_in_hook_proc
int(* gl_in_hook_proc)(char *)
Definition: apr_getline_int.h:21
gl_out_hook_proc
int(* gl_out_hook_proc)(char *)
Definition: apr_getline_int.h:22
gl_tab_completion
void gl_tab_completion(gl_tab_completion_proc)
gl_out_hook
gl_out_hook_proc gl_out_hook