Changeset 488
- Timestamp:
- 10/18/07 04:20:02 (12 months ago)
- Location:
- trunk/thune
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/boot.c
r468 r488 169 169 "[0 swap add] proc :to-dec\n" 170 170 "[rot minimum maximum] proc :limit ; (n min max -- n)\n" 171 " [append drop] proc:appen\n"171 "push: :appen\n" 172 172 "[blk | ctx num word]\n" 173 173 "[\n" -
trunk/thune/mkboot.t
r468 r488 197 197 [rot minimum maximum] proc :limit ; (n min max -- n) 198 198 199 [append drop] proc:appen199 push: :appen 200 200 201 201 [blk | ctx num word] -
trunk/thune/series.c
r476 r488 1226 1226 ur_throwErr( UR_ERR_DATATYPE, 1227 1227 "append expected series argument" ); 1228 return; 1228 1229 } 1229 1230 } … … 1382 1383 ur_throwErr( UR_ERR_DATATYPE, "remove expected series argument" ); 1383 1384 } 1385 } 1386 1387 1388 /* 1389 (series val -- ) 1390 Same as [append drop] 1391 */ 1392 UR_CALL( uc_push ) 1393 { 1394 UCell* ser = ur_s_prev(tos); 1395 int len = ur_seriesEnd(ser); 1396 if( len > -1 ) 1397 { 1398 ser->series.it = len; 1399 uc_insert( ut, tos ); // Assuming uc_insert cannot fail. 1400 UR_S_DROP; 1401 return; 1402 } 1403 ur_throwErr( UR_ERR_DATATYPE, "push expected series argument" ); 1404 } 1405 1406 1407 /* 1408 (series -- ) 1409 Same as [tail prev remove drop] 1410 */ 1411 UR_CALL( uc_pop ) 1412 { 1413 int len = ur_seriesEnd(tos); 1414 if( len > -1 ) 1415 { 1416 if( len > 0 ) 1417 { 1418 tos->series.it = len - 1; 1419 uc_remove( ut, tos ); // Assuming uc_remove cannot fail. 1420 } 1421 UR_S_DROP; 1422 return; 1423 } 1424 ur_throwErr( UR_ERR_DATATYPE, "pop expected series argument" ); 1384 1425 } 1385 1426 … … 3483 3524 { uc_append_cat, "append.cat" }, 3484 3525 { uc_remove, "remove" }, 3526 { uc_push, "push" }, 3527 { uc_pop, "pop" }, 3485 3528 { uc_fill, "fill" }, 3486 3529 { uc_pick, "pick" },
