Changeset 145 for trunk/orca/files.c

Show
Ignore:
Timestamp:
05/11/06 15:55:43 (3 years ago)
Author:
krobillard
Message:

orReadDir() now holds new block.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/files.c

    r144 r145  
    259259OR_NATIVE( orReadNative ) 
    260260{ 
    261     if( a1->type == OT_FILE ) 
     261    if( orIs(a1, OT_FILE) ) 
    262262    { 
    263263        int n; 
     
    275275        else if( n == 1 ) 
    276276        { 
    277             // TODO: Hold a1 from GC (or copy fn). 
    278277            orReadDir( a1, fn ); 
    279278        } 
     
    365364        } 
    366365    } 
    367     else if( a1->type == OT_PORT ) 
     366    else if( orIs(a1, OT_PORT) ) 
    368367    { 
    369368        OArray* arr = &orEnv->devices; 
     
    541540 
    542541 
    543 OR_NATIVE( orDecompressNative ) 
     542OR_NATIVE_PUB( orDecompressNative ) 
    544543{ 
    545544#define BUF_LOW     32