Changeset 298 for cpp/frams/virtfile/virtfile.cpp
- Timestamp:
- 01/17/15 02:42:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.