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


Ignore:
Timestamp:
2010-03-29T20:30:29Z (15 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/main.c

    r5da468e r1ebc1a62  
    2727 */
    2828
    29 /** @file Main module. */
     29/** @file Main module.
     30 *
     31 * Main entry point for SBI, the Sysel Bootstrap Interpreter.
     32 * When run without parameters, the interpreter will enter interactive
     33 * mode.
     34 */
    3035
    3136#include <stdio.h>
     
    4550void syntax_print(void);
    4651
     52/** Main entry point.
     53 *
     54 * @return      Zero on success, non-zero on error.
     55 */
    4756int main(int argc, char *argv[])
    4857{
     
    8594        parse_module(&parse);
    8695
     96        if (parse.error)
     97                return 1;
     98
    8799        /* Resolve ancestry. */
    88100        ancr_module_process(program, parse.cur_mod);
     
    90102        /* Type program. */
    91103        stype.program = program;
     104        stype.error = b_false;
    92105        stype_module(&stype, program->module);
     106
     107        if (stype.error)
     108                return 1;
    93109
    94110        /* Run program. */
     
    99115}
    100116
     117/** Print command-line syntax help. */
    101118void syntax_print(void)
    102119{
Note: See TracChangeset for help on using the changeset viewer.