Changeset 3bacee1 in mainline for uspace/app/sbi/src/run_expr.c


Ignore:
Timestamp:
2018-04-12T16:27:17Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Make ccheck-fix again and commit more good files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/run_expr.c

    r76d0981d r3bacee1  
    311311                assert(csi != NULL);
    312312
    313                 if (symbol_search_csi(run->program, csi, nameref->name)
    314                     == NULL) {
     313                if (symbol_search_csi(run->program, csi, nameref->name) ==
     314                    NULL) {
    315315                        /* Function is not in the current object. */
    316316                        printf("Error: Cannot access non-static member "
     
    349349                assert(csi != NULL);
    350350
    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)) {
    353353                        /* Symbol is not in the current object. */
    354354                        printf("Error: Cannot access non-static member "
     
    12711271        switch (unop->uc) {
    12721272        case uo_plus:
    1273                 bigint_clone(&val->var->u.int_v->value, &int_v->value);
     1273                bigint_clone(&val->var->u.int_v->value, &int_v->value);
    12741274                break;
    12751275        case uo_minus:
     
    13181318                c2 = &v2->var->u.char_v->value;
    13191319
    1320                 bigint_sub(c1, c2, &diff);
     1320                bigint_sub(c1, c2, &diff);
    13211321                *res = bigint_is_zero(&diff);
    13221322                break;
     
    14381438        }
    14391439
    1440         i = 0; length = 1;
     1440        i = 0;
     1441        length = 1;
    14411442        while (node != NULL) {
    14421443                expr = list_node_data(node, stree_expr_t *);
     
    15671568                *res = run_recovery_item(run);
    15681569                goto cleanup;
    1569         }
     1570        }
    15701571
    15711572        if (rarg == NULL) {
     
    27552756
    27562757        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;
    27612770
    27622771        case vc_ref:
Note: See TracChangeset for help on using the changeset viewer.