OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [getline/] [getline.h] - Blame information for rev 35

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 hellwig
#ifndef GETLINE_H
2
#define GETLINE_H
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>
10
 
11
typedef size_t (*gl_strwidth_proc)(char *);
12
 
13
char           *gl_getline(char *);             /* read a line of input */
14
void            gl_setwidth(int);               /* specify width of screen */
15
void            gl_histadd(char *);             /* adds entries to hist */
16
void            gl_strwidth(gl_strwidth_proc);  /* to bind gl_strlen */
17
 
18
extern int      (*gl_in_hook)(char *);
19
extern int      (*gl_out_hook)(char *);
20
extern int      (*gl_tab_hook)(char *, int, int *);
21
 
22
#else   /* not __STDC__ */
23
 
24
char           *gl_getline();
25
void            gl_setwidth();
26
void            gl_histadd();
27
void            gl_strwidth();
28
 
29
extern int      (*gl_in_hook)();
30
extern int      (*gl_out_hook)();
31
extern int      (*gl_tab_hook)();
32
 
33
#endif /* __STDC__ */
34
 
35
#endif /* GETLINE_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.