src: introduce type tribool

This commit is contained in:
Markus F.X.J. Oberhumer
2023-08-15 14:44:50 +02:00
parent 10e759f1f1
commit a9ac4b5e23
51 changed files with 228 additions and 120 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ const int *PackCom::getFilters() const {
//
**************************************************************************/
bool PackCom::canPack() {
tribool PackCom::canPack() {
byte buf[128];
fi->readx(buf, sizeof(buf));
@@ -197,7 +197,7 @@ void PackCom::pack(OutputFile *fo) {
//
**************************************************************************/
int PackCom::canUnpack() {
tribool PackCom::canUnpack() {
if (!readPackHeader(128)) // read "ph"
return false;
if (file_size_u <= ph.c_len)