comparison packages/redboot/current/include/redboot.h @ 130:eb9fd8c04db3 ecos-sw-2000-10-23

Merge from eCos master repository on 2000-10-23-17:01:37-BST
author jlarmour
date Mon, 23 Oct 2000 17:10:57 +0000
parents 0c2b7be0d798
children 6b5f480c6929
comparison
equal deleted inserted replaced
129:605a0fc6f385 130:eb9fd8c04db3
96 int strlen(const char *str); 96 int strlen(const char *str);
97 int strcmp(const char *s1, const char *s2); 97 int strcmp(const char *s1, const char *s2);
98 int strncmp(const char *s1, const char *s2, int len); 98 int strncmp(const char *s1, const char *s2, int len);
99 int strcmpci(const char *s1, const char *s2); 99 int strcmpci(const char *s1, const char *s2);
100 int strncmpci(const char *s1, const char *s2, int len); 100 int strncmpci(const char *s1, const char *s2, int len);
101 char *strcpy(char *s1, const char *s2);
101 102
102 void mon_write_char(char c); 103 void mon_write_char(char c);
103 int gets(char *line, int len, int timeout); 104 int gets(char *line, int len, int timeout);
104 bool verify_action(char *fmt, ...); 105 bool verify_action(char *fmt, ...);
105 void dump_buf(void *, CYG_ADDRWORD); 106 void dump_buf(void *, CYG_ADDRWORD);
157 158
158 #define OPTION_ARG_TYPE_NUM 0 // Numeric data 159 #define OPTION_ARG_TYPE_NUM 0 // Numeric data
159 #define OPTION_ARG_TYPE_STR 1 // Generic string 160 #define OPTION_ARG_TYPE_STR 1 // Generic string
160 #define OPTION_ARG_TYPE_FLG 2 // Flag only 161 #define OPTION_ARG_TYPE_FLG 2 // Flag only
161 162
163 // Command line parsing
164 struct cmd *parse(char *line, int *argc, char **argv);
165
162 extern void init_opts(struct option_info *opts, char flag, bool takes_arg, 166 extern void init_opts(struct option_info *opts, char flag, bool takes_arg,
163 int arg_type, void **arg, bool *arg_set, char *name); 167 int arg_type, void **arg, bool *arg_set, char *name);
164 extern bool scan_opts(int argc, char *argv[], int first, 168 extern bool scan_opts(int argc, char *argv[], int first,
165 struct option_info *opts, int num_opts, 169 struct option_info *opts, int num_opts,
166 void **def_arg, int def_arg_type, char *def_descr); 170 void **def_arg, int def_arg_type, char *def_descr);