diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:38:48 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:47:48 -0700 |
| commit | 3ccd5e439da4296d6f2b66ce47075ab20d039676 (patch) | |
| tree | b5546552613b869367d09f444492a0bbcfadcfe0 /src/WixToolset.Core/Compiler_Patch.cs | |
| parent | 574785ab1421c9b67336c13ade5c2263e665ca07 (diff) | |
| download | wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.gz wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.bz2 wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.zip | |
Minimize public surface area of Core
Fixes wixtoolset/issues#6374
Diffstat (limited to 'src/WixToolset.Core/Compiler_Patch.cs')
| -rw-r--r-- | src/WixToolset.Core/Compiler_Patch.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/WixToolset.Core/Compiler_Patch.cs b/src/WixToolset.Core/Compiler_Patch.cs index 998894d8..a2cadd67 100644 --- a/src/WixToolset.Core/Compiler_Patch.cs +++ b/src/WixToolset.Core/Compiler_Patch.cs | |||
| @@ -95,13 +95,13 @@ namespace WixToolset.Core | |||
| 95 | targetProductName = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 95 | targetProductName = this.Core.GetAttributeValue(sourceLineNumbers, attrib); |
| 96 | break; | 96 | break; |
| 97 | case "ApiPatchingSymbolNoImagehlpFlag": | 97 | case "ApiPatchingSymbolNoImagehlpFlag": |
| 98 | apiPatchingSymbolFlags |= (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) ? (int)PatchSymbolFlagsType.PATCH_SYMBOL_NO_IMAGEHLP : 0; | 98 | apiPatchingSymbolFlags |= (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) ? (int)PatchSymbolFlags.PatchSymbolNoImagehlp : 0; |
| 99 | break; | 99 | break; |
| 100 | case "ApiPatchingSymbolNoFailuresFlag": | 100 | case "ApiPatchingSymbolNoFailuresFlag": |
| 101 | apiPatchingSymbolFlags |= (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) ? (int)PatchSymbolFlagsType.PATCH_SYMBOL_NO_FAILURES : 0; | 101 | apiPatchingSymbolFlags |= (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) ? (int)PatchSymbolFlags.PatchSymbolNoFailures : 0; |
| 102 | break; | 102 | break; |
| 103 | case "ApiPatchingSymbolUndecoratedTooFlag": | 103 | case "ApiPatchingSymbolUndecoratedTooFlag": |
| 104 | apiPatchingSymbolFlags |= (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) ? (int)PatchSymbolFlagsType.PATCH_SYMBOL_UNDECORATED_TOO : 0; | 104 | apiPatchingSymbolFlags |= (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) ? (int)PatchSymbolFlags.PatchSymbolUndecoratedToo : 0; |
| 105 | break; | 105 | break; |
| 106 | case "OptimizePatchSizeForLargeFiles": | 106 | case "OptimizePatchSizeForLargeFiles": |
| 107 | optimizePatchSizeForLargeFiles = (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)); | 107 | optimizePatchSizeForLargeFiles = (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)); |
| @@ -275,7 +275,7 @@ namespace WixToolset.Core | |||
| 275 | private int ParseOptimizeCustomActionsElement(XElement node) | 275 | private int ParseOptimizeCustomActionsElement(XElement node) |
| 276 | { | 276 | { |
| 277 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); | 277 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); |
| 278 | var optimizeCA = OptimizeCA.None; | 278 | var optimizeCA = OptimizeCAFlags.None; |
| 279 | 279 | ||
| 280 | foreach (var attrib in node.Attributes()) | 280 | foreach (var attrib in node.Attributes()) |
| 281 | { | 281 | { |
| @@ -286,19 +286,19 @@ namespace WixToolset.Core | |||
| 286 | case "SkipAssignment": | 286 | case "SkipAssignment": |
| 287 | if (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) | 287 | if (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) |
| 288 | { | 288 | { |
| 289 | optimizeCA |= OptimizeCA.SkipAssignment; | 289 | optimizeCA |= OptimizeCAFlags.SkipAssignment; |
| 290 | } | 290 | } |
| 291 | break; | 291 | break; |
| 292 | case "SkipImmediate": | 292 | case "SkipImmediate": |
| 293 | if (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) | 293 | if (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) |
| 294 | { | 294 | { |
| 295 | optimizeCA |= OptimizeCA.SkipImmediate; | 295 | optimizeCA |= OptimizeCAFlags.SkipImmediate; |
| 296 | } | 296 | } |
| 297 | break; | 297 | break; |
| 298 | case "SkipDeferred": | 298 | case "SkipDeferred": |
| 299 | if (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) | 299 | if (YesNoType.Yes == this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib)) |
| 300 | { | 300 | { |
| 301 | optimizeCA |= OptimizeCA.SkipDeferred; | 301 | optimizeCA |= OptimizeCAFlags.SkipDeferred; |
| 302 | } | 302 | } |
| 303 | break; | 303 | break; |
| 304 | default: | 304 | default: |
