Changeset 1ebc1a62 in mainline for uspace/app/sbi/src/symbol.c


Ignore:
Timestamp:
2010-03-29T20:30:29Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a95310e
Parents:
5da468e
Message:

Update SBI to rev. 157.

File:
1 edited

Legend:

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

    r5da468e r1ebc1a62  
    7575}
    7676
    77 /** Lookup symbol reference in CSI. */
     77/** Lookup symbol reference in CSI.
     78 *
     79 * @param prog  Program to look in.
     80 * @param scope CSI in @a prog which is the base for references.
     81 * @param name  Identifier of the symbol.
     82 *
     83 * @return      Symbol or @c NULL if symbol not found.
     84 */
    7885stree_symbol_t *symbol_lookup_in_csi(stree_program_t *prog, stree_csi_t *scope,
    7986        stree_ident_t *name)
     
    9299        if (symbol == NULL)
    93100                symbol = symbol_search_global(prog, name);
    94 
    95         if (symbol == NULL) {
    96                 printf("Error: Symbol '%s' not found.\n", strtab_get_str(name->sid));
    97                 exit(1);
    98         }
    99101
    100102        return symbol;
Note: See TracChangeset for help on using the changeset viewer.