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
@@ -67,7 +67,7 @@ PackUnix::~PackUnix()
}
// common part of canPack(), enhanced by subclasses
bool PackUnix::canPack()
tribool PackUnix::canPack()
{
if (exetype == 0)
return false;
@@ -555,7 +555,7 @@ unsigned PackUnix::unpackExtent(unsigned wanted, OutputFile *fo,
**************************************************************************/
// The prize is the value of overlay_offset: the offset of compressed data
int PackUnix::canUnpack()
tribool PackUnix::canUnpack()
{
int const small = 32 + sizeof(overlay_offset);
// Allow zero-filled last page, for Mac OS X code signing.