Changeset 298 for cpp/frams/virtfile
- Timestamp:
- 01/17/15 02:42:28 (10 years ago)
- Location:
- cpp/frams/virtfile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/virtfile/stdiofile.cpp
r295 r298 22 22 #endif 23 23 //printFM("%p",f); 24 if (f) return new StdioFILE(f, path); else return 0;24 if (f) return new StdioFILE(f, path); else return NULL; 25 25 } 26 26 … … 34 34 #endif 35 35 //printFM("%p",d); 36 if (d) return new StdioDIR(d); else return 0;36 if (d) return new StdioDIR(d); else return NULL; 37 37 } 38 38 -
cpp/frams/virtfile/virtfile.cpp
r295 r298 6 6 #include <common/stl-util.h> 7 7 8 VirtFILE *VirtFILE::Vstdin =0;9 VirtFILE *VirtFILE::Vstdout =0;10 VirtFILE *VirtFILE::Vstderr =0;8 VirtFILE *VirtFILE::Vstdin = NULL; 9 VirtFILE *VirtFILE::Vstdout = NULL; 10 VirtFILE *VirtFILE::Vstderr = NULL; 11 11 12 VirtFileSystem *VirtFILE::vfs =0;12 VirtFileSystem *VirtFILE::vfs = NULL; 13 13 14 14 VirtFILE *Vfopen(const char* path,const char*mode) 15 15 { 16 return VirtFILE::vfs ? VirtFILE::vfs->Vfopen(path,mode) : 0;16 return VirtFILE::vfs ? VirtFILE::vfs->Vfopen(path,mode) : NULL; 17 17 } 18 18 19 19 VirtDIR *Vopendir(const char* path) 20 20 { 21 return VirtFILE::vfs ? VirtFILE::vfs->Vopendir(path) : 0;21 return VirtFILE::vfs ? VirtFILE::vfs->Vopendir(path) : NULL; 22 22 } 23 23 … … 79 79 ////////////////////////////////////////////////////////////////////////// 80 80 81 VirtFILE* VirtFileSystem::Vfopen(const char* path,const char*mode) {return 0;} 82 bool VirtFileSystem::Vfexists(const char* path) {return 0;} 83 VirtDIR* VirtFileSystem::Vopendir(const char* path) {return 0;} 84 bool VirtFileSystem::Vmkdir(const char* path) {return false;} //error - not supported 81 // base class only returns NULL/false/not supported - implementations perform the actual work 82 VirtFILE* VirtFileSystem::Vfopen(const char* path,const char*mode) {return NULL;} 83 bool VirtFileSystem::Vfexists(const char* path) {return false;} 84 VirtDIR* VirtFileSystem::Vopendir(const char* path) {return NULL;} 85 bool VirtFileSystem::Vmkdir(const char* path) {return false;} 85 86 bool VirtFileSystem::Vdirexists(const char* path,bool is_writable) {return false;} 86 87
Note: See TracChangeset
for help on using the changeset viewer.