The R Project SVN R

Rev

Rev 43767 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43767 Rev 43831
Line 1... Line 1...
1
#ifndef GETLINE_H
1
#ifndef GETLINE_H
2
#define GETLINE_H
2
#define GETLINE_H
3
 
3
 
4
/* unix systems can #define POSIX to use termios, otherwise 
-
 
5
 * the bsd or sysv interface will be used 
-
 
6
 */
-
 
7
 
-
 
8
#if __STDC__ > 0
-
 
9
#include <stddef.h>
4
#include <stddef.h>
10
 
5
 
11
typedef size_t (*gl_strwidth_proc)(char *);
6
typedef size_t (*gl_strwidth_proc)(char *);
12
 
7
 
13
/* read a line of input */
8
/* read a line of input */
Line 28... Line 23...
28
 
23
 
29
#ifdef Win32
24
#ifdef Win32
30
extern void 	(*gl_events_hook)(void);
25
extern void 	(*gl_events_hook)(void);
31
#endif
26
#endif
32
 
27
 
33
 
-
 
34
#else	/* not __STDC__ */
-
 
35
 
-
 
36
char           *getline();	
-
 
37
void            gl_setwidth();
-
 
38
void            gl_histadd();
-
 
39
void		gl_strwidth();
-
 
40
void		gl_loadhistory();
-
 
41
void		gl_savehistory();
-
 
42
void            gl_hist_init();
-
 
43
char    	*gl_hist_next();
-
 
44
char    	*gl_hist_prev();
-
 
45
 
-
 
46
extern int 	(*gl_in_hook)();
-
 
47
extern int 	(*gl_out_hook)();
-
 
48
extern int	(*gl_tab_hook)();
-
 
49
 
-
 
50
#endif /* __STDC__ */
-
 
51
 
-
 
52
#endif /* GETLINE_H */
28
#endif /* GETLINE_H */