Ignore:
Timestamp:
07/03/16 17:36:35 (5 years ago)
Author:
Maciej Komosinski
Message:

No more overloading of fopen/fclose/... functions for the VirtFILE class. #define VIRTFILE_OVERLOADING to enable overloading only when necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/sstringutils.cpp

    r512 r523  
    1616                loadSString(f, s);
    1717                ret = 1;
    18                 fclose(f);
     18                delete f;
    1919        }
    2020        else if (framsgmodule)
     
    2929        while (!f->Veof())
    3030        {
    31                 len = fread(buf, 1, sizeof(buf), f);
     31                len = f->Vread(buf, 1, sizeof(buf));
    3232                s.append(buf, len);
    3333        }
     
    4444        while (!eolfound)
    4545        {
    46                 char *r = fgets(buf, sizeof(buf), f);
     46                char *r = f->Vgets(buf, sizeof(buf));
    4747                if (r == NULL) break;
    4848                ret = true;
Note: See TracChangeset for help on using the changeset viewer.