コード例 #1
0
 Clone(
     this MingwCommon.ICommonCompilerSettings settings,
     MingwCommon.ICommonCompilerSettings other)
 {
     settings.AllWarnings = other.AllWarnings;
     settings.ExtraWarnings = other.ExtraWarnings;
     settings.Pedantic = other.Pedantic;
     settings.Visibility = other.Visibility;
 }
コード例 #2
0
 Delta(
     this MingwCommon.ICommonCompilerSettings delta,
     MingwCommon.ICommonCompilerSettings lhs,
     MingwCommon.ICommonCompilerSettings rhs)
 {
     delta.AllWarnings = (lhs.AllWarnings != rhs.AllWarnings) ? lhs.AllWarnings : null;
     delta.ExtraWarnings = (lhs.ExtraWarnings != rhs.ExtraWarnings) ? lhs.ExtraWarnings : null;
     delta.Pedantic = (lhs.Pedantic != rhs.Pedantic) ? lhs.Pedantic : null;
     delta.Visibility = (lhs.Visibility != rhs.Visibility) ? lhs.Visibility : null;
 }
コード例 #3
0
 Intersect(
     this MingwCommon.ICommonCompilerSettings shared,
     MingwCommon.ICommonCompilerSettings other)
 {
     if (shared.AllWarnings != other.AllWarnings)
     {
         shared.AllWarnings = null;
     }
     if (shared.ExtraWarnings != other.ExtraWarnings)
     {
         shared.ExtraWarnings = null;
     }
     if (shared.Pedantic != other.Pedantic)
     {
         shared.Pedantic = null;
     }
     if (shared.Visibility != other.Visibility)
     {
         shared.Visibility = null;
     }
 }