Changeset 1ebc1a62 in mainline for uspace/app/sbi/src/main.c
- Timestamp:
- 2010-03-29T20:30:29Z (15 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/main.c
r5da468e r1ebc1a62 27 27 */ 28 28 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 */ 30 35 31 36 #include <stdio.h> … … 45 50 void syntax_print(void); 46 51 52 /** Main entry point. 53 * 54 * @return Zero on success, non-zero on error. 55 */ 47 56 int main(int argc, char *argv[]) 48 57 { … … 85 94 parse_module(&parse); 86 95 96 if (parse.error) 97 return 1; 98 87 99 /* Resolve ancestry. */ 88 100 ancr_module_process(program, parse.cur_mod); … … 90 102 /* Type program. */ 91 103 stype.program = program; 104 stype.error = b_false; 92 105 stype_module(&stype, program->module); 106 107 if (stype.error) 108 return 1; 93 109 94 110 /* Run program. */ … … 99 115 } 100 116 117 /** Print command-line syntax help. */ 101 118 void syntax_print(void) 102 119 {
Note:
See TracChangeset
for help on using the changeset viewer.