Revision 64b85a8f cmd.h

b/cmd.h
38 38
extern cmdinfo_t	*cmdtab;
39 39
extern int		ncmds;
40 40

  
41
extern void		help_init(void);
42
extern void		quit_init(void);
41
void help_init(void);
42
void quit_init(void);
43 43

  
44 44
typedef int (*argsfunc_t)(int index);
45 45
typedef int (*checkfunc_t)(const cmdinfo_t *ci);
46 46

  
47
extern void		add_command(const cmdinfo_t *ci);
48
extern void		add_user_command(char *optarg);
49
extern void		add_args_command(argsfunc_t af);
50
extern void		add_check_command(checkfunc_t cf);
47
void add_command(const cmdinfo_t *ci);
48
void add_user_command(char *optarg);
49
void add_args_command(argsfunc_t af);
50
void add_check_command(checkfunc_t cf);
51 51

  
52
extern const cmdinfo_t	*find_command(const char *cmd);
52
const cmdinfo_t *find_command(const char *cmd);
53 53

  
54
extern void		command_loop(void);
55
extern int		command_usage(const cmdinfo_t *ci);
56
extern int		command(const cmdinfo_t *ci, int argc, char **argv);
54
void command_loop(void);
55
int command_usage(const cmdinfo_t *ci);
56
int command(const cmdinfo_t *ci, int argc, char **argv);
57 57

  
58 58
/* from input.h */
59
extern char	**breakline(char *input, int *count);
60
extern void	doneline(char *input, char **vec);
61
extern char	*fetchline(void);
59
char **breakline(char *input, int *count);
60
void doneline(char *input, char **vec);
61
char *fetchline(void);
62 62

  
63
extern long long cvtnum(char *s);
64
extern void	cvtstr(double value, char *str, size_t sz);
63
long long cvtnum(char *s);
64
void cvtstr(double value, char *str, size_t sz);
65 65

  
66
extern struct timeval tsub(struct timeval t1, struct timeval t2);
67
extern double	tdiv(double value, struct timeval tv);
66
struct timeval tsub(struct timeval t1, struct timeval t2);
67
double tdiv(double value, struct timeval tv);
68 68

  
69 69
enum {
70 70
	DEFAULT_TIME		= 0x0,
......
72 72
	VERBOSE_FIXED_TIME	= 0x2
73 73
};
74 74

  
75
extern void	timestr(struct timeval *tv, char *str, size_t sz, int flags);
75
void timestr(struct timeval *tv, char *str, size_t sz, int flags);
76 76

  
77 77
extern char *progname;
78 78

  

Also available in: Unified diff