Changeset 1434
- Timestamp:
- 11/27/11 02:12:20 (18 months ago)
- Location:
- trunk/lib/ubasic
- Files:
-
- 3 edited
-
tokenizer.c (modified) (1 diff)
-
tokenizer.h (modified) (1 diff)
-
ubasic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ubasic/tokenizer.c
r1427 r1434 189 189 {"set_record", TOKENIZER_SET_RECORD}, 190 190 {"set_config_value", TOKENIZER_SET_CONFIG_VALUE}, 191 {"set_yield_lines", TOKENIZER_SET_YIELD_LINES}, 192 {"set_yield_ms", TOKENIZER_SET_YIELD_MS}, 193 191 {"set_yield", TOKENIZER_SET_YIELD}, 194 192 195 193 {"wait_click", TOKENIZER_WAIT_CLICK}, -
trunk/lib/ubasic/tokenizer.h
r1427 r1434 200 200 TOKENIZER_GET_CONFIG_VALUE, 201 201 TOKENIZER_SET_CONFIG_VALUE, 202 TOKENIZER_SET_YIELD_LINES, 203 TOKENIZER_SET_YIELD_MS, 202 TOKENIZER_SET_YIELD, 204 203 205 204 } ubasic_token; -
trunk/lib/ubasic/ubasic.c
r1427 r1434 1737 1737 } 1738 1738 1739 static void set_yield_lines_statement() 1740 { 1741 accept(TOKENIZER_SET_YIELD_LINES); 1742 yield_max_lines = expr(); 1739 static void set_yield_statement() 1740 { 1741 accept(TOKENIZER_SET_YIELD); 1742 int val = expr(); 1743 yield_max_lines = val?val:YIELD_MAX_LINES_DEFAULT; 1744 val = expr(); 1745 yield_max_ms = val?val:YIELD_MAX_MS_DEFAULT; 1743 1746 accept_cr(); 1744 1747 } 1745 1748 1746 static void set_yield_ms_statement()1747 {1748 accept(TOKENIZER_SET_YIELD_MS);1749 yield_max_ms = expr();1750 accept_cr();1751 }1752 1749 /*---------------------------------------------------------------------------*/ 1753 1750 … … 2295 2292 set_config_value_statement(); 2296 2293 break; 2297 case TOKENIZER_SET_YIELD_LINES: 2298 set_yield_lines_statement(); 2299 break; 2300 case TOKENIZER_SET_YIELD_MS: 2301 set_yield_ms_statement(); 2302 break; 2303 2294 case TOKENIZER_SET_YIELD: 2295 set_yield_statement(); 2296 break; 2304 2297 2305 2298 default:
Note: See TracChangeset
for help on using the changeset viewer.