Changeset 1ef0fc3 in mainline for uspace/app/sbi/src/stype.c


Ignore:
Timestamp:
2010-04-10T11:19:18Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d7e45c8
Parents:
2721a75 (diff), 074444f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jsvoboda/helenos/sysel.

File:
1 edited

Legend:

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

    r2721a75 r1ef0fc3  
    6464static void stype_wef(stype_t *stype, stree_wef_t *wef_s);
    6565
    66 static tdata_item_t *stype_boolean_titem(stype_t *stype);
    67 
    6866/** Type module */
    6967void stype_module(stype_t *stype, stree_module_t *module)
     
    189187static void stype_var(stype_t *stype, stree_var_t *var)
    190188{
     189        tdata_item_t *titem;
     190
    191191        (void) stype;
    192192        (void) var;
     193
     194        run_texpr(stype->program, stype->current_csi, var->type,
     195            &titem);
     196        if (titem->tic == tic_ignore) {
     197                /* An error occured. */
     198                stype_note_error(stype);
     199                return;
     200        }
    193201}
    194202
     
    283291        stype_block_vr_t *block_vr;
    284292        stree_vdecl_t *old_vdecl;
     293        tdata_item_t *titem;
    285294
    286295#ifdef DEBUG_TYPE_TRACE
     
    297306        }
    298307
     308        run_texpr(stype->program, stype->current_csi, vdecl_s->type,
     309            &titem);
     310        if (titem->tic == tic_ignore) {
     311                /* An error occured. */
     312                stype_note_error(stype);
     313                return;
     314        }
     315
    299316        intmap_set(&block_vr->vdecls, vdecl_s->name->sid, vdecl_s);
    300 
    301317}
    302318
     
    524540                        goto failure;
    525541                break;
    526         default:
     542        case tic_tfun:
    527543                printf("Error: Unimplemented: Converting '");
    528544                tdata_item_print(src);
     
    531547                printf("'.\n");
    532548                stype_note_error(stype);
     549                break;
     550        case tic_ignore:
     551                assert(b_false);
    533552        }
    534553
     
    547566
    548567/** Return a boolean type item */
    549 static tdata_item_t *stype_boolean_titem(stype_t *stype)
     568tdata_item_t *stype_boolean_titem(stype_t *stype)
    550569{
    551570        tdata_item_t *titem;
     
    554573        (void) stype;
    555574
    556         /* XXX Use a true boolean type */
    557575        titem = tdata_item_new(tic_tprimitive);
    558         tprimitive = tdata_primitive_new(tpc_int);
     576        tprimitive = tdata_primitive_new(tpc_bool);
    559577        titem->u.tprimitive = tprimitive;
    560578
Note: See TracChangeset for help on using the changeset viewer.