Changeset 257 for trunk/thune/win32

Show
Ignore:
Timestamp:
08/28/06 15:52:42 (2 years ago)
Author:
krobillard
Message:

Thune - size? and print now handle int64!

Location:
trunk/thune/win32
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/win32/os.c

    r248 r257  
    9090  Returns -1 if not present. 
    9191*/ 
    92 int ur_fileSize( const char* path ) 
     92long long ur_fileSize( const char* path ) 
    9393{ 
    9494    LARGE_INTEGER lsize; 
     
    106106    if( ! ok ) 
    107107        return -1; 
    108     return lsize.LowPart; 
     108    //return lsize.LowPart; 
     109    return lsize.QuadPart; 
    109110} 
    110111 
  • trunk/thune/win32/os.h

    r170 r257  
    6666#endif 
    6767 
    68 extern int ur_fileSize( const char* path ); 
     68extern long long ur_fileSize( const char* path ); 
    6969extern void ur_installExceptionHandlers(); 
    7070 
  • trunk/thune/win32/stdint.h

    r131 r257  
    99typedef unsigned long long      uint64_t; 
    1010 
     11 
     12/* Minimum/Maximum */ 
     13 
     14#define INT8_MIN        -128 
     15#define INT16_MIN       (-32767-1) 
     16#define INT32_MIN       (-2147483647-1) 
     17 
     18#define INT8_MAX        127 
     19#define INT16_MAX       32767 
     20#define INT32_MAX       2147483647 
     21 
     22#define UINT8_MAX       255 
     23#define UINT16_MAX      65535 
     24#define UINT32_MAX      4294967295U 
     25