Changeset 125 for trunk/thune/make.c
- Timestamp:
- 04/26/06 18:39:31 (3 years ago)
- Files:
-
- 1 modified
-
trunk/thune/make.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/make.c
r117 r125 604 604 if( ur_type(tos) == ur_datatype(res) ) 605 605 { 606 ur_copy (res, *tos); // UR_S_NIP;606 ur_copyCell(res, *tos); // UR_S_NIP; 607 607 UR_S_DROP; 608 608 return; … … 798 798 else if( ur_is(tos, UT_BLOCK) ) 799 799 { 800 UIndex binN = 0;800 UIndex binN; 801 801 UString* str; 802 802 … … 809 809 ur_setSeries(res, binN, 0); 810 810 } 811 else if( ur_stringSlice(tos, &spA, &spB) ) 812 { 813 UIndex binN; 814 815 if( spA ) 816 binN = ur_makeString( spA, spB - spA ); 817 else 818 binN = ur_makeBinary( 0 ); 819 820 ur_setType(res, UT_STRING); 821 ur_setSeries(res, binN, 0); 822 } 811 823 break; 812 824 … … 834 846 ur_setSeries(res, binN, 0); 835 847 } 848 break; 849 850 case UT_ERROR: 851 if( ! ur_is(tos, UT_STRING) ) 852 goto error; 853 854 ur_setType(res, UT_ERROR); 855 res->err.exType = UR_EX_SCRIPT; 856 res->err.messageStr = tos->series.n; 857 res->err.traceBlk = ur_makeBlock( 8 ); 836 858 break; 837 859 … … 879 901 UR_S_DROPN( 2 ); 880 902 tos = ur_s_prev(tos); 881 ur_copy ( res, *tos );903 ur_copyCell( res, *tos ); 882 904 (*lit)->compile( ur_thread, res ); 883 905 return;
