Changeset 372 for cpp/frams/virtfile


Ignore:
Timestamp:
04/22/15 04:14:59 (9 years ago)
Author:
sz
Message:

Renamed some classes and functions to make their purpose more obvious:

All MessageHandlers? must now be given the explicit "Enable" argument if you want them to automatically become active. This makes side effects clearly visible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/virtfile/stdiofile.cpp

    r298 r372  
    66#include <common/nonstd_dir.h>
    77#include <common/nonstd_stdio.h>
    8 #include <common/framsg.h>
     8#include <common/hmessage.h>
    99#include <common/Convert.h>
    1010
    1111VirtFILE* StdioFileSystem::Vfopen(const char *path, const char *mode)
    1212{
    13         //printFM("Vfopen %s %s",path,mode);
     13        //printH("Vfopen %s %s",path,mode);
    1414#ifdef _WIN32
    1515        FILE *f = _wfopen(Convert::utf8ToUtf16(path).c_str(), Convert::strTOwstr(mode).c_str());
     
    2121#endif
    2222#endif
    23         //printFM("%p",f);
     23        //printH("%p",f);
    2424        if (f) return new StdioFILE(f, path); else return NULL;
    2525}
     
    2727VirtDIR* StdioFileSystem::Vopendir(const char* path)
    2828{
    29         //printFM("Vopendir %s",path);
     29        //printH("Vopendir %s",path);
    3030#ifdef _WIN32
    3131        DIRTYPE *d = wopendir(Convert::utf8ToUtf16(path).c_str());
     
    3333        DIR *d = opendir(path);
    3434#endif
    35         //printFM("%p",d);
     35        //printH("%p",d);
    3636        if (d) return new StdioDIR(d); else return NULL;
    3737}
     
    5656dirent* StdioDIR::Vreaddir()
    5757{
    58         //printFM("Vreaddir %s",dir);
     58        //printH("Vreaddir %s",dir);
    5959#ifdef _WIN32
    6060        wdirent *wde=wreaddir(dir);
Note: See TracChangeset for help on using the changeset viewer.