The R Project SVN R

Rev

Rev 84952 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 84952 Rev 86820
Line 4... Line 4...
4
#include <stddef.h>
4
#include <stddef.h>
5
 
5
 
6
typedef size_t (*gl_strwidth_proc)(const char *);
6
typedef size_t (*gl_strwidth_proc)(const char *);
7
 
7
 
8
/* read a line of input */
8
/* read a line of input */
9
int             getline(const char *prompt, char *buf, int maxlen);  
9
int             getline(const char *prompt, char *buf, int maxlen);
-
 
10
int             getline2(const char *prompt, char **buf);
10
 
11
 
11
void            gl_setwidth(int);		/* specify width of screen */
12
void            gl_setwidth(int);		/* specify width of screen */
12
void            gl_histadd(const char *);	/* adds entries to hist */
13
void            gl_histadd(const char *);	/* adds entries to hist */
13
void		gl_strwidth(gl_strwidth_proc);	/* to bind gl_strlen */
14
void		gl_strwidth(gl_strwidth_proc);	/* to bind gl_strlen */
14
void		gl_loadhistory(const char *);
15
void		gl_loadhistory(const char *);
15
void		gl_savehistory(const char *, int size);
16
void		gl_savehistory(const char *, int size);
16
void            gl_hist_init(int, int);		/* set up history buffer */
17
void            gl_hist_init(int, int);		/* set up history buffer */
17
char    	*gl_hist_next(void);	/* return ptr to next item */
18
char    	*gl_hist_next(void);	/* return ptr to next item */
18
char    	*gl_hist_prev(void);	/* return ptr to prev item */
19
char    	*gl_hist_prev(void);	/* return ptr to prev item */
-
 
20
void		gl_free(void *ptr);
19
 
21
 
20
extern int 	(*gl_in_hook)(char *);
22
extern int 	(*gl_in_hook)(char *);
21
extern int 	(*gl_out_hook)(char *);
23
extern int 	(*gl_out_hook)(char *);
22
extern int	(*gl_tab_hook)(char *, int, int *);
24
extern int	(*gl_tab_hook)(char *, int, int *);
23
 
25