Changeset 1ebc1a62 in mainline for uspace/app/sbi/src/symbol.c
- Timestamp:
- 2010-03-29T20:30:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a95310e
- Parents:
- 5da468e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/symbol.c
r5da468e r1ebc1a62 75 75 } 76 76 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 */ 78 85 stree_symbol_t *symbol_lookup_in_csi(stree_program_t *prog, stree_csi_t *scope, 79 86 stree_ident_t *name) … … 92 99 if (symbol == NULL) 93 100 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 }99 101 100 102 return symbol;
Note:
See TracChangeset
for help on using the changeset viewer.