Changeset 94 for trunk/orca/ovalue.c
- Timestamp:
- 03/17/06 22:41:34 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/ovalue.c (modified) (32 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/ovalue.c
r79 r94 936 936 937 937 938 void orToNative( OValue* a1)938 OR_NATIVE( orToNative ) 939 939 { 940 940 OValue* res; … … 1213 1213 1214 1214 1215 void orLoadNative( OValue* a1)1215 OR_NATIVE( orLoadNative ) 1216 1216 { 1217 1217 OBlock* blk; … … 1350 1350 #define REF_DO_ARG a1+2 1351 1351 1352 void orDoNative( OValue* a1)1352 OR_NATIVE_PUB( orDoNative ) 1353 1353 { 1354 1354 if( orIs(a1, OT_BLOCK) || orIs(a1, OT_PAREN) ) … … 1415 1415 1416 1416 1417 void orSetNative( OValue* a1)1417 OR_NATIVE( orSetNative ) 1418 1418 { 1419 1419 if( orIsWord(a1->type) ) … … 1432 1432 1433 1433 1434 void orUnsetNative( OValue* a1)1434 OR_NATIVE( orUnsetNative ) 1435 1435 { 1436 1436 OValue* val; … … 1460 1460 1461 1461 1462 void orValueQNative( OValue* a1)1462 OR_NATIVE( orValueQNative ) 1463 1463 { 1464 1464 int logic = 0; … … 1479 1479 1480 1480 1481 void orGetNative( OValue* a1)1481 OR_NATIVE( orGetNative ) 1482 1482 { 1483 1483 if( orIsWord(a1->type) ) … … 1495 1495 1496 1496 1497 void orNotNative( OValue* a1)1497 OR_NATIVE( orNotNative ) 1498 1498 { 1499 1499 int logic; … … 1508 1508 1509 1509 1510 void orIfNative( OValue* a1)1510 OR_NATIVE( orIfNative ) 1511 1511 { 1512 1512 if( orIfTrue(a1) ) … … 1520 1520 1521 1521 1522 void orUnlessNative( OValue* a1)1522 OR_NATIVE( orUnlessNative ) 1523 1523 { 1524 1524 if( orIfFalse(a1) ) … … 1532 1532 1533 1533 1534 void orEitherNative( OValue* a1)1534 OR_NATIVE( orEitherNative ) 1535 1535 { 1536 1536 OValue* blkArg = a1 + 2;; … … 1544 1544 1545 1545 1546 void orLoopNative( OValue* a1)1546 OR_NATIVE( orLoopNative ) 1547 1547 { 1548 1548 OIndex body; … … 1564 1564 1565 1565 1566 void orRepeatNative( OValue* a1)1566 OR_NATIVE( orRepeatNative ) 1567 1567 { 1568 1568 OValue* wval; … … 1632 1632 1633 1633 1634 void orUntilNative( OValue* a1)1634 OR_NATIVE( orUntilNative ) 1635 1635 { 1636 1636 OValue* res; … … 1657 1657 1658 1658 1659 void orWhileNative( OValue* a1)1659 OR_NATIVE( orWhileNative ) 1660 1660 { 1661 1661 OValue* res; … … 1725 1725 1726 1726 1727 void orBreakNative( OValue* a1)1727 OR_NATIVE( orBreakNative ) 1728 1728 { 1729 1729 OValue* res = a1; … … 1732 1732 1733 1733 1734 void orReturnNative( OValue* a1)1734 OR_NATIVE( orReturnNative ) 1735 1735 { 1736 1736 OValue* res = a1 + 1; … … 1739 1739 1740 1740 1741 void orExitNative( OValue* a1)1741 OR_NATIVE( orExitNative ) 1742 1742 { 1743 1743 OValue* res = a1 + 1; … … 1771 1771 1772 1772 1773 void orRecycleNative( OValue* a1)1773 OR_NATIVE( orRecycleNative ) 1774 1774 { 1775 1775 #define REF_REC_OFF a1 … … 1791 1791 1792 1792 1793 void orTypeQNative( OValue* a1)1793 OR_NATIVE( orTypeQNative ) 1794 1794 { 1795 1795 #define REF_TYPEQ_WORD a1+1 … … 1819 1819 try: native [ block [block!] ] 1820 1820 */ 1821 void orTryNative( OValue* a1)1821 OR_NATIVE( orTryNative ) 1822 1822 { 1823 1823 orEvalBlock( orBLOCK( a1 ), a1->series.it ); … … 1835 1835 catch: native [ block [block!] /name word [word! block!] ] 1836 1836 */ 1837 void orCatchNative( OValue* a1)1837 OR_NATIVE( orCatchNative ) 1838 1838 { 1839 1839 //OIndex nameBlk = 0; … … 1895 1895 throw: native [ value /name word [word!] ] 1896 1896 */ 1897 void orThrowNative( OValue* a1)1897 OR_NATIVE( orThrowNative ) 1898 1898 { 1899 1899 #define REF_NAME a1+1 … … 2892 2892 2893 2893 2894 void orReduceNative( OValue* a1)2894 OR_NATIVE_PUB( orReduceNative ) 2895 2895 { 2896 2896 if( (a1->type == OT_BLOCK) || … … 2966 2966 2967 2967 2968 void orComposeNative( OValue* a1)2968 OR_NATIVE( orComposeNative ) 2969 2969 { 2970 2970 #define REF_COMP_DEEP a1+1 … … 2993 2993 Result is the first value that is not false or none! 2994 2994 */ 2995 void orAnyNative( OValue* a1)2995 OR_NATIVE( orAnyNative ) 2996 2996 { 2997 2997 OValue* res; … … 3028 3028 3029 3029 3030 void orAllNative( OValue* a1)3030 OR_NATIVE( orAllNative ) 3031 3031 { 3032 3032 OValue* res; … … 3194 3194 3195 3195 3196 void orDumpNative( OValue* a1)3196 OR_NATIVE( orDumpNative ) 3197 3197 { 3198 3198 if( orIsBlock(a1->type) || a1->type == OT_LIST ) … … 4118 4118 4119 4119 4120 void orNativeNative( OValue* a1)4120 OR_NATIVE_PUB( orNativeNative ) 4121 4121 { 4122 4122 if( a1->type == OT_BLOCK ) … … 4219 4219 //extern void orRebindClosure( OIndex blkN ); 4220 4220 4221 void orDoesNative( OValue* a1)4221 OR_NATIVE( orDoesNative ) 4222 4222 { 4223 4223 if( a1->type == OT_BLOCK ) … … 4246 4246 4247 4247 //void orMakeFunction( OBlock* spec, OBlock* body ) 4248 void orFuncNative( OValue* a1)4248 OR_NATIVE( orFuncNative ) 4249 4249 { 4250 4250 OContext ctx; … … 4454 4454 orNative( orDumpNative, "dump" ); 4455 4455 #endif 4456 4457 4458 4456 } 4459 4457
