Changeset 296
- Timestamp:
- 01/16/15 21:27:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/virtfile/stdiofile.h
r295 r296 7 7 8 8 #include "virtfile.h" 9 #include <frams/util/sstring.h>10 9 #include <common/nonstd_stdio.h> 11 10 #include <common/nonstd_dir.h> … … 28 27 public: 29 28 StdioFILE(MFILE *f):VirtFILE("") { file = f; } 30 StdioFILE(MFILE *f, const SString&p):VirtFILE(p) { file = f; }29 StdioFILE(MFILE *f, const char* p):VirtFILE(p) { file = f; } 31 30 static void setStdio(); 32 31 size_t Vread(void *ptr, size_t size, size_t nmemb) { return mfread(ptr, size, nmemb, file); } … … 48 47 public: 49 48 StdioFILE(FILE *f):VirtFILE("") { file = f; } 50 StdioFILE(FILE *f, const SString&p):VirtFILE(p) { file = f; }49 StdioFILE(FILE *f, const char* p):VirtFILE(p) { file = f; } 51 50 static void setStdio(); 52 51 size_t Vread(void *ptr, size_t size, size_t nmemb) { return fread(ptr, size, nmemb, file); }
Note: See TracChangeset
for help on using the changeset viewer.