Changeset 3bacee1 in mainline for uspace/app/sbi/src/run_expr.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/run_expr.c
r76d0981d r3bacee1 311 311 assert(csi != NULL); 312 312 313 if (symbol_search_csi(run->program, csi, nameref->name) 314 ==NULL) {313 if (symbol_search_csi(run->program, csi, nameref->name) == 314 NULL) { 315 315 /* Function is not in the current object. */ 316 316 printf("Error: Cannot access non-static member " … … 349 349 assert(csi != NULL); 350 350 351 if (symbol_search_csi(run->program, csi, nameref->name) 352 ==NULL && !stree_symbol_is_static(sym)) {351 if (symbol_search_csi(run->program, csi, nameref->name) == 352 NULL && !stree_symbol_is_static(sym)) { 353 353 /* Symbol is not in the current object. */ 354 354 printf("Error: Cannot access non-static member " … … 1271 1271 switch (unop->uc) { 1272 1272 case uo_plus: 1273 1273 bigint_clone(&val->var->u.int_v->value, &int_v->value); 1274 1274 break; 1275 1275 case uo_minus: … … 1318 1318 c2 = &v2->var->u.char_v->value; 1319 1319 1320 1320 bigint_sub(c1, c2, &diff); 1321 1321 *res = bigint_is_zero(&diff); 1322 1322 break; … … 1438 1438 } 1439 1439 1440 i = 0; length = 1; 1440 i = 0; 1441 length = 1; 1441 1442 while (node != NULL) { 1442 1443 expr = list_node_data(node, stree_expr_t *); … … 1567 1568 *res = run_recovery_item(run); 1568 1569 goto cleanup; 1569 1570 } 1570 1571 1571 1572 if (rarg == NULL) { … … 2755 2756 2756 2757 switch (rarg_vi->u.value->var->vc) { 2757 case vc_bool: csi_sym = bi->boxed_bool; break; 2758 case vc_char: csi_sym = bi->boxed_char; break; 2759 case vc_int: csi_sym = bi->boxed_int; break; 2760 case vc_string: csi_sym = bi->boxed_string; break; 2758 case vc_bool: 2759 csi_sym = bi->boxed_bool; 2760 break; 2761 case vc_char: 2762 csi_sym = bi->boxed_char; 2763 break; 2764 case vc_int: 2765 csi_sym = bi->boxed_int; 2766 break; 2767 case vc_string: 2768 csi_sym = bi->boxed_string; 2769 break; 2761 2770 2762 2771 case vc_ref:
Note:
See TracChangeset
for help on using the changeset viewer.