Changeset b7fd2a0 in mainline for uspace/app/sbi
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/app/sbi/src
- Files:
-
- 17 edited
-
bigint.c (modified) (1 diff)
-
bigint.h (modified) (1 diff)
-
builtin/bi_char.c (modified) (1 diff)
-
builtin/bi_console.c (modified) (1 diff)
-
builtin/bi_string.c (modified) (1 diff)
-
input.c (modified) (6 diffs)
-
input.h (modified) (1 diff)
-
lex.c (modified) (2 diffs)
-
main.c (modified) (1 diff)
-
os/helenos.c (modified) (3 diffs)
-
os/os.h (modified) (1 diff)
-
os/posix.c (modified) (4 diffs)
-
program.c (modified) (2 diffs)
-
program.h (modified) (1 diff)
-
run_expr.c (modified) (3 diffs)
-
stype.c (modified) (1 diff)
-
stype.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/bigint.c
r36f0738 rb7fd2a0 186 186 * to @a dval. 187 187 */ 188 int bigint_get_value_int(bigint_t *bigint, int *dval)188 errno_t bigint_get_value_int(bigint_t *bigint, int *dval) 189 189 { 190 190 bigint_t vval, diff; -
uspace/app/sbi/src/bigint.h
r36f0738 rb7fd2a0 38 38 void bigint_destroy(bigint_t *bigint); 39 39 40 int bigint_get_value_int(bigint_t *bigint, int *dval);40 errno_t bigint_get_value_int(bigint_t *bigint, int *dval); 41 41 bool_t bigint_is_zero(bigint_t *bigint); 42 42 bool_t bigint_is_negative(bigint_t *bigint); -
uspace/app/sbi/src/builtin/bi_char.c
r36f0738 rb7fd2a0 73 73 char *str; 74 74 int char_val; 75 int rc;75 errno_t rc; 76 76 77 77 #ifdef DEBUG_RUN_TRACE -
uspace/app/sbi/src/builtin/bi_console.c
r36f0738 rb7fd2a0 107 107 rdata_var_t *var; 108 108 int char_val; 109 int rc;109 errno_t rc; 110 110 111 111 #ifdef DEBUG_RUN_TRACE -
uspace/app/sbi/src/builtin/bi_string.c
r36f0738 rb7fd2a0 125 125 int length; 126 126 127 int rc;127 errno_t rc; 128 128 129 129 /* Extract self.Value */ -
uspace/app/sbi/src/input.c
r36f0738 rb7fd2a0 45 45 #define INPUT_BUFFER_SIZE 256 46 46 47 static int input_init_file(input_t *input, const char *fname);47 static errno_t input_init_file(input_t *input, const char *fname); 48 48 static void input_init_interactive(input_t *input); 49 49 static void input_init_string(input_t *input, const char *str); … … 57 57 * ENOENT when opening file fails. 58 58 */ 59 int input_new_file(input_t **input, const char *fname)59 errno_t input_new_file(input_t **input, const char *fname) 60 60 { 61 61 *input = malloc(sizeof(input_t)); … … 71 71 * @return EOK on success, ENOMEM when allocation fails. 72 72 */ 73 int input_new_interactive(input_t **input)73 errno_t input_new_interactive(input_t **input) 74 74 { 75 75 *input = malloc(sizeof(input_t)); … … 87 87 * @return EOK on success, ENOMEM when allocation fails. 88 88 */ 89 int input_new_string(input_t **input, const char *str)89 errno_t input_new_string(input_t **input, const char *str) 90 90 { 91 91 *input = malloc(sizeof(input_t)); … … 104 104 * @return EOK on success, ENOENT when opening file fails. 105 105 */ 106 static int input_init_file(input_t *input, const char *fname)106 static errno_t input_init_file(input_t *input, const char *fname) 107 107 { 108 108 FILE *f; … … 174 174 * @return EOK on success, EIO on failure. 175 175 */ 176 int input_get_line(input_t *input, char **line)176 errno_t input_get_line(input_t *input, char **line) 177 177 { 178 178 const char *prompt; -
uspace/app/sbi/src/input.h
r36f0738 rb7fd2a0 32 32 #include "mytypes.h" 33 33 34 int input_new_file(input_t **input, const char *fname);35 int input_new_interactive(input_t **input);36 int input_new_string(input_t **input, const char *str);34 errno_t input_new_file(input_t **input, const char *fname); 35 errno_t input_new_interactive(input_t **input); 36 errno_t input_new_string(input_t **input, const char *str); 37 37 38 int input_get_line(input_t *input, char **line);38 errno_t input_get_line(input_t *input, char **line); 39 39 int input_get_line_no(input_t *input); 40 40 -
uspace/app/sbi/src/lex.c
r36f0738 rb7fd2a0 257 257 void lex_init(lex_t *lex, struct input *input) 258 258 { 259 int rc;259 errno_t rc; 260 260 261 261 lex->input = input; … … 717 717 { 718 718 char *bp; 719 int rc;719 errno_t rc; 720 720 721 721 bp = lex->ibp; -
uspace/app/sbi/src/main.c
r36f0738 rb7fd2a0 61 61 stype_t stype; 62 62 run_t run; 63 int rc;63 errno_t rc; 64 64 65 65 /* Store executable file path under which we have been invoked. */ -
uspace/app/sbi/src/os/helenos.c
r36f0738 rb7fd2a0 151 151 * EIO on decoding error. 152 152 */ 153 int os_str_get_char(const char *str, int index, int *out_char)153 errno_t os_str_get_char(const char *str, int index, int *out_char) 154 154 { 155 155 size_t offset; … … 210 210 * @param ptr Place to store pointer to new string. 211 211 */ 212 int os_input_line(const char *prompt, char **ptr)212 errno_t os_input_line(const char *prompt, char **ptr) 213 213 { 214 214 char *line; 215 int rc;215 errno_t rc; 216 216 217 217 if (tinput == NULL) { … … 247 247 * Command is present just one, not duplicated. 248 248 */ 249 int os_exec(char *const cmd[])249 errno_t os_exec(char *const cmd[]) 250 250 { 251 251 task_id_t tid; 252 252 task_wait_t twait; 253 253 task_exit_t texit; 254 int rc;254 errno_t rc; 255 255 int retval; 256 256 -
uspace/app/sbi/src/os/os.h
r36f0738 rb7fd2a0 35 35 char *os_str_dup(const char *str); 36 36 size_t os_str_length(const char *str); 37 int os_str_get_char(const char *str, int index, int *out_char);37 errno_t os_str_get_char(const char *str, int index, int *out_char); 38 38 char *os_chr_to_astr(wchar_t chr); 39 39 void os_input_disp_help(void); 40 int os_input_line(const char *prompt, char **ptr);41 int os_exec(char * const cmd[]);40 errno_t os_input_line(const char *prompt, char **ptr); 41 errno_t os_exec(char * const cmd[]); 42 42 43 43 void os_store_ef_path(char *path); -
uspace/app/sbi/src/os/posix.c
r36f0738 rb7fd2a0 114 114 * @return Zero if equal, nonzero if not equal 115 115 */ 116 int os_str_cmp(const char *a, const char *b)116 errno_t os_str_cmp(const char *a, const char *b) 117 117 { 118 118 return strcmp(a, b); … … 147 147 * EIO on decoding error. 148 148 */ 149 int os_str_get_char(const char *str, int index, int *out_char)149 errno_t os_str_get_char(const char *str, int index, int *out_char) 150 150 { 151 151 size_t len; … … 193 193 * @param ptr Place to store pointer to new string. 194 194 */ 195 int os_input_line(const char *prompt, char **ptr)195 errno_t os_input_line(const char *prompt, char **ptr) 196 196 { 197 197 printf("%s", prompt); … … 214 214 * Command is present just one, not duplicated. 215 215 */ 216 int os_exec(char *const cmd[])216 errno_t os_exec(char *const cmd[]) 217 217 { 218 218 pid_t pid; -
uspace/app/sbi/src/program.c
r36f0738 rb7fd2a0 55 55 * EINVAL if file has syntax errors. 56 56 */ 57 int program_file_process(stree_program_t *program, const char *fname)57 errno_t program_file_process(stree_program_t *program, const char *fname) 58 58 { 59 59 input_t *input; 60 60 lex_t lex; 61 61 parse_t parse; 62 int rc;62 errno_t rc; 63 63 64 64 rc = input_new_file(&input, fname); … … 91 91 * has syntax errors. 92 92 */ 93 int program_lib_process(stree_program_t *program)93 errno_t program_lib_process(stree_program_t *program) 94 94 { 95 int rc;95 errno_t rc; 96 96 char *path, *fname; 97 97 char *tmp; -
uspace/app/sbi/src/program.h
r36f0738 rb7fd2a0 32 32 #include "mytypes.h" 33 33 34 int program_file_process(stree_program_t *program, const char *fname);35 int program_lib_process(stree_program_t *program);34 errno_t program_file_process(stree_program_t *program, const char *fname); 35 errno_t program_lib_process(stree_program_t *program); 36 36 37 37 #endif -
uspace/app/sbi/src/run_expr.c
r36f0738 rb7fd2a0 1414 1414 int length; 1415 1415 int i; 1416 int rc;1416 errno_t rc; 1417 1417 int iextent; 1418 1418 … … 2287 2287 int elem_index; 2288 2288 int arg_val; 2289 int rc;2289 errno_t rc; 2290 2290 2291 2291 rdata_item_t *ritem; … … 2476 2476 int elem_index; 2477 2477 int arg_val; 2478 int rc1, rc2;2478 errno_t rc1, rc2; 2479 2479 2480 2480 rdata_value_t *value; -
uspace/app/sbi/src/stype.c
r36f0738 rb7fd2a0 1890 1890 * @return EOK if equal, EINVAL if not. 1891 1891 */ 1892 int stype_targs_check_equal(stype_t *stype, tdata_item_t *a_ti,1892 errno_t stype_targs_check_equal(stype_t *stype, tdata_item_t *a_ti, 1893 1893 tdata_item_t *b_ti) 1894 1894 { -
uspace/app/sbi/src/stype.h
r36f0738 rb7fd2a0 50 50 tdata_item_t *stype_tobject_find_pred(stype_t *stype, tdata_item_t *src, 51 51 tdata_item_t *dest); 52 int stype_targs_check_equal(stype_t *stype, tdata_item_t *a_ti,52 errno_t stype_targs_check_equal(stype_t *stype, tdata_item_t *a_ti, 53 53 tdata_item_t *b_ti); 54 54
Note:
See TracChangeset
for help on using the changeset viewer.
