summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da8aaf6)
raw | patch | inline | side by side (parent: da8aaf6)
author | ishmal <ishmal@users.sourceforge.net> | |
Tue, 21 Nov 2006 19:30:11 +0000 (19:30 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Tue, 21 Nov 2006 19:30:11 +0000 (19:30 +0000) |
src/deptool.cpp | patch | blob | history |
diff --git a/src/deptool.cpp b/src/deptool.cpp
index 7abeb89250cfc1f82b0c5f8992ae4c81011a4025..044d197ff11247331d473bd88434d48c9cf85d5d 100644 (file)
--- a/src/deptool.cpp
+++ b/src/deptool.cpp
std::map<String, FileRec *> files;
+ bool checked;
+
private:
void init()
{
+ type = UNKNOWN;
+ checked = false;
}
void assign(const FileRec &other)
baseName = other.baseName;
suffix = other.suffix;
files = other.files;
+ checked = other.checked;
}
};
char *fileBuf;
int fileSize;
+
+ static const int readBufLen = 8192;
+ char readBuf[8193];
};
return false;
}
String buf;
- while (true)
+ while (!feof(f))
{
- int ch = fgetc(f);
- if (ch < 0)
- break;
- buf.push_back((char)ch);
+ int len = fread(readBuf, 1, readBufLen, f);
+ readBuf[len] = '\0';
+ buf.append(readBuf);
}
fclose(f);