Changeset 94 for trunk/orca/ovalue.c

Show
Ignore:
Timestamp:
03/17/06 22:41:34 (3 years ago)
Author:
krobillard
Message:

All natives now use the OR_NATIVE macro.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/ovalue.c

    r79 r94  
    936936 
    937937 
    938 void orToNative( OValue* a1 ) 
     938OR_NATIVE( orToNative ) 
    939939{ 
    940940    OValue* res; 
     
    12131213 
    12141214 
    1215 void orLoadNative( OValue* a1 ) 
     1215OR_NATIVE( orLoadNative ) 
    12161216{ 
    12171217    OBlock* blk; 
     
    13501350#define REF_DO_ARG      a1+2 
    13511351 
    1352 void orDoNative( OValue* a1 ) 
     1352OR_NATIVE_PUB( orDoNative ) 
    13531353{ 
    13541354    if( orIs(a1, OT_BLOCK) || orIs(a1, OT_PAREN) ) 
     
    14151415 
    14161416 
    1417 void orSetNative( OValue* a1 ) 
     1417OR_NATIVE( orSetNative ) 
    14181418{ 
    14191419    if( orIsWord(a1->type) ) 
     
    14321432 
    14331433 
    1434 void orUnsetNative( OValue* a1 ) 
     1434OR_NATIVE( orUnsetNative ) 
    14351435{ 
    14361436    OValue* val; 
     
    14601460 
    14611461 
    1462 void orValueQNative( OValue* a1 ) 
     1462OR_NATIVE( orValueQNative ) 
    14631463{ 
    14641464    int logic = 0; 
     
    14791479 
    14801480 
    1481 void orGetNative( OValue* a1 ) 
     1481OR_NATIVE( orGetNative ) 
    14821482{ 
    14831483    if( orIsWord(a1->type) ) 
     
    14951495 
    14961496 
    1497 void orNotNative( OValue* a1 ) 
     1497OR_NATIVE( orNotNative ) 
    14981498{ 
    14991499    int logic; 
     
    15081508 
    15091509 
    1510 void orIfNative( OValue* a1 ) 
     1510OR_NATIVE( orIfNative ) 
    15111511{ 
    15121512    if( orIfTrue(a1) ) 
     
    15201520 
    15211521 
    1522 void orUnlessNative( OValue* a1 ) 
     1522OR_NATIVE( orUnlessNative ) 
    15231523{ 
    15241524    if( orIfFalse(a1) ) 
     
    15321532 
    15331533 
    1534 void orEitherNative( OValue* a1 ) 
     1534OR_NATIVE( orEitherNative ) 
    15351535{ 
    15361536    OValue* blkArg = a1 + 2;; 
     
    15441544 
    15451545 
    1546 void orLoopNative( OValue* a1 ) 
     1546OR_NATIVE( orLoopNative ) 
    15471547{ 
    15481548    OIndex body; 
     
    15641564 
    15651565 
    1566 void orRepeatNative( OValue* a1 ) 
     1566OR_NATIVE( orRepeatNative ) 
    15671567{ 
    15681568    OValue* wval; 
     
    16321632 
    16331633 
    1634 void orUntilNative( OValue* a1 ) 
     1634OR_NATIVE( orUntilNative ) 
    16351635{ 
    16361636    OValue* res; 
     
    16571657 
    16581658 
    1659 void orWhileNative( OValue* a1 ) 
     1659OR_NATIVE( orWhileNative ) 
    16601660{ 
    16611661    OValue* res; 
     
    17251725 
    17261726 
    1727 void orBreakNative( OValue* a1 ) 
     1727OR_NATIVE( orBreakNative ) 
    17281728{ 
    17291729    OValue* res = a1; 
     
    17321732 
    17331733 
    1734 void orReturnNative( OValue* a1 ) 
     1734OR_NATIVE( orReturnNative ) 
    17351735{ 
    17361736    OValue* res = a1 + 1; 
     
    17391739 
    17401740 
    1741 void orExitNative( OValue* a1 ) 
     1741OR_NATIVE( orExitNative ) 
    17421742{ 
    17431743    OValue* res = a1 + 1; 
     
    17711771 
    17721772 
    1773 void orRecycleNative( OValue* a1 ) 
     1773OR_NATIVE( orRecycleNative ) 
    17741774{ 
    17751775#define REF_REC_OFF  a1 
     
    17911791 
    17921792 
    1793 void orTypeQNative( OValue* a1 ) 
     1793OR_NATIVE( orTypeQNative ) 
    17941794{ 
    17951795#define REF_TYPEQ_WORD   a1+1 
     
    18191819  try: native [ block [block!] ] 
    18201820*/ 
    1821 void orTryNative( OValue* a1 ) 
     1821OR_NATIVE( orTryNative ) 
    18221822{ 
    18231823   orEvalBlock( orBLOCK( a1 ), a1->series.it ); 
     
    18351835  catch: native [ block [block!] /name word [word! block!] ] 
    18361836*/ 
    1837 void orCatchNative( OValue* a1 ) 
     1837OR_NATIVE( orCatchNative ) 
    18381838{ 
    18391839    //OIndex nameBlk = 0; 
     
    18951895  throw: native [ value /name word [word!] ] 
    18961896*/ 
    1897 void orThrowNative( OValue* a1 ) 
     1897OR_NATIVE( orThrowNative ) 
    18981898{ 
    18991899#define REF_NAME   a1+1 
     
    28922892 
    28932893 
    2894 void orReduceNative( OValue* a1 ) 
     2894OR_NATIVE_PUB( orReduceNative ) 
    28952895{ 
    28962896    if( (a1->type == OT_BLOCK) || 
     
    29662966 
    29672967 
    2968 void orComposeNative( OValue* a1 ) 
     2968OR_NATIVE( orComposeNative ) 
    29692969{ 
    29702970#define REF_COMP_DEEP     a1+1 
     
    29932993   Result is the first value that is not false or none! 
    29942994*/ 
    2995 void orAnyNative( OValue* a1 ) 
     2995OR_NATIVE( orAnyNative ) 
    29962996{ 
    29972997    OValue* res; 
     
    30283028 
    30293029 
    3030 void orAllNative( OValue* a1 ) 
     3030OR_NATIVE( orAllNative ) 
    30313031{ 
    30323032    OValue* res; 
     
    31943194 
    31953195 
    3196 void orDumpNative( OValue* a1 ) 
     3196OR_NATIVE( orDumpNative ) 
    31973197{ 
    31983198    if( orIsBlock(a1->type) || a1->type == OT_LIST ) 
     
    41184118 
    41194119 
    4120 void orNativeNative( OValue* a1 ) 
     4120OR_NATIVE_PUB( orNativeNative ) 
    41214121{ 
    41224122    if( a1->type == OT_BLOCK ) 
     
    42194219//extern void orRebindClosure( OIndex blkN ); 
    42204220 
    4221 void orDoesNative( OValue* a1 ) 
     4221OR_NATIVE( orDoesNative ) 
    42224222{ 
    42234223    if( a1->type == OT_BLOCK ) 
     
    42464246 
    42474247//void orMakeFunction( OBlock* spec, OBlock* body ) 
    4248 void orFuncNative( OValue* a1 ) 
     4248OR_NATIVE( orFuncNative ) 
    42494249{ 
    42504250    OContext ctx; 
     
    44544454    orNative( orDumpNative,    "dump" ); 
    44554455#endif 
    4456  
    4457  
    44584456} 
    44594457