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
@@ -122,7 +122,7 @@ bool PackLinuxI386sh::getShellName(char *buf)
return false;
for (int j = 0; nullptr != shname[j]; ++j) {
if (0 == strcmp(shname[j], bname + 1)) {
bool const s = super::canPack();
bool const s = bool(super::canPack());
if (s) {
opt->o_unix.blocksize = blocksize = file_size;
}
@@ -138,7 +138,7 @@ bool PackLinuxI386sh::getShellName(char *buf)
}
bool PackLinuxI386sh::canPack()
tribool PackLinuxI386sh::canPack()
{
#if defined(__linux__) //{
// only compress i386sh scripts when running under Linux