Changeset 37f527b in mainline for uspace/app/sbi/src/ancr.c


Ignore:
Timestamp:
2010-03-26T21:55:23Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4204ad9
Parents:
b535aeb
Message:

Update SBI to rev. 144.

File:
1 edited

Legend:

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

    rb535aeb r37f527b  
    5050#include <stdlib.h>
    5151#include <assert.h>
     52#include "builtin.h"
    5253#include "list.h"
    5354#include "mytypes.h"
     
    120121        stree_symbol_t *base_sym;
    121122        stree_csi_t *base_csi, *outer_csi;
     123        stree_csi_t *gf_class;
    122124
    123125        if (node->ancr_state == ws_visited) {
     
    137139
    138140        outer_csi = csi_to_symbol(node)->outer_csi;
     141        gf_class = builtin_get_gf_class(prog->builtin);
    139142
    140143        /* Process outer CSI */
     
    151154                /* Process base CSI. */
    152155                ancr_csi_process(prog, base_csi);
     156        } else if (node != gf_class) {
     157                /* Implicit inheritance from grandfather class. */
     158                base_csi = gf_class;
    153159        } else {
     160                /* Grandfather class has no base class. */
    154161                base_csi = NULL;
    155162        }
Note: See TracChangeset for help on using the changeset viewer.