mirror of
https://github.com/ip7z/7zip.git
synced 2025-12-06 07:12:00 +01:00
39 lines
482 B
C
39 lines
482 B
C
// Common/MyTypes.h
|
|
|
|
#ifndef ZIP7_INC_COMMON_MY_TYPES_H
|
|
#define ZIP7_INC_COMMON_MY_TYPES_H
|
|
|
|
#include "Common0.h"
|
|
#include "../../C/7zTypes.h"
|
|
|
|
// typedef int HRes;
|
|
// typedef HRESULT HRes;
|
|
|
|
struct CBoolPair
|
|
{
|
|
bool Val;
|
|
bool Def;
|
|
|
|
CBoolPair(): Val(false), Def(false) {}
|
|
|
|
void Init()
|
|
{
|
|
Val = false;
|
|
Def = false;
|
|
}
|
|
|
|
void SetTrueTrue()
|
|
{
|
|
Val = true;
|
|
Def = true;
|
|
}
|
|
|
|
void SetVal_as_Defined(bool val)
|
|
{
|
|
Val = val;
|
|
Def = true;
|
|
}
|
|
};
|
|
|
|
#endif
|