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

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.26/] [sim/] [getline/] [getline.h] - Diff between revs 8 and 270

Only display areas with differences | Details | Blame | View Log

Rev 8 Rev 270
#ifndef GETLINE_H
#ifndef GETLINE_H
#define GETLINE_H
#define GETLINE_H
 
 
/* unix systems can #define POSIX to use termios, otherwise
/* unix systems can #define POSIX to use termios, otherwise
 * the bsd or sysv interface will be used
 * the bsd or sysv interface will be used
 */
 */
 
 
#if __STDC__ > 0
#if __STDC__ > 0
#include <stddef.h>
#include <stddef.h>
 
 
typedef size_t (*gl_strwidth_proc)(char *);
typedef size_t (*gl_strwidth_proc)(char *);
 
 
char           *gl_getline(char *);             /* read a line of input */
char           *gl_getline(char *);             /* read a line of input */
void            gl_setwidth(int);               /* specify width of screen */
void            gl_setwidth(int);               /* specify width of screen */
void            gl_histadd(char *);             /* adds entries to hist */
void            gl_histadd(char *);             /* adds entries to hist */
void            gl_strwidth(gl_strwidth_proc);  /* to bind gl_strlen */
void            gl_strwidth(gl_strwidth_proc);  /* to bind gl_strlen */
 
 
extern int      (*gl_in_hook)(char *);
extern int      (*gl_in_hook)(char *);
extern int      (*gl_out_hook)(char *);
extern int      (*gl_out_hook)(char *);
extern int      (*gl_tab_hook)(char *, int, int *);
extern int      (*gl_tab_hook)(char *, int, int *);
 
 
#else   /* not __STDC__ */
#else   /* not __STDC__ */
 
 
char           *gl_getline();
char           *gl_getline();
void            gl_setwidth();
void            gl_setwidth();
void            gl_histadd();
void            gl_histadd();
void            gl_strwidth();
void            gl_strwidth();
 
 
extern int      (*gl_in_hook)();
extern int      (*gl_in_hook)();
extern int      (*gl_out_hook)();
extern int      (*gl_out_hook)();
extern int      (*gl_tab_hook)();
extern int      (*gl_tab_hook)();
 
 
#endif /* __STDC__ */
#endif /* __STDC__ */
 
 
#endif /* GETLINE_H */
#endif /* GETLINE_H */
 
 

powered by: WebSVN 2.1.0

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