File: input.h

package info (click to toggle)
hx 0.7.10-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 564 kB
  • ctags: 834
  • sloc: ansic: 7,900; sh: 152; makefile: 84
file content (25 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _INPUT_H
#define _INPUT_H 1

struct input {
	struct input *prev, *next;
	unsigned short pos, len;
	char *buf;
};

struct history_list {
	struct input *prev, *next, *cur;
	char *msg;
	unsigned short count, max;
	void (*fun)(struct input *);
};

extern void input_puts (struct input *ip);
extern void input_getchar (void);

extern void hist_init (struct history_list *list);
extern void hist_add (struct history_list *list);
extern struct input *hist_next (struct history_list *list);
extern struct input *hist_prev (struct history_list *list);

#endif /* !_INPUT_H */