Remove include <Platform.h> from headers. Keep them in sources.

This commit is contained in:
jief666 2021-02-07 17:39:03 +03:00
parent 7b4edb280c
commit 75097bd304
55 changed files with 5195 additions and 1123 deletions

View File

@ -59,19 +59,19 @@ PrintBytes(IN void *Bytes, IN UINTN Number)
// DebugMode==2 Prints to msg log, DEBUG_LOG and display console
void EFIAPI DebugLog(IN INTN DebugMode, IN CONST CHAR8 *FormatString, ...)
{
VA_LIST Marker;
//UINTN offset = 0;
// VA_LIST Marker;
va_list Marker;
// Make sure the buffer is intact for writing
if (FormatString == NULL || DebugMode < 0) {
return;
}
// Print message to log buffer
VA_START(Marker, FormatString);
// VA_START(Marker, FormatString);
va_start(Marker, FormatString);
#if __WCHAR_MAX__ < 0xffff
#else
printf(FormatString, Marker);
vprintf(FormatString, Marker);
#endif
VA_END(Marker);
}

View File

@ -10,6 +10,31 @@
9A0B085E240300E000E2B470 /* Platform.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A0B085D240300E000E2B470 /* Platform.cpp */; };
9A28CD1F241BB61B00F3D247 /* abort.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A28CD1D241BB61B00F3D247 /* abort.cpp */; };
9A28CD22241BB61B00F3D247 /* strlen.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A28CD1E241BB61B00F3D247 /* strlen.cpp */; };
9A358B2025CF115200A3850D /* Config_GUI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358AF425CF115100A3850D /* Config_GUI.cpp */; };
9A358B2125CF115200A3850D /* Config_RtVariables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358AF525CF115100A3850D /* Config_RtVariables.cpp */; };
9A358B2225CF115200A3850D /* Config_SMBIOS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358AF625CF115100A3850D /* Config_SMBIOS.cpp */; };
9A358B2325CF115200A3850D /* Config_Devices_Audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358AF925CF115100A3850D /* Config_Devices_Audio.cpp */; };
9A358B2425CF115200A3850D /* Config_KernelAndKextPatches.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358AFC25CF115100A3850D /* Config_KernelAndKextPatches.cpp */; };
9A358B2525CF115200A3850D /* Config_Quirks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358AFD25CF115100A3850D /* Config_Quirks.cpp */; };
9A358B2625CF115200A3850D /* Config_CPU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0025CF115100A3850D /* Config_CPU.cpp */; };
9A358B2725CF115200A3850D /* Config_Devices_FakeID.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0325CF115100A3850D /* Config_Devices_FakeID.cpp */; };
9A358B2825CF115200A3850D /* Config_ACPI_SSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0625CF115100A3850D /* Config_ACPI_SSDT.cpp */; };
9A358B2925CF115200A3850D /* Config_Boot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0725CF115100A3850D /* Config_Boot.cpp */; };
9A358B2A25CF115200A3850D /* Config_Devices_AddProperties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0825CF115100A3850D /* Config_Devices_AddProperties.cpp */; };
9A358B2B25CF115200A3850D /* ConfigPlist.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0A25CF115100A3850D /* ConfigPlist.cpp */; };
9A358B2C25CF115200A3850D /* Config_Devices_USB.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0B25CF115100A3850D /* Config_Devices_USB.cpp */; };
9A358B2D25CF115200A3850D /* Config_Devices.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0C25CF115100A3850D /* Config_Devices.cpp */; };
9A358B2E25CF115200A3850D /* Config_ACPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B0F25CF115100A3850D /* Config_ACPI.cpp */; };
9A358B2F25CF115200A3850D /* Config_Devices_Properties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B1025CF115100A3850D /* Config_Devices_Properties.cpp */; };
9A358B3025CF115200A3850D /* Config_Graphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B1225CF115100A3850D /* Config_Graphics.cpp */; };
9A358B3125CF115200A3850D /* Config_SystemParameters.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B1525CF115100A3850D /* Config_SystemParameters.cpp */; };
9A358B3225CF115200A3850D /* CompareSettings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B1625CF115100A3850D /* CompareSettings.cpp */; };
9A358B3325CF115200A3850D /* Config_ACPI_DSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B1725CF115100A3850D /* Config_ACPI_DSDT.cpp */; };
9A358B3425CF115200A3850D /* Config_BootGraphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B1825CF115100A3850D /* Config_BootGraphics.cpp */; };
9A358B3525CF115200A3850D /* Config_Devices_Arbitrary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B1925CF115100A3850D /* Config_Devices_Arbitrary.cpp */; };
9A358B3D25CF117A00A3850D /* XmlLiteCompositeTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B3925CF117A00A3850D /* XmlLiteCompositeTypes.cpp */; };
9A358B3E25CF117A00A3850D /* XmlLiteParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B3A25CF117A00A3850D /* XmlLiteParser.cpp */; };
9A358B3F25CF117A00A3850D /* xmlLiteSimpleTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A358B3B25CF117A00A3850D /* xmlLiteSimpleTypes.cpp */; };
9A36E4F024F3B537007A1107 /* TagString8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A36E4DB24F3B536007A1107 /* TagString8.cpp */; };
9A36E4F424F3B537007A1107 /* plist.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A36E4DD24F3B536007A1107 /* plist.cpp */; };
9A36E4F824F3B537007A1107 /* xml.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A36E4DF24F3B536007A1107 /* xml.cpp */; };
@ -32,6 +57,8 @@
9A838CB425347C36008303F5 /* MemoryOperation.c in Sources */ = {isa = PBXBuildFile; fileRef = 9A838CB325347C36008303F5 /* MemoryOperation.c */; };
9A838CBA25348237008303F5 /* BaseMemoryLib.c in Sources */ = {isa = PBXBuildFile; fileRef = 9A838CB925348237008303F5 /* BaseMemoryLib.c */; };
9A838CC3253485DC008303F5 /* DebugLib.c in Sources */ = {isa = PBXBuildFile; fileRef = 9A838CC2253485DC008303F5 /* DebugLib.c */; };
9A9037E625CFE7D100F14179 /* xml_lite-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037E325CFE7CD00F14179 /* xml_lite-test.cpp */; };
9A9037E725CFE7D100F14179 /* config-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037E425CFE7D000F14179 /* config-test.cpp */; };
9A9223312402FD1000483CBA /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9223302402FD1000483CBA /* main.cpp */; };
9A9AEB8D243F73CE00FBD7D8 /* unicode_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9AEB8C243F73CE00FBD7D8 /* unicode_conversions.cpp */; };
9AA3918F25CC75420099DC1F /* Settings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A852C0E25CC39E900C5662E /* Settings.cpp */; };
@ -244,6 +271,56 @@
9A0B085D240300E000E2B470 /* Platform.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Platform.cpp; sourceTree = "<group>"; };
9A28CD1D241BB61B00F3D247 /* abort.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = abort.cpp; sourceTree = "<group>"; };
9A28CD1E241BB61B00F3D247 /* strlen.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = strlen.cpp; sourceTree = "<group>"; };
9A358AF425CF115100A3850D /* Config_GUI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_GUI.cpp; sourceTree = "<group>"; };
9A358AF525CF115100A3850D /* Config_RtVariables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_RtVariables.cpp; sourceTree = "<group>"; };
9A358AF625CF115100A3850D /* Config_SMBIOS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_SMBIOS.cpp; sourceTree = "<group>"; };
9A358AF725CF115100A3850D /* Config_KernelAndKextPatches.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_KernelAndKextPatches.h; sourceTree = "<group>"; };
9A358AF825CF115100A3850D /* Config_Graphics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Graphics.h; sourceTree = "<group>"; };
9A358AF925CF115100A3850D /* Config_Devices_Audio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_Audio.cpp; sourceTree = "<group>"; };
9A358AFA25CF115100A3850D /* Config_ACPI_DSDT.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_ACPI_DSDT.h; sourceTree = "<group>"; };
9A358AFB25CF115100A3850D /* ConfigPlist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ConfigPlist.h; sourceTree = "<group>"; };
9A358AFC25CF115100A3850D /* Config_KernelAndKextPatches.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_KernelAndKextPatches.cpp; sourceTree = "<group>"; };
9A358AFD25CF115100A3850D /* Config_Quirks.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Quirks.cpp; sourceTree = "<group>"; };
9A358AFE25CF115100A3850D /* CompareSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CompareSettings.h; sourceTree = "<group>"; };
9A358AFF25CF115100A3850D /* Config_Devices_Audio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_Audio.h; sourceTree = "<group>"; };
9A358B0025CF115100A3850D /* Config_CPU.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_CPU.cpp; sourceTree = "<group>"; };
9A358B0125CF115100A3850D /* Config_Quirks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Quirks.h; sourceTree = "<group>"; };
9A358B0225CF115100A3850D /* Config_ACPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_ACPI.h; sourceTree = "<group>"; };
9A358B0325CF115100A3850D /* Config_Devices_FakeID.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_FakeID.cpp; sourceTree = "<group>"; };
9A358B0425CF115100A3850D /* Config_Devices_Properties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_Properties.h; sourceTree = "<group>"; };
9A358B0525CF115100A3850D /* Config_Boot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Boot.h; sourceTree = "<group>"; };
9A358B0625CF115100A3850D /* Config_ACPI_SSDT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_ACPI_SSDT.cpp; sourceTree = "<group>"; };
9A358B0725CF115100A3850D /* Config_Boot.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Boot.cpp; sourceTree = "<group>"; };
9A358B0825CF115100A3850D /* Config_Devices_AddProperties.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_AddProperties.cpp; sourceTree = "<group>"; };
9A358B0925CF115100A3850D /* Config_Devices_Arbitrary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_Arbitrary.h; sourceTree = "<group>"; };
9A358B0A25CF115100A3850D /* ConfigPlist.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ConfigPlist.cpp; sourceTree = "<group>"; };
9A358B0B25CF115100A3850D /* Config_Devices_USB.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_USB.cpp; sourceTree = "<group>"; };
9A358B0C25CF115100A3850D /* Config_Devices.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices.cpp; sourceTree = "<group>"; };
9A358B0D25CF115100A3850D /* Config_SystemParameters.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_SystemParameters.h; sourceTree = "<group>"; };
9A358B0E25CF115100A3850D /* Config_SMBIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_SMBIOS.h; sourceTree = "<group>"; };
9A358B0F25CF115100A3850D /* Config_ACPI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_ACPI.cpp; sourceTree = "<group>"; };
9A358B1025CF115100A3850D /* Config_Devices_Properties.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_Properties.cpp; sourceTree = "<group>"; };
9A358B1125CF115100A3850D /* Config_Devices.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices.h; sourceTree = "<group>"; };
9A358B1225CF115100A3850D /* Config_Graphics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Graphics.cpp; sourceTree = "<group>"; };
9A358B1325CF115100A3850D /* Config_CPU.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_CPU.h; sourceTree = "<group>"; };
9A358B1425CF115100A3850D /* Config_BootGraphics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_BootGraphics.h; sourceTree = "<group>"; };
9A358B1525CF115100A3850D /* Config_SystemParameters.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_SystemParameters.cpp; sourceTree = "<group>"; };
9A358B1625CF115100A3850D /* CompareSettings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CompareSettings.cpp; sourceTree = "<group>"; };
9A358B1725CF115100A3850D /* Config_ACPI_DSDT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_ACPI_DSDT.cpp; sourceTree = "<group>"; };
9A358B1825CF115100A3850D /* Config_BootGraphics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_BootGraphics.cpp; sourceTree = "<group>"; };
9A358B1925CF115100A3850D /* Config_Devices_Arbitrary.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_Arbitrary.cpp; sourceTree = "<group>"; };
9A358B1A25CF115100A3850D /* Config_ACPI_SSDT.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_ACPI_SSDT.h; sourceTree = "<group>"; };
9A358B1B25CF115100A3850D /* Config_GUI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_GUI.h; sourceTree = "<group>"; };
9A358B1C25CF115100A3850D /* Config_RtVariables.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_RtVariables.h; sourceTree = "<group>"; };
9A358B1D25CF115100A3850D /* Config_Devices_FakeID.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_FakeID.h; sourceTree = "<group>"; };
9A358B1E25CF115100A3850D /* Config_Devices_USB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_USB.h; sourceTree = "<group>"; };
9A358B1F25CF115100A3850D /* Config_Devices_AddProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_AddProperties.h; sourceTree = "<group>"; };
9A358B3725CF117A00A3850D /* XmlLiteParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XmlLiteParser.h; sourceTree = "<group>"; };
9A358B3825CF117A00A3850D /* xmlLiteSimpleTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xmlLiteSimpleTypes.h; sourceTree = "<group>"; };
9A358B3925CF117A00A3850D /* XmlLiteCompositeTypes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XmlLiteCompositeTypes.cpp; sourceTree = "<group>"; };
9A358B3A25CF117A00A3850D /* XmlLiteParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XmlLiteParser.cpp; sourceTree = "<group>"; };
9A358B3B25CF117A00A3850D /* xmlLiteSimpleTypes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = xmlLiteSimpleTypes.cpp; sourceTree = "<group>"; };
9A358B3C25CF117A00A3850D /* XmlLiteCompositeTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XmlLiteCompositeTypes.h; sourceTree = "<group>"; };
9A36E4DA24F3B536007A1107 /* TagBool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TagBool.h; sourceTree = "<group>"; };
9A36E4DB24F3B536007A1107 /* TagString8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TagString8.cpp; sourceTree = "<group>"; };
9A36E4DC24F3B536007A1107 /* plist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = plist.h; sourceTree = "<group>"; };
@ -299,6 +376,10 @@
9A838CC52534933F008303F5 /* Base.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Base.h; sourceTree = "<group>"; };
9A852C0D25CC39E900C5662E /* Settings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Settings.h; sourceTree = "<group>"; };
9A852C0E25CC39E900C5662E /* Settings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Settings.cpp; sourceTree = "<group>"; };
9A9037E225CFE7CD00F14179 /* config-test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "config-test.h"; sourceTree = "<group>"; };
9A9037E325CFE7CD00F14179 /* xml_lite-test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "xml_lite-test.cpp"; sourceTree = "<group>"; };
9A9037E425CFE7D000F14179 /* config-test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "config-test.cpp"; sourceTree = "<group>"; };
9A9037E525CFE7D000F14179 /* xml_lite-test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "xml_lite-test.h"; sourceTree = "<group>"; };
9A92232D2402FD1000483CBA /* CloverX64TestNewParser UTF16 signed char */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "CloverX64TestNewParser UTF16 signed char"; sourceTree = BUILT_PRODUCTS_DIR; };
9A9223302402FD1000483CBA /* main.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
9A9AEB8B243F73CE00FBD7D8 /* unicode_conversions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = unicode_conversions.h; sourceTree = "<group>"; };
@ -311,7 +392,6 @@
9AA3911E25CC56E60099DC1F /* rename_helper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rename_helper.h; sourceTree = "<group>"; };
9AA3911F25CC56E60099DC1F /* Handle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Handle.h; sourceTree = "<group>"; };
9AA3912025CC56E60099DC1F /* OneLinerMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneLinerMacros.h; sourceTree = "<group>"; };
9AA3912125CC56E60099DC1F /* OsType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OsType.h; sourceTree = "<group>"; };
9AA3912225CC56E60099DC1F /* Pci.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Pci.h; sourceTree = "<group>"; };
9AA3912325CC56E60099DC1F /* Efi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Efi.h; sourceTree = "<group>"; };
9AA3912425CC56E60099DC1F /* OC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OC.h; sourceTree = "<group>"; };
@ -4917,6 +4997,10 @@
9AA9E51B25CD306700BD5E8B /* loader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = loader.cpp; sourceTree = "<group>"; };
9AA9E54B25CD41E900BD5E8B /* posix_additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = posix_additions.h; sourceTree = "<group>"; };
9AA9E54C25CD41E900BD5E8B /* posix_additions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = posix_additions.cpp; sourceTree = "<group>"; };
9AB6EB9D25CF1FAC0001BDBB /* VolumeTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VolumeTypes.h; sourceTree = "<group>"; };
9AB6EB9E25CF1FAD0001BDBB /* BootTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BootTypes.h; sourceTree = "<group>"; };
9AB6EB9F25CF1FAD0001BDBB /* OSFlags.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OSFlags.h; sourceTree = "<group>"; };
9AB6EBA025CF1FAD0001BDBB /* OSTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OSTypes.h; sourceTree = "<group>"; };
9AC790112452C45A0004FBE9 /* abort.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = abort.h; sourceTree = "<group>"; };
9AD0358A25C579B200E58351 /* PrintLib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PrintLib.h; sourceTree = "<group>"; };
9AD0358B25C57A4500E58351 /* MemoryAllocationLib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = MemoryAllocationLib.c; sourceTree = "<group>"; };
@ -5168,6 +5252,7 @@
9A28CCAC241B816400F3D247 /* Platform */ = {
isa = PBXGroup;
children = (
9A358AF325CF115100A3850D /* ConfigPlist */,
9AA9240D25CD5B2D00BD5E8B /* AcpiPatcher.cpp */,
9AA9240825CD5B2C00BD5E8B /* AcpiPatcher.h */,
9AA923FB25CD5B2900BD5E8B /* AmlGenerator.cpp */,
@ -5284,6 +5369,70 @@
path = Posix;
sourceTree = "<group>";
};
9A358AF325CF115100A3850D /* ConfigPlist */ = {
isa = PBXGroup;
children = (
9A358B1625CF115100A3850D /* CompareSettings.cpp */,
9A358AFE25CF115100A3850D /* CompareSettings.h */,
9A358B1725CF115100A3850D /* Config_ACPI_DSDT.cpp */,
9A358AFA25CF115100A3850D /* Config_ACPI_DSDT.h */,
9A358B0625CF115100A3850D /* Config_ACPI_SSDT.cpp */,
9A358B1A25CF115100A3850D /* Config_ACPI_SSDT.h */,
9A358B0F25CF115100A3850D /* Config_ACPI.cpp */,
9A358B0225CF115100A3850D /* Config_ACPI.h */,
9A358B0725CF115100A3850D /* Config_Boot.cpp */,
9A358B0525CF115100A3850D /* Config_Boot.h */,
9A358B1825CF115100A3850D /* Config_BootGraphics.cpp */,
9A358B1425CF115100A3850D /* Config_BootGraphics.h */,
9A358B0025CF115100A3850D /* Config_CPU.cpp */,
9A358B1325CF115100A3850D /* Config_CPU.h */,
9A358B0825CF115100A3850D /* Config_Devices_AddProperties.cpp */,
9A358B1F25CF115100A3850D /* Config_Devices_AddProperties.h */,
9A358B1925CF115100A3850D /* Config_Devices_Arbitrary.cpp */,
9A358B0925CF115100A3850D /* Config_Devices_Arbitrary.h */,
9A358AF925CF115100A3850D /* Config_Devices_Audio.cpp */,
9A358AFF25CF115100A3850D /* Config_Devices_Audio.h */,
9A358B0325CF115100A3850D /* Config_Devices_FakeID.cpp */,
9A358B1D25CF115100A3850D /* Config_Devices_FakeID.h */,
9A358B1025CF115100A3850D /* Config_Devices_Properties.cpp */,
9A358B0425CF115100A3850D /* Config_Devices_Properties.h */,
9A358B0B25CF115100A3850D /* Config_Devices_USB.cpp */,
9A358B1E25CF115100A3850D /* Config_Devices_USB.h */,
9A358B0C25CF115100A3850D /* Config_Devices.cpp */,
9A358B1125CF115100A3850D /* Config_Devices.h */,
9A358B1225CF115100A3850D /* Config_Graphics.cpp */,
9A358AF825CF115100A3850D /* Config_Graphics.h */,
9A358AF425CF115100A3850D /* Config_GUI.cpp */,
9A358B1B25CF115100A3850D /* Config_GUI.h */,
9A358AFC25CF115100A3850D /* Config_KernelAndKextPatches.cpp */,
9A358AF725CF115100A3850D /* Config_KernelAndKextPatches.h */,
9A358AFD25CF115100A3850D /* Config_Quirks.cpp */,
9A358B0125CF115100A3850D /* Config_Quirks.h */,
9A358AF525CF115100A3850D /* Config_RtVariables.cpp */,
9A358B1C25CF115100A3850D /* Config_RtVariables.h */,
9A358AF625CF115100A3850D /* Config_SMBIOS.cpp */,
9A358B0E25CF115100A3850D /* Config_SMBIOS.h */,
9A358B1525CF115100A3850D /* Config_SystemParameters.cpp */,
9A358B0D25CF115100A3850D /* Config_SystemParameters.h */,
9A358B0A25CF115100A3850D /* ConfigPlist.cpp */,
9A358AFB25CF115100A3850D /* ConfigPlist.h */,
);
path = ConfigPlist;
sourceTree = "<group>";
};
9A358B3625CF117A00A3850D /* cpp_lib */ = {
isa = PBXGroup;
children = (
9A358B3725CF117A00A3850D /* XmlLiteParser.h */,
9A358B3825CF117A00A3850D /* xmlLiteSimpleTypes.h */,
9A358B3925CF117A00A3850D /* XmlLiteCompositeTypes.cpp */,
9A358B3A25CF117A00A3850D /* XmlLiteParser.cpp */,
9A358B3B25CF117A00A3850D /* xmlLiteSimpleTypes.cpp */,
9A358B3C25CF117A00A3850D /* XmlLiteCompositeTypes.h */,
);
path = cpp_lib;
sourceTree = "<group>";
};
9A36E4D924F3B51C007A1107 /* plist */ = {
isa = PBXGroup;
children = (
@ -5318,6 +5467,7 @@
9A36E51C24F3B5B4007A1107 /* rEFIt_UEFI */ = {
isa = PBXGroup;
children = (
9A358B3625CF117A00A3850D /* cpp_lib */,
9AFDD05825CE730F00EEAF06 /* cpp_unit_test */,
9A0B08432402FE9300E2B470 /* cpp_foundation */,
9AA9E50525CD306700BD5E8B /* entry_scan */,
@ -5492,12 +5642,15 @@
9AA3911925CC56E60099DC1F /* include */ = {
isa = PBXGroup;
children = (
9AB6EB9E25CF1FAD0001BDBB /* BootTypes.h */,
9AB6EB9F25CF1FAD0001BDBB /* OSFlags.h */,
9AB6EBA025CF1FAD0001BDBB /* OSTypes.h */,
9AB6EB9D25CF1FAC0001BDBB /* VolumeTypes.h */,
9AA3911A25CC56E60099DC1F /* Devices.h */,
9AA3912325CC56E60099DC1F /* Efi.h */,
9AA3911F25CC56E60099DC1F /* Handle.h */,
9AA3912425CC56E60099DC1F /* OC.h */,
9AA3912025CC56E60099DC1F /* OneLinerMacros.h */,
9AA3912125CC56E60099DC1F /* OsType.h */,
9AA3912225CC56E60099DC1F /* Pci.h */,
9AA3911D25CC56E60099DC1F /* printf_lite-test-cpp_conf.h */,
9AA3911B25CC56E60099DC1F /* printlib-test-cpp_conf.h */,
@ -15621,42 +15774,46 @@
9AFDD05825CE730F00EEAF06 /* cpp_unit_test */ = {
isa = PBXGroup;
children = (
9AFDD05925CE730F00EEAF06 /* XToolsCommon_test.h */,
9AFDD05A25CE730F00EEAF06 /* XString_test.h */,
9AFDD05B25CE730F00EEAF06 /* plist_tests.h */,
9AFDD05C25CE730F00EEAF06 /* global_test.cpp */,
9AFDD05D25CE730F00EEAF06 /* strncmp_test.h */,
9AFDD05E25CE730F00EEAF06 /* XBuffer_tests.h */,
9AFDD05F25CE730F00EEAF06 /* strcmp_test.h */,
9AFDD06025CE730F00EEAF06 /* XBuffer_tests.cpp */,
9AFDD06125CE730F00EEAF06 /* LoadOptions_test.cpp */,
9AFDD06225CE730F00EEAF06 /* find_replace_mask_OC_tests.h */,
9AFDD06325CE730F00EEAF06 /* printf_lite-test.cpp */,
9AFDD06425CE730F00EEAF06 /* XArray_tests.h */,
9AFDD06525CE730F00EEAF06 /* global_test.h */,
9AFDD06625CE730F00EEAF06 /* find_replace_mask_Clover_tests.h */,
9AFDD06725CE730F00EEAF06 /* XStringArray_test.h */,
9AFDD06825CE730F00EEAF06 /* plist_tests.cpp */,
9AFDD06925CE730F00EEAF06 /* MacOsVersion_test.cpp */,
9AFDD06A25CE730F00EEAF06 /* strcmp_test.cpp */,
9AFDD06B25CE730F00EEAF06 /* printlib-test.cpp */,
9AFDD06C25CE730F00EEAF06 /* XStringArray_test.cpp */,
9AFDD06D25CE730F00EEAF06 /* XObjArray_tests.h */,
9AFDD06E25CE730F00EEAF06 /* find_replace_mask_Clover_tests.cpp */,
9AFDD06F25CE730F00EEAF06 /* MacOsVersion_test.h */,
9AFDD07025CE730F00EEAF06 /* strlen_test.h */,
9AFDD07125CE730F00EEAF06 /* all_tests.cpp */,
9AFDD07225CE730F00EEAF06 /* printlib-test.h */,
9AFDD07325CE730F00EEAF06 /* XObjArray_tests.cpp */,
9AFDD07425CE730F00EEAF06 /* XArray_tests.cpp */,
9AFDD07525CE730F00EEAF06 /* strncmp_test.cpp */,
9AFDD07625CE730F00EEAF06 /* printf_lite-test.h */,
9AFDD07725CE730F00EEAF06 /* XString_test.cpp */,
9AFDD07825CE730F00EEAF06 /* LoadOptions_test.h */,
9AFDD07925CE730F00EEAF06 /* XToolsCommon_test.cpp */,
9AFDD07A25CE730F00EEAF06 /* all_tests.h */,
9AFDD07B25CE730F00EEAF06 /* strlen_test.cpp */,
9A9037E425CFE7D000F14179 /* config-test.cpp */,
9A9037E225CFE7CD00F14179 /* config-test.h */,
9AFDD06E25CE730F00EEAF06 /* find_replace_mask_Clover_tests.cpp */,
9AFDD06625CE730F00EEAF06 /* find_replace_mask_Clover_tests.h */,
9AFDD07C25CE730F00EEAF06 /* find_replace_mask_OC_tests.cpp */,
9AFDD06225CE730F00EEAF06 /* find_replace_mask_OC_tests.h */,
9AFDD05C25CE730F00EEAF06 /* global_test.cpp */,
9AFDD06525CE730F00EEAF06 /* global_test.h */,
9AFDD06125CE730F00EEAF06 /* LoadOptions_test.cpp */,
9AFDD07825CE730F00EEAF06 /* LoadOptions_test.h */,
9AFDD06925CE730F00EEAF06 /* MacOsVersion_test.cpp */,
9AFDD06F25CE730F00EEAF06 /* MacOsVersion_test.h */,
9AFDD06825CE730F00EEAF06 /* plist_tests.cpp */,
9AFDD05B25CE730F00EEAF06 /* plist_tests.h */,
9AFDD06325CE730F00EEAF06 /* printf_lite-test.cpp */,
9AFDD07625CE730F00EEAF06 /* printf_lite-test.h */,
9AFDD06B25CE730F00EEAF06 /* printlib-test.cpp */,
9AFDD07225CE730F00EEAF06 /* printlib-test.h */,
9AFDD06A25CE730F00EEAF06 /* strcmp_test.cpp */,
9AFDD05F25CE730F00EEAF06 /* strcmp_test.h */,
9AFDD07B25CE730F00EEAF06 /* strlen_test.cpp */,
9AFDD07025CE730F00EEAF06 /* strlen_test.h */,
9AFDD07525CE730F00EEAF06 /* strncmp_test.cpp */,
9AFDD05D25CE730F00EEAF06 /* strncmp_test.h */,
9AFDD07425CE730F00EEAF06 /* XArray_tests.cpp */,
9AFDD06425CE730F00EEAF06 /* XArray_tests.h */,
9AFDD06025CE730F00EEAF06 /* XBuffer_tests.cpp */,
9AFDD05E25CE730F00EEAF06 /* XBuffer_tests.h */,
9A9037E325CFE7CD00F14179 /* xml_lite-test.cpp */,
9AFDD07325CE730F00EEAF06 /* XObjArray_tests.cpp */,
9AFDD06D25CE730F00EEAF06 /* XObjArray_tests.h */,
9AFDD07725CE730F00EEAF06 /* XString_test.cpp */,
9AFDD05A25CE730F00EEAF06 /* XString_test.h */,
9AFDD06C25CE730F00EEAF06 /* XStringArray_test.cpp */,
9AFDD06725CE730F00EEAF06 /* XStringArray_test.h */,
9AFDD07925CE730F00EEAF06 /* XToolsCommon_test.cpp */,
9A9037E525CFE7D000F14179 /* xml_lite-test.h */,
9AFDD05925CE730F00EEAF06 /* XToolsCommon_test.h */,
);
path = cpp_unit_test;
sourceTree = "<group>";
@ -15724,6 +15881,7 @@
9A36E50424F3B537007A1107 /* TagInt64.cpp in Sources */,
9A36E50024F3B537007A1107 /* TagDict.cpp in Sources */,
9A4C576B255AAD07004F0B21 /* MacOsVersion.cpp in Sources */,
9A358B2325CF115200A3850D /* Config_Devices_Audio.cpp in Sources */,
9A36E50C24F3B537007A1107 /* TagData.cpp in Sources */,
9AD0358C25C57A4500E58351 /* MemoryAllocationLib.c in Sources */,
9AA9253025CD74CC00BD5E8B /* secureboot.cpp in Sources */,
@ -15735,6 +15893,7 @@
9AA9246F25CD5B2E00BD5E8B /* KextList.cpp in Sources */,
9A36E53C24F3EDED007A1107 /* base64.cpp in Sources */,
9AFDD0BD25CE731000EEAF06 /* strlen_test.cpp in Sources */,
9A358B3D25CF117A00A3850D /* XmlLiteCompositeTypes.cpp in Sources */,
9AA9250325CD5B2E00BD5E8B /* StateGenerator.cpp in Sources */,
9AA9253125CD74CC00BD5E8B /* securemenu.cpp in Sources */,
9AFDD0A525CE731000EEAF06 /* all_tests.cpp in Sources */,
@ -15745,6 +15904,7 @@
9A28CD22241BB61B00F3D247 /* strlen.cpp in Sources */,
9AA9248325CD5B2E00BD5E8B /* Volumes.cpp in Sources */,
9AA9241F25CD5B2E00BD5E8B /* LegacyBiosThunk.cpp in Sources */,
9A358B2125CF115200A3850D /* Config_RtVariables.cpp in Sources */,
9AA9246325CD5B2E00BD5E8B /* HdaCodecDump.cpp in Sources */,
9AA9259125CD770F00BD5E8B /* scroll_images.cpp in Sources */,
9AFDD05425CDBC1800EEAF06 /* printf_lite.c in Sources */,
@ -15754,17 +15914,22 @@
9AFDD09525CE731000EEAF06 /* strcmp_test.cpp in Sources */,
9A36E52624F3BB6B007A1107 /* FloatLib.cpp in Sources */,
9AFDD09125CE731000EEAF06 /* MacOsVersion_test.cpp in Sources */,
9A358B2525CF115200A3850D /* Config_Quirks.cpp in Sources */,
9AA924F725CD5B2E00BD5E8B /* DevicePath.cpp in Sources */,
9A838CB425347C36008303F5 /* MemoryOperation.c in Sources */,
9AA9252B25CD74CC00BD5E8B /* tool.cpp in Sources */,
9AA9241325CD5B2E00BD5E8B /* SelfOem.cpp in Sources */,
9A358B2D25CF115200A3850D /* Config_Devices.cpp in Sources */,
9AA9252C25CD74CC00BD5E8B /* lockedgraphics.cpp in Sources */,
9A358B2E25CF115200A3850D /* Config_ACPI.cpp in Sources */,
9AA9E4EE25CD283400BD5E8B /* XIcon.cpp in Sources */,
9AA9242725CD5B2E00BD5E8B /* smbios.cpp in Sources */,
9AFDD08525CE731000EEAF06 /* LoadOptions_test.cpp in Sources */,
9AA9247B25CD5B2E00BD5E8B /* platformdata.cpp in Sources */,
9AA9E4EA25CD283400BD5E8B /* XImage.cpp in Sources */,
9AA9241B25CD5B2E00BD5E8B /* Edid.cpp in Sources */,
9A358B3F25CF117A00A3850D /* xmlLiteSimpleTypes.cpp in Sources */,
9A358B3525CF115200A3850D /* Config_Devices_Arbitrary.cpp in Sources */,
9AA9252D25CD74CC00BD5E8B /* securehash.cpp in Sources */,
9AA9252E25CD74CC00BD5E8B /* legacy.cpp in Sources */,
9AA924A725CD5B2E00BD5E8B /* Self.cpp in Sources */,
@ -15783,10 +15948,13 @@
9AA9247F25CD5B2E00BD5E8B /* sound.cpp in Sources */,
9AFDD0A125CE731000EEAF06 /* find_replace_mask_Clover_tests.cpp in Sources */,
9AA9249F25CD5B2E00BD5E8B /* nvidia.cpp in Sources */,
9A358B3125CF115200A3850D /* Config_SystemParameters.cpp in Sources */,
9AA9249B25CD5B2E00BD5E8B /* APFS.cpp in Sources */,
9AA9257925CD770F00BD5E8B /* text.cpp in Sources */,
9A9037E725CFE7D100F14179 /* config-test.cpp in Sources */,
9AA9E4DC25CD279200BD5E8B /* VersionString.cpp in Sources */,
9AA9252F25CD74CC00BD5E8B /* bootscreen.cpp in Sources */,
9A358B2F25CF115200A3850D /* Config_Devices_Properties.cpp in Sources */,
9AA9241725CD5B2E00BD5E8B /* BdsConnect.cpp in Sources */,
9AFDD0B525CE731000EEAF06 /* XString_test.cpp in Sources */,
9AA925C425CD900800BD5E8B /* posix_additions.cpp in Sources */,
@ -15794,9 +15962,11 @@
9AA9248B25CD5B2E00BD5E8B /* Nvram.cpp in Sources */,
9AA9253F25CD765000BD5E8B /* shared_with_menu.cpp in Sources */,
9AFDD0D825CEA94A00EEAF06 /* tmp.c in Sources */,
9A358B3325CF115200A3850D /* Config_ACPI_DSDT.cpp in Sources */,
9AA924DB25CD5B2E00BD5E8B /* StartupSound.cpp in Sources */,
9AA9253B25CD764900BD5E8B /* REFIT_MENU_SCREEN.cpp in Sources */,
9AA9259D25CD770F00BD5E8B /* lodepng.cpp in Sources */,
9A358B2225CF115200A3850D /* Config_SMBIOS.cpp in Sources */,
9AA925B325CD79AB00BD5E8B /* icns.cpp in Sources */,
9A36E4F424F3B537007A1107 /* plist.cpp in Sources */,
9AA924D325CD5B2E00BD5E8B /* Events.cpp in Sources */,
@ -15807,17 +15977,25 @@
9A36E4F824F3B537007A1107 /* xml.cpp in Sources */,
9A9AEB8D243F73CE00FBD7D8 /* unicode_conversions.cpp in Sources */,
9AA9258125CD770F00BD5E8B /* nanosvgrast.cpp in Sources */,
9A358B3225CF115200A3850D /* CompareSettings.cpp in Sources */,
9AA925B725CD79AB00BD5E8B /* menu.cpp in Sources */,
9AA9247725CD5B2E00BD5E8B /* kext_patcher.cpp in Sources */,
9AA925CA25CD91BC00BD5E8B /* OpenCore.c in Sources */,
9AA9253A25CD764900BD5E8B /* menu_items.cpp in Sources */,
9AA9257D25CD770F00BD5E8B /* libscreen.cpp in Sources */,
9AA925BB25CD79AB00BD5E8B /* screen.cpp in Sources */,
9A358B2025CF115200A3850D /* Config_GUI.cpp in Sources */,
9A9037E625CFE7D100F14179 /* xml_lite-test.cpp in Sources */,
9A358B3E25CF117A00A3850D /* XmlLiteParser.cpp in Sources */,
9AA924AB25CD5B2E00BD5E8B /* Net.cpp in Sources */,
9AA9248F25CD5B2E00BD5E8B /* LegacyBoot.cpp in Sources */,
9AA924FF25CD5B2E00BD5E8B /* KERNEL_AND_KEXT_PATCHES.cpp in Sources */,
9A358B3425CF115200A3850D /* Config_BootGraphics.cpp in Sources */,
9A358B2C25CF115200A3850D /* Config_Devices_USB.cpp in Sources */,
9AA9253225CD74CC00BD5E8B /* securevars.cpp in Sources */,
9AFDD05025CDBAA700EEAF06 /* MemLogLib.c in Sources */,
9A358B2425CF115200A3850D /* Config_KernelAndKextPatches.cpp in Sources */,
9A358B2825CF115200A3850D /* Config_ACPI_SSDT.cpp in Sources */,
9AA9242325CD5B2E00BD5E8B /* PlatformDriverOverride.cpp in Sources */,
9AA918C725CD4CD300BD5E8B /* BmLib.cpp in Sources */,
9AA924E725CD5B2E00BD5E8B /* gma.cpp in Sources */,
@ -15827,13 +16005,18 @@
9AA924EB25CD5B2E00BD5E8B /* kernel_patcher.cpp in Sources */,
9AA9253325CD74CC00BD5E8B /* common.cpp in Sources */,
9AFDD09925CE731000EEAF06 /* printlib-test.cpp in Sources */,
9A358B2B25CF115200A3850D /* ConfigPlist.cpp in Sources */,
9A358B2625CF115200A3850D /* Config_CPU.cpp in Sources */,
9AA9E50225CD2FF400BD5E8B /* Utils.cpp in Sources */,
9AFDD0B125CE731000EEAF06 /* strncmp_test.cpp in Sources */,
9AA925CE25CD94C600BD5E8B /* BootLog.cpp in Sources */,
9A358B3025CF115200A3850D /* Config_Graphics.cpp in Sources */,
9A36E51024F3B537007A1107 /* TagArray.cpp in Sources */,
9AA918C125CD4B7900BD5E8B /* lib.cpp in Sources */,
9A36E4F024F3B537007A1107 /* TagString8.cpp in Sources */,
9AFDD08D25CE731000EEAF06 /* plist_tests.cpp in Sources */,
9A358B2725CF115200A3850D /* Config_Devices_FakeID.cpp in Sources */,
9A358B2925CF115200A3850D /* Config_Boot.cpp in Sources */,
9AA9E53D25CD306700BD5E8B /* loader.cpp in Sources */,
9AA924C725CD5B2E00BD5E8B /* Injectors.cpp in Sources */,
9AA9258925CD770F00BD5E8B /* load_icns.cpp in Sources */,
@ -15851,6 +16034,7 @@
9AA925C025CD87B600BD5E8B /* BasicIO.cpp in Sources */,
9A838CBA25348237008303F5 /* BaseMemoryLib.c in Sources */,
9AA9259925CD770F00BD5E8B /* egemb_font.cpp in Sources */,
9A358B2A25CF115200A3850D /* Config_Devices_AddProperties.cpp in Sources */,
9A36E51424F3B537007A1107 /* TagFloat.cpp in Sources */,
9AA9259525CD770F00BD5E8B /* image.cpp in Sources */,
9A0B085E240300E000E2B470 /* Platform.cpp in Sources */,
@ -15941,7 +16125,7 @@
GCC_WARN_SHADOW = YES;
GCC_WARN_SIGN_COMPARE = YES;
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = NO;
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNKNOWN_PRAGMAS = YES;
@ -16054,7 +16238,7 @@
GCC_WARN_SHADOW = YES;
GCC_WARN_SIGN_COMPARE = YES;
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = NO;
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNKNOWN_PRAGMAS = YES;

View File

@ -11,5 +11,5 @@
#include <Efi.h>
#include "../../../rEFIt_UEFI/include/OC.h"
OC_GLOBAL_CONFIG mOpenCoreConfiguration = {0};
OC_GLOBAL_CONFIG mOpenCoreConfiguration = {{{0},{0},{0},{0}},{{0},{0}},{{0},{0}},{{0},{0},{{0},{0}},{0},{0},{0},{{0},{0},0}},{{0},{{0},{0},0,0,0,0,0,0,0,0},{0},{{0},{0},{0},0,0,0,0,0,0,{0},{0},{0},0,0},{0},{0}},{{0},{0},{0},0,0,0},{0},{0}};
OC_STORAGE_CONTEXT mOpenCoreStorage = {0};

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,8 @@
#include "../../../../../cpp_tests/Include/xcode_utf_fixed.h"
#include "ConfigSample1.h"
#include "../../../rEFIt_UEFI/Platform/ConfigPlist/ConfigPlist.h"
#include "../../../rEFIt_UEFI/Platform/ConfigPlist/CompareSettings.h"
int test1()
@ -23,19 +25,37 @@ int test1()
TagDict* dict = NULL;
EFI_STATUS Status = ParseXML(configSample1, &dict, (UINT32)strlen(configSample1));
printf("ParseXML returns %s\n", efiStrError(Status));
if ( !EFI_ERROR(Status) ) {
if ( EFI_ERROR(Status) ) {
return Status;
}
// XString8 s;
// dict->sprintf(0, &s);
// printf("%s\n", s.c_str());
SETTINGS_DATA settings;
Status = GetEarlyUserSettings(dict, settings);
printf("GetEarlyUserSettings returns %s\n", efiStrError(Status));
Status = GetUserSettings(dict, settings);
printf("GetUserSettings returns %s\n", efiStrError(Status));
SETTINGS_DATA settings;
Status = GetEarlyUserSettings(dict, settings);
printf("GetEarlyUserSettings returns %s\n", efiStrError(Status));
Status = GetUserSettings(dict, settings);
printf("GetUserSettings returns %s\n", efiStrError(Status));
bool b;
ConfigPlist configPlist;
XmlLiteParser xmlLiteParser;
xmlLiteParser.init(configSample1, strlen(configSample1));
b = configPlist.parse(&xmlLiteParser, LString8(""));
// for ( size_t idx = 0 ; idx < xmlLiteParser.getErrorsAndWarnings().size() ; idx++ ) {
// const XmlParserMessage& xmlMsg = xmlLiteParser.getErrorsAndWarnings()[idx];
// printf("%s: %s\n", xmlMsg.isError ? "Error" : "Warning", xmlMsg.msg.c_str());
// }
if ( b ) {
if ( xmlLiteParser.getErrorsAndWarnings().size() == 0 ) {
printf("Your plist looks so wonderful. Well done!\n");
}
}
return 0;
return CompareEarlyUserSettingsWithConfigPlist(settings, configPlist) ? 0 : -1;
}
@ -54,7 +74,8 @@ extern "C" int main(int argc, const char * argv[])
xcode_utf_fixed_tests();
test1();
return all_tests() ? 0 : -1 ;
return test1();
// return all_tests() ? 0 : -1 ;
}

View File

@ -1,6 +1,9 @@
#ifndef __XTOOLSCONF_H__
#define __XTOOLSCONF_H__
#include <posix.h>
#include <stdarg.h>
#include "../../../rEFIt_UEFI/Platform/Posix/abort.h"
#define xsize size_t
//#define xisize INTN
@ -23,10 +26,4 @@
#define Xrealloc(ptr, newsize, oldsize) realloc(ptr, newsize)
//#include <Platform.h>
#include <posix.h>
#include <inttypes.h>
#include "../../../rEFIt_UEFI/Platform/Posix/abort.h"
#include <Library/Base.h>
#endif

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,963 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>AutoMerge</key>
<true/>
<key>DSDT</key>
<dict>
<key>Debug</key>
<true/>
<key>Fixes</key>
<dict>
<key>AddDTGP_0001</key>
<true/>
<key>AddHDMI_8000000</key>
<true/>
<key>AddIMEI_80000</key>
<true/>
<key>AddMCHC_0008</key>
<true/>
<key>AddPNLF_1000000</key>
<true/>
<key>DeleteUnused_400000</key>
<true/>
<key>FIX_ACST_4000000</key>
<true/>
<key>FIX_ADP1_800000</key>
<true/>
<key>FIX_INTELGFX_100000</key>
<true/>
<key>FIX_RTC_20000</key>
<true/>
<key>FIX_S3D_2000000</key>
<true/>
<key>FIX_TMR_40000</key>
<true/>
<key>FIX_WAK_200000</key>
<true/>
<key>FakeLPC_0020</key>
<true/>
<key>FixAirport_4000</key>
<true/>
<key>FixDarwin</key>
<true/>
<key>FixDarwin7_10000</key>
<true/>
<key>FixDarwin_0002</key>
<true/>
<key>FixDisplay</key>
<true/>
<key>FixDisplay_0100</key>
<true/>
<key>FixFirewire_0800</key>
<true/>
<key>FixHDA_8000</key>
<true/>
<key>FixHPET_0010</key>
<true/>
<key>FixHeaders_20000000</key>
<true/>
<key>FixIDE_0200</key>
<true/>
<key>FixIPIC_0040</key>
<true/>
<key>FixLAN_2000</key>
<true/>
<key>FixRegions_10000000</key>
<true/>
<key>FixS3D</key>
<true/>
<key>FixSATA_0400</key>
<true/>
<key>FixSBUS_0080</key>
<true/>
<key>FixShutdown_0004</key>
<true/>
<key>FixUSB_1000</key>
<true/>
</dict>
<key>Name</key>
<string>aa</string>
<key>Patches</key>
<array>
<dict>
<key>Comment</key>
<string>ACPI1</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
AA==
</data>
<key>Replace</key>
<data>
AQ==
</data>
</dict>
<dict>
<key>Comment</key>
<string>ACPI2</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>
Ag==
</data>
<key>Replace</key>
<data>
Aw==
</data>
</dict>
<dict>
<key>Comment</key>
<string>change EHC1 to EH01</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
RUhDMQ==
</data>
<key>Replace</key>
<data>
RUgwMQ==
</data>
</dict>
</array>
<key>ReuseFFFF</key>
<true/>
<key>Rtc8Allowed</key>
<true/>
<key>SuspendOverride</key>
<true/>
</dict>
<key>DisableASPM</key>
<true/>
<key>DisabledAML</key>
<array>
<string>aa</string>
<string>bb</string>
</array>
<key>DropTables</key>
<array>
<dict>
<key>Signature</key>
<string>SSDT</string>
<key>TableId</key>
<string>CpuPm</string>
</dict>
</array>
<key>HaltEnabler</key>
<true/>
<key>PatchAPIC</key>
<true/>
<key>ResetAddress</key>
<string>-0</string>
<key>ResetValue</key>
<string>02</string>
<key>SSDT</key>
<dict>
<key>C3Latency</key>
<string>0xd</string>
<key>DoubleFirstState</key>
<true/>
<key>DropOem</key>
<true/>
<key>EnableC2</key>
<true/>
<key>EnableC4</key>
<true/>
<key>EnableC6</key>
<true/>
<key>EnableC7</key>
<true/>
<key>Generate</key>
<dict>
<key>CStates</key>
<true/>
<key>PStates</key>
<true/>
</dict>
<key>MaxMultiplier</key>
<integer>12</integer>
<key>MinMultiplier</key>
<integer>11</integer>
<key>PLimitDict</key>
<string>2</string>
<key>PluginType</key>
<string>1</string>
<key>UnderVoltStep</key>
<string>5</string>
<key>UseSystemIO</key>
<true/>
</dict>
<key>SortedOrder</key>
<array>
<string>dd</string>
<string>cc</string>
</array>
<key>smartUPS</key>
<true/>
</dict>
<key>Boot</key>
<dict>
<key>Arguments</key>
<string>-v arch=i386 slide=0 dart=0 -xcpm darkwake=1 npci=0x2000 nv_disable=1 cpus=1 rootless=0 debug=0x100 aa</string>
<key>BlackList</key>
<array>
<string>hh</string>
</array>
<key>CustomLogo</key>
<string>Apple</string>
<key>Debug</key>
<true/>
<key>DefaultLoader</key>
<string>ii</string>
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
<key>DisableCloverHotkeys</key>
<true/>
<key>HibernationFixup</key>
<true/>
<key>Legacy</key>
<string>LegacyBiosDefault</string>
<key>LegacyBiosDefaultEntry</key>
<integer>12</integer>
<key>NeverDoRecovery</key>
<true/>
<key>NeverHibernate</key>
<true/>
<key>NoEarlyProgress</key>
<true/>
<key>Policy</key>
<string>Allow</string>
<key>Secure</key>
<true/>
<key>SignatureFixup</key>
<true/>
<key>SkipHibernateTimeout</key>
<true/>
<key>StrictHibernate</key>
<true/>
<key>Timeout</key>
<integer>-1</integer>
<key>WhiteList</key>
<array>
<string>ff</string>
<string>gg</string>
</array>
<key>XMPDetection</key>
<integer>1</integer>
</dict>
<key>BootGraphics</key>
<dict>
<key>DefaultBackgroundColor</key>
<string>0xF1F1F1</string>
<key>EFILoginHiDPI</key>
<integer>2</integer>
<key>UIScale</key>
<integer>4</integer>
<key>flagstate</key>
<integer>3</integer>
</dict>
<key>CPU</key>
<dict>
<key>BusSpeedkHz</key>
<integer>800</integer>
<key>C2</key>
<true/>
<key>C4</key>
<true/>
<key>C6</key>
<true/>
<key>FrequencyMHz</key>
<integer>2000</integer>
<key>HWPEnable</key>
<true/>
<key>HWPValue</key>
<string>0x7</string>
<key>Latency</key>
<string>0x3</string>
<key>QEMU</key>
<true/>
<key>QPI</key>
<integer>4</integer>
<key>TDP</key>
<integer>6</integer>
<key>TurboDisable</key>
<true/>
<key>Type</key>
<string>0x5</string>
<key>UseARTFrequency</key>
<true/>
</dict>
<key>Devices</key>
<dict>
<key>AddProperties</key>
<array>
<dict>
<key>Device</key>
<string>SATA</string>
<key>Disabled</key>
<false/>
<key>Key</key>
<string>10</string>
<key>Value</key>
<integer>11</integer>
</dict>
<dict>
<key>Device</key>
<string>LPC</string>
<key>Disabled</key>
<true/>
<key>Key</key>
<string>12</string>
<key>Value</key>
<integer>13</integer>
</dict>
<dict>
<key>Device</key>
<string>SmBUS</string>
<key>Disabled</key>
<false/>
<key>Key</key>
<string>kk</string>
<key>Value</key>
<string>ll</string>
</dict>
<dict>
<key>Device</key>
<string>Firewire</string>
<key>Disabled</key>
<false/>
<key>Key</key>
<string>14</string>
<key>Value</key>
<data>
FQ==
</data>
</dict>
</array>
<key>AirportBridgeDeviceName</key>
<string>airp</string>
<key>Arbitrary</key>
<array>
<dict>
<key>Comment</key>
<string>C1</string>
<key>CustomProperties</key>
<array>
<dict>
<key>Disabled</key>
<false/>
<key>Key</key>
<string>ll</string>
<key>Value</key>
<string>mm</string>
</dict>
<dict>
<key>Disabled</key>
<true/>
<key>Key</key>
<string>nn</string>
<key>Value</key>
<integer>1</integer>
</dict>
<dict>
<key>Disabled</key>
<false/>
<key>Key</key>
<string>oo</string>
<key>Value</key>
<data>
Ag==
</data>
</dict>
</array>
<key>PciAddr</key>
<string>00:00.01</string>
</dict>
</array>
<key>Audio</key>
<dict>
<key>AFGLowPowerState</key>
<true/>
<key>Inject</key>
<string>Detect</string>
<key>ResetHDA</key>
<true/>
</dict>
<key>DisableFunctions</key>
<true/>
<key>FakeID</key>
<dict>
<key>ATI</key>
<string>0x22221002</string>
<key>IMEI</key>
<string>0x22221002</string>
<key>IntelGFX</key>
<string>0x22221002</string>
<key>LAN</key>
<string>0x22221002</string>
<key>NVidia</key>
<string>0x22221002</string>
<key>SATA</key>
<string>0x22221002</string>
<key>WIFI</key>
<string>0x22221002</string>
<key>XHCI</key>
<string>0x22221002</string>
</dict>
<key>ForceHPET</key>
<true/>
<key>Inject</key>
<true/>
<key>IntelMaxValue</key>
<true/>
<key>LpcTune</key>
<true/>
<key>NoDefaultProperties</key>
<true/>
<key>Properties</key>
<string>0001</string>
<key>SetIntelBacklight</key>
<true/>
<key>SetIntelMaxBacklight</key>
<true/>
<key>USB</key>
<dict>
<key>AddClockID</key>
<true/>
<key>FixOwnership</key>
<true/>
<key>HighCurrent</key>
<true/>
<key>Inject</key>
<true/>
</dict>
<key>UseIntelHDMI</key>
<true/>
</dict>
<key>DisableDrivers</key>
<array>
<string>Ps2KeyboardDxe</string>
<string>OsxAptioFixDrv</string>
<string>Ps2MouseDxe</string>
</array>
<key>GUI</key>
<dict>
<key>ConsoleMode</key>
<string>Max</string>
<key>Custom</key>
<dict>
<key>Entries</key>
<array>
<dict>
<key>AddArguments</key>
<string>addarg</string>
<key>Arguments</key>
<string>arg</string>
<key>BootBgColor</key>
<string>bootbgcolor</string>
<key>CustomLogo</key>
<string>Apple</string>
<key>Disabled</key>
<true/>
<key>DriveImage</key>
<string>driveimage</string>
<key>FullTitle</key>
<string>title</string>
<key>Hidden</key>
<false/>
<key>Hotkey</key>
<string>H</string>
<key>Ignore</key>
<true/>
<key>Image</key>
<string>image</string>
<key>Path</key>
<string>path</string>
<key>Settings</key>
<string>settings</string>
<key>SubEntries</key>
<array>
<dict>
<key>AddArguments</key>
<string>arg2</string>
<key>FullTitle</key>
<string>title1</string>
</dict>
<dict>
<key>AddArguments</key>
<string>arg3</string>
<key>Title</key>
<string>title2</string>
</dict>
<dict>
<key>AddArguments</key>
<string>arg4</string>
<key>FullTitle</key>
<string>title3</string>
</dict>
<dict>
<key>AddArguments</key>
<string>arg5</string>
<key>Title</key>
<string>title4</string>
</dict>
</array>
<key>Type</key>
<string>Oldest</string>
<key>Volume</key>
<string>v1</string>
<key>VolumeType</key>
<string>Internal</string>
</dict>
</array>
<key>Legacy</key>
<array>
<dict>
<key>Disabled</key>
<true/>
<key>FullTitle</key>
<string>title</string>
<key>Hidden</key>
<true/>
<key>Hotkey</key>
<string></string>
<key>Ignore</key>
<true/>
<key>Type</key>
<string>Windows</string>
<key>Volume</key>
<string>v2</string>
</dict>
</array>
<key>Tool</key>
<array>
<dict>
<key>Arguments</key>
<string>b</string>
<key>Disabled</key>
<true/>
<key>Hidden</key>
<true/>
<key>Hotkey</key>
<string>b</string>
<key>Ignore</key>
<true/>
<key>Path</key>
<string>path</string>
<key>Title</key>
<string>title</string>
<key>Volume</key>
<string>tool1</string>
</dict>
</array>
</dict>
<key>CustomIcons</key>
<true/>
<key>Hide</key>
<array>
<string>sdfsdfdf</string>
<string>sdfsfdf</string>
</array>
<key>Language</key>
<string>es:0</string>
<key>Mouse</key>
<dict>
<key>DoubleClick</key>
<integer>501</integer>
<key>Enabled</key>
<true/>
<key>Mirror</key>
<true/>
<key>Speed</key>
<integer>5</integer>
</dict>
<key>Scan</key>
<dict>
<key>Entries</key>
<true/>
<key>Kernel</key>
<string>First</string>
<key>Legacy</key>
<string>First</string>
<key>Linux</key>
<true/>
<key>Tool</key>
<true/>
</dict>
<key>ScreenResolution</key>
<string>1366x768</string>
<key>ShowOptimus</key>
<true/>
<key>TextOnly</key>
<true/>
<key>Theme</key>
<string>th</string>
</dict>
<key>Graphics</key>
<dict>
<key>ATI</key>
<array>
<dict>
<key>IOPCIPrimaryMatch</key>
<string>0x1002888</string>
<key>IOPCISubDevId</key>
<string>0x106B</string>
<key>LoadVBios</key>
<true/>
<key>Model</key>
<string>cc</string>
<key>VRAM</key>
<integer>2000</integer>
<key>VideoPorts</key>
<integer>3</integer>
</dict>
</array>
<key>BootDisplay</key>
<integer>12</integer>
<key>DualLink</key>
<integer>1</integer>
<key>EDID</key>
<dict>
<key>Custom</key>
<data>
AQID
</data>
<key>Inject</key>
<true/>
<key>ProductID</key>
<string>0x9777</string>
<key>VendorID</key>
<string>0x1007</string>
</dict>
<key>FBName</key>
<string>Exmoor</string>
<key>Inject</key>
<dict>
<key>ATI</key>
<true/>
<key>Intel</key>
<true/>
<key>NVidia</key>
<true/>
</dict>
<key>LoadVBios</key>
<true/>
<key>NVCAP</key>
<string>0304</string>
<key>NVIDIA</key>
<array>
<dict>
<key>IOPCIPrimaryMatch</key>
<string>0x10DE999</string>
<key>IOPCISubDevId</key>
<string>0x106B</string>
<key>LoadVBios</key>
<false/>
<key>Model</key>
<string>aa</string>
<key>VRAM</key>
<integer>1000</integer>
<key>VideoPorts</key>
<integer>1</integer>
</dict>
<dict>
<key>IOPCIPrimaryMatch</key>
<string>0x10DE999</string>
<key>IOPCISubDevId</key>
<string>0x106B</string>
<key>LoadVBios</key>
<true/>
<key>Model</key>
<string>bb</string>
<key>VRAM</key>
<integer>1000</integer>
<key>VideoPorts</key>
<integer>2</integer>
</dict>
</array>
<key>NvidiaGeneric</key>
<true/>
<key>NvidiaNoEFI</key>
<true/>
<key>NvidiaSingle</key>
<true/>
<key>PatchVBios</key>
<true/>
<key>PatchVBiosBytes</key>
<array>
<dict>
<key>Find</key>
<data>
AwQF
</data>
<key>Replace</key>
<data>
BgcI
</data>
</dict>
</array>
<key>VRAM</key>
<integer>1500</integer>
<key>VideoPorts</key>
<integer>2</integer>
<key>display-cfg</key>
<string>04</string>
<key>ig-platform-id</key>
<string>0x59230000</string>
</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>ATIConnectorsController</key>
<string>ATICtl</string>
<key>ATIConnectorsData</key>
<string>111213</string>
<key>ATIConnectorsPatch</key>
<string>141516</string>
<key>AppleIntelCPUPM</key>
<true/>
<key>AppleRTC</key>
<true/>
<key>BootPatches</key>
<array>
<dict>
<key>Comment</key>
<string>c3</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>
MTI=
</data>
<key>MatchBuild</key>
<string>10.12.6</string>
<key>MatchOS</key>
<string>10.12</string>
<key>Replace</key>
<data>
MzQ=
</data>
</dict>
</array>
<key>Debug</key>
<true/>
<key>DellSMBIOSPatch</key>
<true/>
<key>FakeCPUID</key>
<string>0x0306D0</string>
<key>ForceKextsToLoad</key>
<array>
<string>ForceKext</string>
</array>
<key>KernelCpu</key>
<true/>
<key>KernelLapic</key>
<true/>
<key>KernelPm</key>
<true/>
<key>KernelToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>c2</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>
ISI=
</data>
<key>MatchBuild</key>
<string>10.13.6</string>
<key>MatchOS</key>
<string>10.13</string>
<key>Replace</key>
<data>
IyQ=
</data>
</dict>
</array>
<key>KernelXCPM</key>
<true/>
<key>KextsToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>c1</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>
AQ==
</data>
<key>InfoPlistPatch</key>
<true/>
<key>MatchBuild</key>
<string>10.14.6</string>
<key>MatchOS</key>
<string>10.14</string>
<key>Name</key>
<string>k1</string>
<key>Replace</key>
<data>
Ag==
</data>
</dict>
<dict>
<key>Comment</key>
<string>IONVMeFamily IONameMatch</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
PHN0cmluZz5wY2kxNDRkLGE4MDQ8L3N0cmluZz4=
</data>
<key>InfoPlistPatch</key>
<true/>
<key>Name</key>
<string>IONVMeFamily</string>
<key>Replace</key>
<data>
PHN0cmluZz5wY2kxNDRkLGE4MDI8L3N0cmluZz4=
</data>
</dict>
</array>
</dict>
<key>RtVariables</key>
<dict>
<key>BooterConfig</key>
<string>0x1</string>
<key>CsrActiveConfig</key>
<string>0x2</string>
<key>MLB</key>
<string>12345678901234567</string>
<key>ROM</key>
<data>
MBRwYnHo
</data>
</dict>
<key>SMBIOS</key>
<dict>
<key>BiosReleaseDate</key>
<string>08/08/17</string>
<key>BiosVendor</key>
<string>Apple Inc.</string>
<key>BiosVersion</key>
<string>MBP81.88Z.004D.B00.1708080655</string>
<key>Board-ID</key>
<string>Mac-94245B3640C91C81</string>
<key>BoardManufacturer</key>
<string>Apple Inc.</string>
<key>BoardSerialNumber</key>
<string>W89135306OPDM6CAD</string>
<key>BoardType</key>
<integer>10</integer>
<key>BoardVersion</key>
<string>1.0</string>
<key>ChassisAssetTag</key>
<string>MacBook-Aluminum</string>
<key>ChassisManufacturer</key>
<string>Apple Inc.</string>
<key>ChassisType</key>
<string>0x0A</string>
<key>Family</key>
<string>MacBook Pro</string>
<key>FirmwareFeatures</key>
<string>0xC00DE137</string>
<key>FirmwareFeaturesMask</key>
<string>0xFF1FFF3F</string>
<key>LocationInChassis</key>
<string>Part Component</string>
<key>Manufacturer</key>
<string>Apple Inc.</string>
<key>Memory</key>
<dict>
<key>Channels</key>
<integer>2</integer>
<key>Modules</key>
<array>
<dict>
<key>Frequency</key>
<integer>333</integer>
<key>Part</key>
<string>Part1</string>
<key>Serial</key>
<string>Ser1</string>
<key>Size</key>
<integer>2048</integer>
<key>Slot</key>
<integer>1</integer>
<key>Type</key>
<string>DDR</string>
<key>Vendor</key>
<string>v1</string>
</dict>
<dict>
<key>Frequency</key>
<integer>366</integer>
<key>Part</key>
<string>Part2</string>
<key>Serial</key>
<string>Ser2</string>
<key>Size</key>
<integer>4096</integer>
<key>Slot</key>
<integer>2</integer>
<key>Type</key>
<string>DDR2</string>
<key>Vendor</key>
<string>v2</string>
</dict>
</array>
<key>SlotCount</key>
<integer>4</integer>
</dict>
<key>Mobile</key>
<true/>
<key>PlatformFeature</key>
<string>0xFFFF</string>
<key>ProductName</key>
<string>MacBookPro8,1</string>
<key>SerialNumber</key>
<string>W89G91VFDH2G</string>
<key>Slots</key>
<array>
<dict>
<key>Device</key>
<string>NVidia</string>
<key>ID</key>
<integer>1</integer>
<key>Name</key>
<string>APPL,sdfsdf</string>
<key>Type</key>
<integer>1</integer>
</dict>
</array>
<key>SmUUID</key>
<string>F1AB23C0-C35A-473E-BDB7-455C3A6271E8</string>
<key>Version</key>
<string>1.0</string>
</dict>
<key>SystemParameters</key>
<dict>
<key>BacklightLevel</key>
<string>2</string>
<key>CustomUUID</key>
<string>2926A57C-FF0E-4A64-980F-23483BD41969</string>
<key>ExposeSysVariables</key>
<true/>
<key>InjectKexts</key>
<string>Yes</string>
<key>InjectSystemID</key>
<true/>
<key>NoCaches</key>
<true/>
<key>NvidiaWeb</key>
<true/>
</dict>
</dict>
</plist>

View File

@ -167,6 +167,110 @@
9A838CBD25348530008303F5 /* BaseMemoryLib.c in Sources */ = {isa = PBXBuildFile; fileRef = 9A838CB925348237008303F5 /* BaseMemoryLib.c */; };
9A838CC0253485C8008303F5 /* BaseLib.c in Sources */ = {isa = PBXBuildFile; fileRef = 9A838CBF253485C8008303F5 /* BaseLib.c */; };
9A838CC3253485DC008303F5 /* DebugLib.c in Sources */ = {isa = PBXBuildFile; fileRef = 9A838CC2253485DC008303F5 /* DebugLib.c */; };
9A9037EC25D0010500F14179 /* xml_lite-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037E925D0010500F14179 /* xml_lite-test.cpp */; };
9A9037ED25D0010500F14179 /* xml_lite-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037E925D0010500F14179 /* xml_lite-test.cpp */; };
9A9037EE25D0010500F14179 /* xml_lite-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037E925D0010500F14179 /* xml_lite-test.cpp */; };
9A9037EF25D0010500F14179 /* xml_lite-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037E925D0010500F14179 /* xml_lite-test.cpp */; };
9A9037F025D0010500F14179 /* config-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037EB25D0010500F14179 /* config-test.cpp */; };
9A9037F125D0010500F14179 /* config-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037EB25D0010500F14179 /* config-test.cpp */; };
9A9037F225D0010500F14179 /* config-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037EB25D0010500F14179 /* config-test.cpp */; };
9A9037F325D0010500F14179 /* config-test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037EB25D0010500F14179 /* config-test.cpp */; };
9A90382125D0024500F14179 /* Config_GUI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F525D0024500F14179 /* Config_GUI.cpp */; };
9A90382225D0024500F14179 /* Config_GUI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F525D0024500F14179 /* Config_GUI.cpp */; };
9A90382325D0024500F14179 /* Config_GUI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F525D0024500F14179 /* Config_GUI.cpp */; };
9A90382425D0024500F14179 /* Config_GUI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F525D0024500F14179 /* Config_GUI.cpp */; };
9A90382525D0024500F14179 /* Config_RtVariables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F625D0024500F14179 /* Config_RtVariables.cpp */; };
9A90382625D0024500F14179 /* Config_RtVariables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F625D0024500F14179 /* Config_RtVariables.cpp */; };
9A90382725D0024500F14179 /* Config_RtVariables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F625D0024500F14179 /* Config_RtVariables.cpp */; };
9A90382825D0024500F14179 /* Config_RtVariables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F625D0024500F14179 /* Config_RtVariables.cpp */; };
9A90382925D0024500F14179 /* Config_SMBIOS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F725D0024500F14179 /* Config_SMBIOS.cpp */; };
9A90382A25D0024500F14179 /* Config_SMBIOS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F725D0024500F14179 /* Config_SMBIOS.cpp */; };
9A90382B25D0024500F14179 /* Config_SMBIOS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F725D0024500F14179 /* Config_SMBIOS.cpp */; };
9A90382C25D0024500F14179 /* Config_SMBIOS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037F725D0024500F14179 /* Config_SMBIOS.cpp */; };
9A90382D25D0024500F14179 /* Config_Devices_Audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FA25D0024500F14179 /* Config_Devices_Audio.cpp */; };
9A90382E25D0024500F14179 /* Config_Devices_Audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FA25D0024500F14179 /* Config_Devices_Audio.cpp */; };
9A90382F25D0024500F14179 /* Config_Devices_Audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FA25D0024500F14179 /* Config_Devices_Audio.cpp */; };
9A90383025D0024500F14179 /* Config_Devices_Audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FA25D0024500F14179 /* Config_Devices_Audio.cpp */; };
9A90383125D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FD25D0024500F14179 /* Config_KernelAndKextPatches.cpp */; };
9A90383225D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FD25D0024500F14179 /* Config_KernelAndKextPatches.cpp */; };
9A90383325D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FD25D0024500F14179 /* Config_KernelAndKextPatches.cpp */; };
9A90383425D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FD25D0024500F14179 /* Config_KernelAndKextPatches.cpp */; };
9A90383525D0024500F14179 /* Config_Quirks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FE25D0024500F14179 /* Config_Quirks.cpp */; };
9A90383625D0024500F14179 /* Config_Quirks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FE25D0024500F14179 /* Config_Quirks.cpp */; };
9A90383725D0024500F14179 /* Config_Quirks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FE25D0024500F14179 /* Config_Quirks.cpp */; };
9A90383825D0024500F14179 /* Config_Quirks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9037FE25D0024500F14179 /* Config_Quirks.cpp */; };
9A90383925D0024500F14179 /* Config_CPU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380125D0024500F14179 /* Config_CPU.cpp */; };
9A90383A25D0024500F14179 /* Config_CPU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380125D0024500F14179 /* Config_CPU.cpp */; };
9A90383B25D0024500F14179 /* Config_CPU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380125D0024500F14179 /* Config_CPU.cpp */; };
9A90383C25D0024500F14179 /* Config_CPU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380125D0024500F14179 /* Config_CPU.cpp */; };
9A90383D25D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380425D0024500F14179 /* Config_Devices_FakeID.cpp */; };
9A90383E25D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380425D0024500F14179 /* Config_Devices_FakeID.cpp */; };
9A90383F25D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380425D0024500F14179 /* Config_Devices_FakeID.cpp */; };
9A90384025D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380425D0024500F14179 /* Config_Devices_FakeID.cpp */; };
9A90384125D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380725D0024500F14179 /* Config_ACPI_SSDT.cpp */; };
9A90384225D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380725D0024500F14179 /* Config_ACPI_SSDT.cpp */; };
9A90384325D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380725D0024500F14179 /* Config_ACPI_SSDT.cpp */; };
9A90384425D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380725D0024500F14179 /* Config_ACPI_SSDT.cpp */; };
9A90384525D0024500F14179 /* Config_Boot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380825D0024500F14179 /* Config_Boot.cpp */; };
9A90384625D0024500F14179 /* Config_Boot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380825D0024500F14179 /* Config_Boot.cpp */; };
9A90384725D0024500F14179 /* Config_Boot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380825D0024500F14179 /* Config_Boot.cpp */; };
9A90384825D0024500F14179 /* Config_Boot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380825D0024500F14179 /* Config_Boot.cpp */; };
9A90384925D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380925D0024500F14179 /* Config_Devices_AddProperties.cpp */; };
9A90384A25D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380925D0024500F14179 /* Config_Devices_AddProperties.cpp */; };
9A90384B25D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380925D0024500F14179 /* Config_Devices_AddProperties.cpp */; };
9A90384C25D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380925D0024500F14179 /* Config_Devices_AddProperties.cpp */; };
9A90384D25D0024500F14179 /* ConfigPlist.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380B25D0024500F14179 /* ConfigPlist.cpp */; };
9A90384E25D0024500F14179 /* ConfigPlist.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380B25D0024500F14179 /* ConfigPlist.cpp */; };
9A90384F25D0024500F14179 /* ConfigPlist.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380B25D0024500F14179 /* ConfigPlist.cpp */; };
9A90385025D0024500F14179 /* ConfigPlist.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380B25D0024500F14179 /* ConfigPlist.cpp */; };
9A90385125D0024500F14179 /* Config_Devices_USB.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380C25D0024500F14179 /* Config_Devices_USB.cpp */; };
9A90385225D0024500F14179 /* Config_Devices_USB.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380C25D0024500F14179 /* Config_Devices_USB.cpp */; };
9A90385325D0024500F14179 /* Config_Devices_USB.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380C25D0024500F14179 /* Config_Devices_USB.cpp */; };
9A90385425D0024500F14179 /* Config_Devices_USB.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380C25D0024500F14179 /* Config_Devices_USB.cpp */; };
9A90385525D0024500F14179 /* Config_Devices.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380D25D0024500F14179 /* Config_Devices.cpp */; };
9A90385625D0024500F14179 /* Config_Devices.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380D25D0024500F14179 /* Config_Devices.cpp */; };
9A90385725D0024500F14179 /* Config_Devices.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380D25D0024500F14179 /* Config_Devices.cpp */; };
9A90385825D0024500F14179 /* Config_Devices.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90380D25D0024500F14179 /* Config_Devices.cpp */; };
9A90385925D0024500F14179 /* Config_ACPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381025D0024500F14179 /* Config_ACPI.cpp */; };
9A90385A25D0024500F14179 /* Config_ACPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381025D0024500F14179 /* Config_ACPI.cpp */; };
9A90385B25D0024500F14179 /* Config_ACPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381025D0024500F14179 /* Config_ACPI.cpp */; };
9A90385C25D0024500F14179 /* Config_ACPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381025D0024500F14179 /* Config_ACPI.cpp */; };
9A90385D25D0024500F14179 /* Config_Devices_Properties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381125D0024500F14179 /* Config_Devices_Properties.cpp */; };
9A90385E25D0024500F14179 /* Config_Devices_Properties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381125D0024500F14179 /* Config_Devices_Properties.cpp */; };
9A90385F25D0024500F14179 /* Config_Devices_Properties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381125D0024500F14179 /* Config_Devices_Properties.cpp */; };
9A90386025D0024500F14179 /* Config_Devices_Properties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381125D0024500F14179 /* Config_Devices_Properties.cpp */; };
9A90386125D0024500F14179 /* Config_Graphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381325D0024500F14179 /* Config_Graphics.cpp */; };
9A90386225D0024500F14179 /* Config_Graphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381325D0024500F14179 /* Config_Graphics.cpp */; };
9A90386325D0024500F14179 /* Config_Graphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381325D0024500F14179 /* Config_Graphics.cpp */; };
9A90386425D0024500F14179 /* Config_Graphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381325D0024500F14179 /* Config_Graphics.cpp */; };
9A90386525D0024500F14179 /* Config_SystemParameters.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381625D0024500F14179 /* Config_SystemParameters.cpp */; };
9A90386625D0024500F14179 /* Config_SystemParameters.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381625D0024500F14179 /* Config_SystemParameters.cpp */; };
9A90386725D0024500F14179 /* Config_SystemParameters.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381625D0024500F14179 /* Config_SystemParameters.cpp */; };
9A90386825D0024500F14179 /* Config_SystemParameters.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381625D0024500F14179 /* Config_SystemParameters.cpp */; };
9A90386D25D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381825D0024500F14179 /* Config_ACPI_DSDT.cpp */; };
9A90386E25D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381825D0024500F14179 /* Config_ACPI_DSDT.cpp */; };
9A90386F25D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381825D0024500F14179 /* Config_ACPI_DSDT.cpp */; };
9A90387025D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381825D0024500F14179 /* Config_ACPI_DSDT.cpp */; };
9A90387125D0024500F14179 /* Config_BootGraphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381925D0024500F14179 /* Config_BootGraphics.cpp */; };
9A90387225D0024500F14179 /* Config_BootGraphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381925D0024500F14179 /* Config_BootGraphics.cpp */; };
9A90387325D0024500F14179 /* Config_BootGraphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381925D0024500F14179 /* Config_BootGraphics.cpp */; };
9A90387425D0024500F14179 /* Config_BootGraphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381925D0024500F14179 /* Config_BootGraphics.cpp */; };
9A90387525D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381A25D0024500F14179 /* Config_Devices_Arbitrary.cpp */; };
9A90387625D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381A25D0024500F14179 /* Config_Devices_Arbitrary.cpp */; };
9A90387725D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381A25D0024500F14179 /* Config_Devices_Arbitrary.cpp */; };
9A90387825D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90381A25D0024500F14179 /* Config_Devices_Arbitrary.cpp */; };
9A90388025D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387C25D0026400F14179 /* XmlLiteCompositeTypes.cpp */; };
9A90388125D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387C25D0026400F14179 /* XmlLiteCompositeTypes.cpp */; };
9A90388225D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387C25D0026400F14179 /* XmlLiteCompositeTypes.cpp */; };
9A90388325D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387C25D0026400F14179 /* XmlLiteCompositeTypes.cpp */; };
9A90388425D0026400F14179 /* XmlLiteParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387D25D0026400F14179 /* XmlLiteParser.cpp */; };
9A90388525D0026400F14179 /* XmlLiteParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387D25D0026400F14179 /* XmlLiteParser.cpp */; };
9A90388625D0026400F14179 /* XmlLiteParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387D25D0026400F14179 /* XmlLiteParser.cpp */; };
9A90388725D0026400F14179 /* XmlLiteParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387D25D0026400F14179 /* XmlLiteParser.cpp */; };
9A90388825D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387E25D0026400F14179 /* xmlLiteSimpleTypes.cpp */; };
9A90388925D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387E25D0026400F14179 /* xmlLiteSimpleTypes.cpp */; };
9A90388A25D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387E25D0026400F14179 /* xmlLiteSimpleTypes.cpp */; };
9A90388B25D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A90387E25D0026400F14179 /* xmlLiteSimpleTypes.cpp */; };
9A9223312402FD1000483CBA /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9223302402FD1000483CBA /* main.cpp */; };
9A9AEB8D243F73CE00FBD7D8 /* unicode_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9AEB8C243F73CE00FBD7D8 /* unicode_conversions.cpp */; };
9A9AEB8E243F752C00FBD7D8 /* unicode_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9A9AEB8C243F73CE00FBD7D8 /* unicode_conversions.cpp */; };
@ -343,6 +447,60 @@
9A838CC425348610008303F5 /* OcMiscLib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OcMiscLib.h; sourceTree = "<group>"; };
9A838CC52534933F008303F5 /* Base.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Base.h; sourceTree = "<group>"; };
9A838CC62534946C008303F5 /* ProcessorBind.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProcessorBind.h; sourceTree = "<group>"; };
9A9037E825D0010500F14179 /* config-test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "config-test.h"; sourceTree = "<group>"; };
9A9037E925D0010500F14179 /* xml_lite-test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "xml_lite-test.cpp"; sourceTree = "<group>"; };
9A9037EA25D0010500F14179 /* xml_lite-test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "xml_lite-test.h"; sourceTree = "<group>"; };
9A9037EB25D0010500F14179 /* config-test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "config-test.cpp"; sourceTree = "<group>"; };
9A9037F525D0024500F14179 /* Config_GUI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_GUI.cpp; sourceTree = "<group>"; };
9A9037F625D0024500F14179 /* Config_RtVariables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_RtVariables.cpp; sourceTree = "<group>"; };
9A9037F725D0024500F14179 /* Config_SMBIOS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_SMBIOS.cpp; sourceTree = "<group>"; };
9A9037F825D0024500F14179 /* Config_KernelAndKextPatches.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_KernelAndKextPatches.h; sourceTree = "<group>"; };
9A9037F925D0024500F14179 /* Config_Graphics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Graphics.h; sourceTree = "<group>"; };
9A9037FA25D0024500F14179 /* Config_Devices_Audio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_Audio.cpp; sourceTree = "<group>"; };
9A9037FB25D0024500F14179 /* Config_ACPI_DSDT.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_ACPI_DSDT.h; sourceTree = "<group>"; };
9A9037FC25D0024500F14179 /* ConfigPlist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ConfigPlist.h; sourceTree = "<group>"; };
9A9037FD25D0024500F14179 /* Config_KernelAndKextPatches.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_KernelAndKextPatches.cpp; sourceTree = "<group>"; };
9A9037FE25D0024500F14179 /* Config_Quirks.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Quirks.cpp; sourceTree = "<group>"; };
9A9037FF25D0024500F14179 /* CompareSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CompareSettings.h; sourceTree = "<group>"; };
9A90380025D0024500F14179 /* Config_Devices_Audio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_Audio.h; sourceTree = "<group>"; };
9A90380125D0024500F14179 /* Config_CPU.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_CPU.cpp; sourceTree = "<group>"; };
9A90380225D0024500F14179 /* Config_Quirks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Quirks.h; sourceTree = "<group>"; };
9A90380325D0024500F14179 /* Config_ACPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_ACPI.h; sourceTree = "<group>"; };
9A90380425D0024500F14179 /* Config_Devices_FakeID.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_FakeID.cpp; sourceTree = "<group>"; };
9A90380525D0024500F14179 /* Config_Devices_Properties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_Properties.h; sourceTree = "<group>"; };
9A90380625D0024500F14179 /* Config_Boot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Boot.h; sourceTree = "<group>"; };
9A90380725D0024500F14179 /* Config_ACPI_SSDT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_ACPI_SSDT.cpp; sourceTree = "<group>"; };
9A90380825D0024500F14179 /* Config_Boot.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Boot.cpp; sourceTree = "<group>"; };
9A90380925D0024500F14179 /* Config_Devices_AddProperties.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_AddProperties.cpp; sourceTree = "<group>"; };
9A90380A25D0024500F14179 /* Config_Devices_Arbitrary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_Arbitrary.h; sourceTree = "<group>"; };
9A90380B25D0024500F14179 /* ConfigPlist.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ConfigPlist.cpp; sourceTree = "<group>"; };
9A90380C25D0024500F14179 /* Config_Devices_USB.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_USB.cpp; sourceTree = "<group>"; };
9A90380D25D0024500F14179 /* Config_Devices.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices.cpp; sourceTree = "<group>"; };
9A90380E25D0024500F14179 /* Config_SystemParameters.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_SystemParameters.h; sourceTree = "<group>"; };
9A90380F25D0024500F14179 /* Config_SMBIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_SMBIOS.h; sourceTree = "<group>"; };
9A90381025D0024500F14179 /* Config_ACPI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_ACPI.cpp; sourceTree = "<group>"; };
9A90381125D0024500F14179 /* Config_Devices_Properties.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_Properties.cpp; sourceTree = "<group>"; };
9A90381225D0024500F14179 /* Config_Devices.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices.h; sourceTree = "<group>"; };
9A90381325D0024500F14179 /* Config_Graphics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Graphics.cpp; sourceTree = "<group>"; };
9A90381425D0024500F14179 /* Config_CPU.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_CPU.h; sourceTree = "<group>"; };
9A90381525D0024500F14179 /* Config_BootGraphics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_BootGraphics.h; sourceTree = "<group>"; };
9A90381625D0024500F14179 /* Config_SystemParameters.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_SystemParameters.cpp; sourceTree = "<group>"; };
9A90381725D0024500F14179 /* CompareSettings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CompareSettings.cpp; sourceTree = "<group>"; };
9A90381825D0024500F14179 /* Config_ACPI_DSDT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_ACPI_DSDT.cpp; sourceTree = "<group>"; };
9A90381925D0024500F14179 /* Config_BootGraphics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_BootGraphics.cpp; sourceTree = "<group>"; };
9A90381A25D0024500F14179 /* Config_Devices_Arbitrary.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config_Devices_Arbitrary.cpp; sourceTree = "<group>"; };
9A90381B25D0024500F14179 /* Config_ACPI_SSDT.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_ACPI_SSDT.h; sourceTree = "<group>"; };
9A90381C25D0024500F14179 /* Config_GUI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_GUI.h; sourceTree = "<group>"; };
9A90381D25D0024500F14179 /* Config_RtVariables.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_RtVariables.h; sourceTree = "<group>"; };
9A90381E25D0024500F14179 /* Config_Devices_FakeID.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_FakeID.h; sourceTree = "<group>"; };
9A90381F25D0024500F14179 /* Config_Devices_USB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_USB.h; sourceTree = "<group>"; };
9A90382025D0024500F14179 /* Config_Devices_AddProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config_Devices_AddProperties.h; sourceTree = "<group>"; };
9A90387A25D0026400F14179 /* XmlLiteParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XmlLiteParser.h; sourceTree = "<group>"; };
9A90387B25D0026400F14179 /* xmlLiteSimpleTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xmlLiteSimpleTypes.h; sourceTree = "<group>"; };
9A90387C25D0026400F14179 /* XmlLiteCompositeTypes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XmlLiteCompositeTypes.cpp; sourceTree = "<group>"; };
9A90387D25D0026400F14179 /* XmlLiteParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XmlLiteParser.cpp; sourceTree = "<group>"; };
9A90387E25D0026400F14179 /* xmlLiteSimpleTypes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = xmlLiteSimpleTypes.cpp; sourceTree = "<group>"; };
9A90387F25D0026400F14179 /* XmlLiteCompositeTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XmlLiteCompositeTypes.h; sourceTree = "<group>"; };
9A92232D2402FD1000483CBA /* cpp_tests UTF16 signed char */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "cpp_tests UTF16 signed char"; sourceTree = BUILT_PRODUCTS_DIR; };
9A9223302402FD1000483CBA /* main.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
9A9AEB8B243F73CE00FBD7D8 /* unicode_conversions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = unicode_conversions.h; sourceTree = "<group>"; };
@ -424,6 +582,8 @@
children = (
9A0B08512402FE9B00E2B470 /* all_tests.cpp */,
9A0B08542402FE9B00E2B470 /* all_tests.h */,
9A9037EB25D0010500F14179 /* config-test.cpp */,
9A9037E825D0010500F14179 /* config-test.h */,
9A838CA0253423F0008303F5 /* find_replace_mask_Clover_tests.cpp */,
9A838CA2253423F0008303F5 /* find_replace_mask_Clover_tests.h */,
9A838CA3253423F0008303F5 /* find_replace_mask_OC_tests.cpp */,
@ -452,6 +612,8 @@
9A0B084E2402FE9B00E2B470 /* XArray_tests.h */,
9A670D1B24E535AB00B5D780 /* XBuffer_tests.cpp */,
9A670D1A24E535AB00B5D780 /* XBuffer_tests.h */,
9A9037E925D0010500F14179 /* xml_lite-test.cpp */,
9A9037EA25D0010500F14179 /* xml_lite-test.h */,
9A0B08522402FE9B00E2B470 /* XObjArray_tests.cpp */,
9A0B08502402FE9B00E2B470 /* XObjArray_tests.h */,
9A4FFA802451C88D0050B38B /* XString_test.cpp */,
@ -478,6 +640,7 @@
9A28CCAC241B816400F3D247 /* Platform */ = {
isa = PBXGroup;
children = (
9A9037F425D0024500F14179 /* ConfigPlist */,
9A4C5769255AAD07004F0B21 /* MacOsVersion.cpp */,
9A4C576A255AAD07004F0B21 /* MacOsVersion.h */,
9A838CB325347C36008303F5 /* MemoryOperation.c */,
@ -534,9 +697,10 @@
9A36E51C24F3B5B4007A1107 /* rEFIt_UEFI */ = {
isa = PBXGroup;
children = (
9A36E52324F3BB52007A1107 /* libeg */,
9A0B084C2402FE9B00E2B470 /* cpp_unit_test */,
9A0B08432402FE9300E2B470 /* cpp_foundation */,
9A0B084C2402FE9B00E2B470 /* cpp_unit_test */,
9A90387925D0026400F14179 /* cpp_lib */,
9A36E52324F3BB52007A1107 /* libeg */,
9AD469462452B30500D6D0DB /* gui */,
9A28CCAC241B816400F3D247 /* Platform */,
);
@ -617,6 +781,70 @@
path = Library;
sourceTree = "<group>";
};
9A9037F425D0024500F14179 /* ConfigPlist */ = {
isa = PBXGroup;
children = (
9A90381725D0024500F14179 /* CompareSettings.cpp */,
9A9037FF25D0024500F14179 /* CompareSettings.h */,
9A90381825D0024500F14179 /* Config_ACPI_DSDT.cpp */,
9A9037FB25D0024500F14179 /* Config_ACPI_DSDT.h */,
9A90380725D0024500F14179 /* Config_ACPI_SSDT.cpp */,
9A90381B25D0024500F14179 /* Config_ACPI_SSDT.h */,
9A90381025D0024500F14179 /* Config_ACPI.cpp */,
9A90380325D0024500F14179 /* Config_ACPI.h */,
9A90380825D0024500F14179 /* Config_Boot.cpp */,
9A90380625D0024500F14179 /* Config_Boot.h */,
9A90381925D0024500F14179 /* Config_BootGraphics.cpp */,
9A90381525D0024500F14179 /* Config_BootGraphics.h */,
9A90380125D0024500F14179 /* Config_CPU.cpp */,
9A90381425D0024500F14179 /* Config_CPU.h */,
9A90380925D0024500F14179 /* Config_Devices_AddProperties.cpp */,
9A90382025D0024500F14179 /* Config_Devices_AddProperties.h */,
9A90381A25D0024500F14179 /* Config_Devices_Arbitrary.cpp */,
9A90380A25D0024500F14179 /* Config_Devices_Arbitrary.h */,
9A9037FA25D0024500F14179 /* Config_Devices_Audio.cpp */,
9A90380025D0024500F14179 /* Config_Devices_Audio.h */,
9A90380425D0024500F14179 /* Config_Devices_FakeID.cpp */,
9A90381E25D0024500F14179 /* Config_Devices_FakeID.h */,
9A90381125D0024500F14179 /* Config_Devices_Properties.cpp */,
9A90380525D0024500F14179 /* Config_Devices_Properties.h */,
9A90380C25D0024500F14179 /* Config_Devices_USB.cpp */,
9A90381F25D0024500F14179 /* Config_Devices_USB.h */,
9A90380D25D0024500F14179 /* Config_Devices.cpp */,
9A90381225D0024500F14179 /* Config_Devices.h */,
9A90381325D0024500F14179 /* Config_Graphics.cpp */,
9A9037F925D0024500F14179 /* Config_Graphics.h */,
9A9037F525D0024500F14179 /* Config_GUI.cpp */,
9A90381C25D0024500F14179 /* Config_GUI.h */,
9A9037FD25D0024500F14179 /* Config_KernelAndKextPatches.cpp */,
9A9037F825D0024500F14179 /* Config_KernelAndKextPatches.h */,
9A9037FE25D0024500F14179 /* Config_Quirks.cpp */,
9A90380225D0024500F14179 /* Config_Quirks.h */,
9A9037F625D0024500F14179 /* Config_RtVariables.cpp */,
9A90381D25D0024500F14179 /* Config_RtVariables.h */,
9A9037F725D0024500F14179 /* Config_SMBIOS.cpp */,
9A90380F25D0024500F14179 /* Config_SMBIOS.h */,
9A90381625D0024500F14179 /* Config_SystemParameters.cpp */,
9A90380E25D0024500F14179 /* Config_SystemParameters.h */,
9A90380B25D0024500F14179 /* ConfigPlist.cpp */,
9A9037FC25D0024500F14179 /* ConfigPlist.h */,
);
path = ConfigPlist;
sourceTree = "<group>";
};
9A90387925D0026400F14179 /* cpp_lib */ = {
isa = PBXGroup;
children = (
9A90387A25D0026400F14179 /* XmlLiteParser.h */,
9A90387B25D0026400F14179 /* xmlLiteSimpleTypes.h */,
9A90387C25D0026400F14179 /* XmlLiteCompositeTypes.cpp */,
9A90387D25D0026400F14179 /* XmlLiteParser.cpp */,
9A90387E25D0026400F14179 /* xmlLiteSimpleTypes.cpp */,
9A90387F25D0026400F14179 /* XmlLiteCompositeTypes.h */,
);
path = cpp_lib;
sourceTree = "<group>";
};
9A9223242402FD1000483CBA = {
isa = PBXGroup;
children = (
@ -773,44 +1001,70 @@
files = (
9A36E50524F3B537007A1107 /* TagInt64.cpp in Sources */,
9A36E50124F3B537007A1107 /* TagDict.cpp in Sources */,
9A90382E25D0024500F14179 /* Config_Devices_Audio.cpp in Sources */,
9A90383E25D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */,
9AFDD0CB25CE798300EEAF06 /* MemoryOperation.c in Sources */,
9A36E50D24F3B537007A1107 /* TagData.cpp in Sources */,
9AD0358D25C57AFA00E58351 /* MemoryAllocationLib.c in Sources */,
9A90382225D0024500F14179 /* Config_GUI.cpp in Sources */,
9A4185B22439E4D600BEAFB8 /* LoadOptions_test.cpp in Sources */,
9A90388125D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */,
9A36E52D24F3C846007A1107 /* plist_tests.cpp in Sources */,
9A0B08732403B08400E2B470 /* XObjArray_tests.cpp in Sources */,
9A90387625D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */,
9A36E53D24F3EDED007A1107 /* base64.cpp in Sources */,
9A90386E25D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */,
9A90384E25D0024500F14179 /* ConfigPlist.cpp in Sources */,
9AD0359025C57BF700E58351 /* BaseLib.c in Sources */,
9A90384625D0024500F14179 /* Config_Boot.cpp in Sources */,
9A90383A25D0024500F14179 /* Config_CPU.cpp in Sources */,
9A28CD20241BB61B00F3D247 /* abort.cpp in Sources */,
9A90383225D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */,
9A90388925D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */,
9A90385A25D0024500F14179 /* Config_ACPI.cpp in Sources */,
9A4FFA842451C9740050B38B /* XString.cpp in Sources */,
9A4FFA822451C88D0050B38B /* XString_test.cpp in Sources */,
9A36E51924F3B537007A1107 /* TagKey.cpp in Sources */,
9A90382625D0024500F14179 /* Config_RtVariables.cpp in Sources */,
9A9EA7F9245AAB310076EC02 /* XToolsCommon_test.cpp in Sources */,
9A36E52724F3BB6B007A1107 /* FloatLib.cpp in Sources */,
9A4C576C255AAD07004F0B21 /* MacOsVersion.cpp in Sources */,
9A4C5772255AB280004F0B21 /* MacOsVersion_test.cpp in Sources */,
9A90386625D0024500F14179 /* Config_SystemParameters.cpp in Sources */,
9A90384225D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */,
9A838CB125345E93008303F5 /* find_replace_mask_Clover_tests.cpp in Sources */,
9A28CD23241BB61B00F3D247 /* strlen.cpp in Sources */,
9A90384A25D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */,
9A90383625D0024500F14179 /* Config_Quirks.cpp in Sources */,
9A90385625D0024500F14179 /* Config_Devices.cpp in Sources */,
9A28CD4C241F4CCE00F3D247 /* xcode_utf_fixed.cpp in Sources */,
9A90385E25D0024500F14179 /* Config_Devices_Properties.cpp in Sources */,
9A0B08742403B08400E2B470 /* main.cpp in Sources */,
9A28CD17241BACBB00F3D247 /* strlen_test.cpp in Sources */,
9A28CD0D241B8DD400F3D247 /* strcmp_test.cpp in Sources */,
9A28CD0A241B8DD400F3D247 /* strncmp_test.cpp in Sources */,
9A0B087A2403B08400E2B470 /* all_tests.cpp in Sources */,
9A9AEB8E243F752C00FBD7D8 /* unicode_conversions.cpp in Sources */,
9A90385225D0024500F14179 /* Config_Devices_USB.cpp in Sources */,
9A90386225D0024500F14179 /* Config_Graphics.cpp in Sources */,
9A0B087B2403B08400E2B470 /* global_test.cpp in Sources */,
9A36E4FD24F3B537007A1107 /* TagBool.cpp in Sources */,
9A9037ED25D0010500F14179 /* xml_lite-test.cpp in Sources */,
9A36E4F524F3B537007A1107 /* plist.cpp in Sources */,
9ACAB1192426255C00BDB3CF /* printf_lite.c in Sources */,
9A838CA7253425A3008303F5 /* DataPatcher.c in Sources */,
9A36E4F924F3B537007A1107 /* xml.cpp in Sources */,
9A90388525D0026400F14179 /* XmlLiteParser.cpp in Sources */,
9A0B087D2403B08400E2B470 /* XStringArray_test.cpp in Sources */,
9A36E51124F3B537007A1107 /* TagArray.cpp in Sources */,
9A36E4F124F3B537007A1107 /* TagString8.cpp in Sources */,
9A36E50924F3B537007A1107 /* TagDate.cpp in Sources */,
9AD0359525C57C8A00E58351 /* PrintLib.c in Sources */,
9A4185C12439F73A00BEAFB8 /* XStringArray.cpp in Sources */,
9A9037F125D0010500F14179 /* config-test.cpp in Sources */,
9A36E52024F3B82A007A1107 /* b64cdecode.cpp in Sources */,
9A90382A25D0024500F14179 /* Config_SMBIOS.cpp in Sources */,
9A90387225D0024500F14179 /* Config_BootGraphics.cpp in Sources */,
9A0B087E2403B08400E2B470 /* XArray_tests.cpp in Sources */,
9A838CBB25348530008303F5 /* BaseMemoryLib.c in Sources */,
9A670D1D24E535AB00B5D780 /* XBuffer_tests.cpp in Sources */,
@ -827,44 +1081,70 @@
files = (
9A36E50724F3B537007A1107 /* TagInt64.cpp in Sources */,
9A36E50324F3B537007A1107 /* TagDict.cpp in Sources */,
9A90383025D0024500F14179 /* Config_Devices_Audio.cpp in Sources */,
9A90384025D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */,
9AFDD0CD25CE798300EEAF06 /* MemoryOperation.c in Sources */,
9A36E50F24F3B537007A1107 /* TagData.cpp in Sources */,
9AD0358F25C57AFB00E58351 /* MemoryAllocationLib.c in Sources */,
9A90382425D0024500F14179 /* Config_GUI.cpp in Sources */,
9A2A7C6C24576CCE00422263 /* LoadOptions_test.cpp in Sources */,
9A90388325D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */,
9A36E52F24F3C846007A1107 /* plist_tests.cpp in Sources */,
9A2A7C6D24576CCE00422263 /* XObjArray_tests.cpp in Sources */,
9A90387825D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */,
9A36E53F24F3EDED007A1107 /* base64.cpp in Sources */,
9A90387025D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */,
9A90385025D0024500F14179 /* ConfigPlist.cpp in Sources */,
9AD0359225C57BF700E58351 /* BaseLib.c in Sources */,
9A90384825D0024500F14179 /* Config_Boot.cpp in Sources */,
9A90383C25D0024500F14179 /* Config_CPU.cpp in Sources */,
9A2A7C6E24576CCE00422263 /* abort.cpp in Sources */,
9A90383425D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */,
9A90388B25D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */,
9A90385C25D0024500F14179 /* Config_ACPI.cpp in Sources */,
9A2A7C6F24576CCE00422263 /* XString.cpp in Sources */,
9A2A7C7024576CCE00422263 /* XString_test.cpp in Sources */,
9A36E51B24F3B537007A1107 /* TagKey.cpp in Sources */,
9A90382825D0024500F14179 /* Config_RtVariables.cpp in Sources */,
9A9EA7FB245AAB310076EC02 /* XToolsCommon_test.cpp in Sources */,
9A36E52924F3BB6B007A1107 /* FloatLib.cpp in Sources */,
9A4C576E255AAD07004F0B21 /* MacOsVersion.cpp in Sources */,
9A4C5774255AB280004F0B21 /* MacOsVersion_test.cpp in Sources */,
9A90386825D0024500F14179 /* Config_SystemParameters.cpp in Sources */,
9A90384425D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */,
9A838CB225345E94008303F5 /* find_replace_mask_Clover_tests.cpp in Sources */,
9A2A7C7124576CCE00422263 /* strlen.cpp in Sources */,
9A90384C25D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */,
9A90383825D0024500F14179 /* Config_Quirks.cpp in Sources */,
9A90385825D0024500F14179 /* Config_Devices.cpp in Sources */,
9A2A7C7224576CCE00422263 /* xcode_utf_fixed.cpp in Sources */,
9A90386025D0024500F14179 /* Config_Devices_Properties.cpp in Sources */,
9A2A7C7324576CCE00422263 /* main.cpp in Sources */,
9A2A7C7424576CCE00422263 /* strlen_test.cpp in Sources */,
9A2A7C7524576CCE00422263 /* strcmp_test.cpp in Sources */,
9A2A7C7624576CCE00422263 /* strncmp_test.cpp in Sources */,
9A2A7C7724576CCE00422263 /* all_tests.cpp in Sources */,
9A2A7C7824576CCE00422263 /* unicode_conversions.cpp in Sources */,
9A90385425D0024500F14179 /* Config_Devices_USB.cpp in Sources */,
9A90386425D0024500F14179 /* Config_Graphics.cpp in Sources */,
9A2A7C7924576CCE00422263 /* global_test.cpp in Sources */,
9A36E4FF24F3B537007A1107 /* TagBool.cpp in Sources */,
9A9037EF25D0010500F14179 /* xml_lite-test.cpp in Sources */,
9A36E4F724F3B537007A1107 /* plist.cpp in Sources */,
9A2A7C7A24576CCE00422263 /* printf_lite.c in Sources */,
9A838CA9253425A4008303F5 /* DataPatcher.c in Sources */,
9A36E4FB24F3B537007A1107 /* xml.cpp in Sources */,
9A90388725D0026400F14179 /* XmlLiteParser.cpp in Sources */,
9A2A7C7B24576CCE00422263 /* XStringArray_test.cpp in Sources */,
9A36E51324F3B537007A1107 /* TagArray.cpp in Sources */,
9A36E4F324F3B537007A1107 /* TagString8.cpp in Sources */,
9A36E50B24F3B537007A1107 /* TagDate.cpp in Sources */,
9AD0359725C57C8A00E58351 /* PrintLib.c in Sources */,
9A2A7C7D24576CCE00422263 /* XStringArray.cpp in Sources */,
9A9037F325D0010500F14179 /* config-test.cpp in Sources */,
9A36E52224F3B82A007A1107 /* b64cdecode.cpp in Sources */,
9A90382C25D0024500F14179 /* Config_SMBIOS.cpp in Sources */,
9A90387425D0024500F14179 /* Config_BootGraphics.cpp in Sources */,
9A2A7C7E24576CCE00422263 /* XArray_tests.cpp in Sources */,
9A838CBD25348530008303F5 /* BaseMemoryLib.c in Sources */,
9A670D1F24E535AB00B5D780 /* XBuffer_tests.cpp in Sources */,
@ -881,44 +1161,70 @@
files = (
9A36E50624F3B537007A1107 /* TagInt64.cpp in Sources */,
9A36E50224F3B537007A1107 /* TagDict.cpp in Sources */,
9A90382F25D0024500F14179 /* Config_Devices_Audio.cpp in Sources */,
9A90383F25D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */,
9AFDD0CC25CE798300EEAF06 /* MemoryOperation.c in Sources */,
9A36E50E24F3B537007A1107 /* TagData.cpp in Sources */,
9AD0358E25C57AFA00E58351 /* MemoryAllocationLib.c in Sources */,
9A90382325D0024500F14179 /* Config_GUI.cpp in Sources */,
9A4185B32439E4D600BEAFB8 /* LoadOptions_test.cpp in Sources */,
9A90388225D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */,
9A36E52E24F3C846007A1107 /* plist_tests.cpp in Sources */,
9A57C21A2418B9A00029A39F /* XObjArray_tests.cpp in Sources */,
9A90387725D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */,
9A36E53E24F3EDED007A1107 /* base64.cpp in Sources */,
9A90386F25D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */,
9A90384F25D0024500F14179 /* ConfigPlist.cpp in Sources */,
9AD0359125C57BF700E58351 /* BaseLib.c in Sources */,
9A90384725D0024500F14179 /* Config_Boot.cpp in Sources */,
9A90383B25D0024500F14179 /* Config_CPU.cpp in Sources */,
9A28CD21241BB61B00F3D247 /* abort.cpp in Sources */,
9A90383325D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */,
9A90388A25D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */,
9A90385B25D0024500F14179 /* Config_ACPI.cpp in Sources */,
9A4FFA852451C9740050B38B /* XString.cpp in Sources */,
9A4FFA832451C88D0050B38B /* XString_test.cpp in Sources */,
9A36E51A24F3B537007A1107 /* TagKey.cpp in Sources */,
9A90382725D0024500F14179 /* Config_RtVariables.cpp in Sources */,
9A9EA7FA245AAB310076EC02 /* XToolsCommon_test.cpp in Sources */,
9A36E52824F3BB6B007A1107 /* FloatLib.cpp in Sources */,
9A4C576D255AAD07004F0B21 /* MacOsVersion.cpp in Sources */,
9A4C5773255AB280004F0B21 /* MacOsVersion_test.cpp in Sources */,
9A90386725D0024500F14179 /* Config_SystemParameters.cpp in Sources */,
9A90384325D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */,
9A838CB025345E93008303F5 /* find_replace_mask_Clover_tests.cpp in Sources */,
9A28CD24241BB61B00F3D247 /* strlen.cpp in Sources */,
9A90384B25D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */,
9A90383725D0024500F14179 /* Config_Quirks.cpp in Sources */,
9A90385725D0024500F14179 /* Config_Devices.cpp in Sources */,
9A28CD4D241F4CCE00F3D247 /* xcode_utf_fixed.cpp in Sources */,
9A90385F25D0024500F14179 /* Config_Devices_Properties.cpp in Sources */,
9A57C21B2418B9A00029A39F /* main.cpp in Sources */,
9A28CD18241BACBB00F3D247 /* strlen_test.cpp in Sources */,
9A28CD0E241B8DD400F3D247 /* strcmp_test.cpp in Sources */,
9A28CD0B241B8DD400F3D247 /* strncmp_test.cpp in Sources */,
9A57C2222418B9A00029A39F /* all_tests.cpp in Sources */,
9A9AEB8F243F752C00FBD7D8 /* unicode_conversions.cpp in Sources */,
9A90385325D0024500F14179 /* Config_Devices_USB.cpp in Sources */,
9A90386325D0024500F14179 /* Config_Graphics.cpp in Sources */,
9A57C2232418B9A00029A39F /* global_test.cpp in Sources */,
9A36E4FE24F3B537007A1107 /* TagBool.cpp in Sources */,
9A9037EE25D0010500F14179 /* xml_lite-test.cpp in Sources */,
9A36E4F624F3B537007A1107 /* plist.cpp in Sources */,
9ACAB11A2426255C00BDB3CF /* printf_lite.c in Sources */,
9A838CA8253425A4008303F5 /* DataPatcher.c in Sources */,
9A36E4FA24F3B537007A1107 /* xml.cpp in Sources */,
9A90388625D0026400F14179 /* XmlLiteParser.cpp in Sources */,
9A57C2252418B9A00029A39F /* XStringArray_test.cpp in Sources */,
9A36E51224F3B537007A1107 /* TagArray.cpp in Sources */,
9A36E4F224F3B537007A1107 /* TagString8.cpp in Sources */,
9A36E50A24F3B537007A1107 /* TagDate.cpp in Sources */,
9AD0359625C57C8A00E58351 /* PrintLib.c in Sources */,
9A4185C22439F73A00BEAFB8 /* XStringArray.cpp in Sources */,
9A9037F225D0010500F14179 /* config-test.cpp in Sources */,
9A36E52124F3B82A007A1107 /* b64cdecode.cpp in Sources */,
9A90382B25D0024500F14179 /* Config_SMBIOS.cpp in Sources */,
9A90387325D0024500F14179 /* Config_BootGraphics.cpp in Sources */,
9A57C2272418B9A00029A39F /* XArray_tests.cpp in Sources */,
9A838CBC25348530008303F5 /* BaseMemoryLib.c in Sources */,
9A670D1E24E535AB00B5D780 /* XBuffer_tests.cpp in Sources */,
@ -936,21 +1242,38 @@
9A36E50424F3B537007A1107 /* TagInt64.cpp in Sources */,
9A36E50024F3B537007A1107 /* TagDict.cpp in Sources */,
9A4C576B255AAD07004F0B21 /* MacOsVersion.cpp in Sources */,
9A90383925D0024500F14179 /* Config_CPU.cpp in Sources */,
9A36E50C24F3B537007A1107 /* TagData.cpp in Sources */,
9A90385925D0024500F14179 /* Config_ACPI.cpp in Sources */,
9AD0358C25C57A4500E58351 /* MemoryAllocationLib.c in Sources */,
9A0B085A2402FF8400E2B470 /* XObjArray_tests.cpp in Sources */,
9A7D518424FC32F700FA1CC3 /* XBuffer.cpp in Sources */,
9A36E52C24F3C846007A1107 /* plist_tests.cpp in Sources */,
9A90385D25D0024500F14179 /* Config_Devices_Properties.cpp in Sources */,
9A90385125D0024500F14179 /* Config_Devices_USB.cpp in Sources */,
9A9037EC25D0010500F14179 /* xml_lite-test.cpp in Sources */,
9A90388825D0026400F14179 /* xmlLiteSimpleTypes.cpp in Sources */,
9A28CD1F241BB61B00F3D247 /* abort.cpp in Sources */,
9A36E53C24F3EDED007A1107 /* base64.cpp in Sources */,
9A90385525D0024500F14179 /* Config_Devices.cpp in Sources */,
9A4FFA7E2451C8330050B38B /* XString.cpp in Sources */,
9A4FFA812451C88D0050B38B /* XString_test.cpp in Sources */,
9A90387525D0024500F14179 /* Config_Devices_Arbitrary.cpp in Sources */,
9A28CD22241BB61B00F3D247 /* strlen.cpp in Sources */,
9A90384525D0024500F14179 /* Config_Boot.cpp in Sources */,
9A838CA6253425A3008303F5 /* DataPatcher.c in Sources */,
9A90382525D0024500F14179 /* Config_RtVariables.cpp in Sources */,
9A90382125D0024500F14179 /* Config_GUI.cpp in Sources */,
9A36E51824F3B537007A1107 /* TagKey.cpp in Sources */,
9A90384125D0024500F14179 /* Config_ACPI_SSDT.cpp in Sources */,
9A9EA7F8245AAB310076EC02 /* XToolsCommon_test.cpp in Sources */,
9A90383125D0024500F14179 /* Config_KernelAndKextPatches.cpp in Sources */,
9A90383D25D0024500F14179 /* Config_Devices_FakeID.cpp in Sources */,
9A90388025D0026400F14179 /* XmlLiteCompositeTypes.cpp in Sources */,
9A36E52624F3BB6B007A1107 /* FloatLib.cpp in Sources */,
9A838CB425347C36008303F5 /* MemoryOperation.c in Sources */,
9A90387125D0024500F14179 /* Config_BootGraphics.cpp in Sources */,
9A90386525D0024500F14179 /* Config_SystemParameters.cpp in Sources */,
9A838CC0253485C8008303F5 /* BaseLib.c in Sources */,
9A838CA4253423F0008303F5 /* find_replace_mask_Clover_tests.cpp in Sources */,
9A28CD4B241F4CCE00F3D247 /* xcode_utf_fixed.cpp in Sources */,
@ -959,10 +1282,14 @@
9A28CD0C241B8DD400F3D247 /* strcmp_test.cpp in Sources */,
9A28CD09241B8DD400F3D247 /* strncmp_test.cpp in Sources */,
9A0B08592402FF8200E2B470 /* all_tests.cpp in Sources */,
9A90384D25D0024500F14179 /* ConfigPlist.cpp in Sources */,
9A90383525D0024500F14179 /* Config_Quirks.cpp in Sources */,
9A9037F025D0010500F14179 /* config-test.cpp in Sources */,
9A0B08662403144C00E2B470 /* global_test.cpp in Sources */,
9A4185B12439E4D600BEAFB8 /* LoadOptions_test.cpp in Sources */,
9ACAB117242623EE00BDB3CF /* printf_lite.c in Sources */,
9A36E4FC24F3B537007A1107 /* TagBool.cpp in Sources */,
9A90382D25D0024500F14179 /* Config_Devices_Audio.cpp in Sources */,
9A36E4F424F3B537007A1107 /* plist.cpp in Sources */,
9A0B08582402FF7F00E2B470 /* XStringArray_test.cpp in Sources */,
9A36E4F824F3B537007A1107 /* xml.cpp in Sources */,
@ -970,9 +1297,12 @@
9A838CA5253423F0008303F5 /* find_replace_mask_OC_tests.cpp in Sources */,
9A7D518524FC32F700FA1CC3 /* XRBuffer.cpp in Sources */,
9A4185C02439F73A00BEAFB8 /* XStringArray.cpp in Sources */,
9A90388425D0026400F14179 /* XmlLiteParser.cpp in Sources */,
9A36E51024F3B537007A1107 /* TagArray.cpp in Sources */,
9A90382925D0024500F14179 /* Config_SMBIOS.cpp in Sources */,
9A36E4F024F3B537007A1107 /* TagString8.cpp in Sources */,
9A4C5771255AB280004F0B21 /* MacOsVersion_test.cpp in Sources */,
9A90386125D0024500F14179 /* Config_Graphics.cpp in Sources */,
9A36E50824F3B537007A1107 /* TagDate.cpp in Sources */,
9AD0359425C57C8A00E58351 /* PrintLib.c in Sources */,
9A36E51F24F3B82A007A1107 /* b64cdecode.cpp in Sources */,
@ -982,6 +1312,8 @@
9A670D1C24E535AB00B5D780 /* XBuffer_tests.cpp in Sources */,
9AA0458A2425F94D000D6970 /* printf_lite-test.cpp in Sources */,
9A36E51424F3B537007A1107 /* TagFloat.cpp in Sources */,
9A90386D25D0024500F14179 /* Config_ACPI_DSDT.cpp in Sources */,
9A90384925D0024500F14179 /* Config_Devices_AddProperties.cpp in Sources */,
9A0B085E240300E000E2B470 /* Platform.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
@ -1129,7 +1461,7 @@
GCC_PREFIX_HEADER = "";
GCC_PREPROCESSOR_DEFINITIONS = (
JIEF_DEBUG,
UNIT_TESTS,
UNIT_TESTS_MACOS,
);
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;

View File

@ -29,7 +29,7 @@
#include <string>
#include <codecvt>
//#include "../../../Include/Library/printf_lite.h"
#include "../../../rEFIt_UEFI/Platform/BootLog.h"
/* few tests for debug purpose */
extern "C" void xcode_utf_fixed_tests()
@ -55,6 +55,9 @@ extern "C" void xcode_utf_fixed_tests()
wprintf(L"%ls\n", L"Hello world൧楔");
#endif
uint64_t uint64 = 1;
printf("Hello world൧楔 %llu error(s)\n", uint64);
DebugLog(2, "Hello world൧楔 %llu error(s)\n", uint64);
size_t len1 = wcslen(L"Hell൧楔o world൧楔");
size_t len1f = wcslen_fixed(L"Hell൧楔o world൧楔");
@ -71,6 +74,8 @@ extern "C" void xcode_utf_fixed_tests()
printf("strstr1 = %ld, strstr1f = %ld\n", strstr1-str, strstr1f-str);
}
printf("\n\n\n");
// char32_t c32 = (int)-1;
}
@ -216,6 +221,18 @@ extern "C" int printf(const char* format, ...)
#endif
return ret;
}
extern "C" int vprintf(const char* format, va_list va)
{
int ret;
#if __WCHAR_MAX__ <= 0xFFFF
char buf[4095];
ret = PRINTF_FUNCTION_NAME(PRINTF_CFUNCTION_PREFIX, vsnprint, PRINTF_CFUNCTION_SUFFIX)(buf, sizeof(buf)-1, format, va);
write(1, buf, strlen(buf));
#else
ret = vprintf(format, va);
#endif
return ret;
}
#endif
//extern "C" int snprintf(char * __restrict buf, size_t len, const char * __restrict format, ...)

View File

@ -9,6 +9,7 @@
*/
#include "AmlGenerator.h"
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
BOOLEAN aml_add_to_parent(AML_CHUNK* parent, AML_CHUNK* node)
{

View File

@ -10,7 +10,6 @@
#ifndef _AML_GENERATOR_H
#define _AML_GENERATOR_H
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
/*
static inline BOOLEAN aml_isvalidchar(char c)

View File

@ -8,49 +8,13 @@
#ifndef PLATFORM_FIXBIOSDSDT_H_
#define PLATFORM_FIXBIOSDSDT_H_
#include <OneLinerMacros.h>
extern "C" {
#include <IndustryStandard/Acpi20.h>
}
#include "../cpp_foundation/XBuffer.h"
#include "../Platform/MacOsVersion.h"
#include <IndustryStandard/Acpi20.h>
//DSDT fixes MASK
//0x00FF
#define FIX_DTGP bit(0)
#define FIX_WARNING bit(1)
#define FIX_SHUTDOWN bit(2)
#define FIX_MCHC bit(3)
#define FIX_HPET bit(4)
#define FIX_LPC bit(5)
#define FIX_IPIC bit(6)
#define FIX_SBUS bit(7)
//0xFF00
#define FIX_DISPLAY bit(8)
#define FIX_IDE bit(9)
#define FIX_SATA bit(10)
#define FIX_FIREWIRE bit(11)
#define FIX_USB bit(12)
#define FIX_LAN bit(13)
#define FIX_WIFI bit(14)
#define FIX_HDA bit(15)
//new bits 16-31 0xFFFF0000
//#define FIX_NEW_WAY bit(31) will be reused
#define FIX_DARWIN bit(16)
#define FIX_RTC bit(17)
#define FIX_TMR bit(18)
#define FIX_IMEI bit(19)
#define FIX_INTELGFX bit(20)
#define FIX_WAK bit(21)
#define FIX_UNUSED bit(22)
#define FIX_ADP1 bit(23)
#define FIX_PNLF bit(24)
#define FIX_S3D bit(25)
#define FIX_ACST bit(26)
#define FIX_HDMI bit(27)
#define FIX_REGIONS bit(28)
#define FIX_HEADERS bit(29)
#define FIX_MUTEX bit(30)
#include "../include/DsdtFixList.h"
struct _oper_region {
CHAR8 Name[8];

View File

@ -9,7 +9,7 @@
#include <Library/BaseMemoryLib.h>
#ifndef DEBUG_MEMORYOPERATION
# ifdef UNIT_TESTS
# ifdef UNIT_TESTS_MACOS
# define DEBUG_MEMORYOPERATION 0
# else
# define DEBUG_MEMORYOPERATION 1

View File

@ -5,6 +5,10 @@
# define __attribute__(x)
#endif
#ifndef __cplusplus // C doesn't know bool
#define bool unsigned char
#endif
extern bool stop_at_panic;
extern bool i_have_panicked;

View File

@ -15,6 +15,7 @@
#include "stdarg.h"
#include "stdlib.h"
#include "string.h"
#include "strings.h"
#include "wchar.h"
#include "abort.h"
#include "posix_additions.h"

View File

@ -0,0 +1,80 @@
//
// strings.c
// CloverX64
//
// Created by Jief on 01/02/2021.
//
#include "strings.h"
/*
* This array is designed for mapping upper and lower case letter
* together for a case independent comparison. The mappings are
* based upon ascii character sequences.
*/
static const unsigned char charmap[] = {
'\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007',
'\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017',
'\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027',
'\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037',
'\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047',
'\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057',
'\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067',
'\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077',
'\100', '\141', '\142', '\143', '\144', '\145', '\146', '\147',
'\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157',
'\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167',
'\170', '\171', '\172', '\133', '\134', '\135', '\136', '\137',
'\140', '\141', '\142', '\143', '\144', '\145', '\146', '\147',
'\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157',
'\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167',
'\170', '\171', '\172', '\173', '\174', '\175', '\176', '\177',
'\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
'\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217',
'\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227',
'\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237',
'\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247',
'\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257',
'\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',
'\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',
'\300', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
'\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',
'\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
'\370', '\371', '\372', '\333', '\334', '\335', '\336', '\337',
'\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
'\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',
'\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
'\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377',
};
int strncasecmp(const char* s1, const char* s2, size_t n)
{
register unsigned char u1, u2;
for (; n != 0; --n) {
u1 = (unsigned char) *s1++;
u2 = (unsigned char) *s2++;
if (charmap[u1] != charmap[u2]) {
return charmap[u1] - charmap[u2];
}
if (u1 == '\0') {
return 0;
}
}
return 0;
}
int strcasecmp(const char* s1, const char* s2)
{
register unsigned char u1, u2;
for (;;) {
u1 = (unsigned char) *s1++;
u2 = (unsigned char) *s2++;
if (charmap[u1] != charmap[u2]) {
return charmap[u1] - charmap[u2];
}
if (u1 == '\0') {
return 0;
}
}
}

View File

@ -0,0 +1,25 @@
//
// strings.h
// CloverX64
//
// Created by Jief on 01/02/2021.
//
#ifndef strings_h
#define strings_h
//#include <stdio.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
int strncasecmp(const char* s1, const char* s2, size_t n);
int strcasecmp(const char* s1, const char* s2);
#ifdef __cplusplus
}
#endif
#endif /* strings_h */

View File

@ -8,11 +8,12 @@
#ifndef PLATFORM_SELF_H_
#define PLATFORM_SELF_H_
#include <Platform.h>
#include "../cpp_foundation/XString.h"
extern "C" {
#include <Uefi/UefiSpec.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/DevicePath.h>
#include <Protocol/SimpleFileSystem.h>
}
class Self

View File

@ -8,7 +8,6 @@
#ifndef PLATFORM_SELFOEM_H_
#define PLATFORM_SELFOEM_H_
#include <Platform.h>
#include "Self.h"
class SelfOem

View File

@ -2193,6 +2193,10 @@ GetEarlyUserSettings (
// GetLegacyLanAddress = IsPropertyTrue(Prop);
// Secure boot
/* this parameter, which should be called SecureBootSetupMode, is ignored if :
* it is true
* SecureBoot is already true.
*/
Prop = BootDict->propertyForKey("Secure");
if (Prop != NULL) {
if ( Prop->isFalse() ) {
@ -2276,6 +2280,10 @@ GetEarlyUserSettings (
}
// XMP memory profiles
// -1 = do not detect
// 0 = Detect the better XMP profile
// 1 = Use first profile if present
// 2 = Use second profile
Prop = BootDict->propertyForKey("XMPDetection");
if (Prop != NULL) {
settingsData.Boot.XMPDetection = 0;

View File

@ -3,6 +3,7 @@
* 2010 mojodojo, 2012 slice
*/
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "StateGenerator.h"
#include "cpu.h"
#include "smbios.h"

View File

@ -7,8 +7,6 @@
* big thank to Islam M. Ahmed Zaid for the updating the collection
*/
//#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile //this include needed for Uefi types
//#include "ati_reg.h"
#include "../include/Pci.h"
#include "device_inject.h"
class LOADER_ENTRY;

View File

@ -93,20 +93,16 @@ long base64_decode_block(const char* code_in, const int length_in, char* plainte
* If DecodedSize != NULL, then size od decoded data is put there.
* If return value is not NULL, DecodedSize IS > 0
*/
UINT8 *Base64DecodeClover(IN CONST CHAR8 *EncodedData, OUT UINTN *DecodedSize)
UINT8 *Base64DecodeClover(IN CONST CHAR8 *EncodedData, UINTN EncodedSize, OUT UINTN *DecodedSize)
{
UINTN EncodedSize;
INTN DecodedSizeInternal;
UINT8 *DecodedData;
base64_decodestate state_in;
if (EncodedData == NULL) {
return NULL;
}
EncodedSize = strlen(EncodedData);
if (EncodedSize == 0) {
if (EncodedData == NULL || EncodedSize == 0 ) {
return NULL;
}
// to simplify, we'll allocate the same size, although smaller size is needed
DecodedData = (__typeof__(DecodedData))AllocateZeroPool(EncodedSize);
@ -125,3 +121,17 @@ UINT8 *Base64DecodeClover(IN CONST CHAR8 *EncodedData, OUT UINTN *DecodedSize)
return DecodedData;
}
/** UEFI interface to base54 decode.
* Decodes EncodedData into a new allocated buffer and returns it. Caller is responsible to FreePool() it.
* If DecodedSize != NULL, then size od decoded data is put there.
* If return value is not NULL, DecodedSize IS > 0
*/
UINT8 *Base64DecodeClover(IN CONST CHAR8 *EncodedData, OUT UINTN *DecodedSize)
{
if (EncodedData == NULL) {
return NULL;
}
return Base64DecodeClover(EncodedData, strlen(EncodedData), DecodedSize);
}

View File

@ -51,11 +51,8 @@ int base64_decode_value(char value_in);
long base64_decode_block(const char* code_in, const int length_in, char* plaintext_out, base64_decodestate* state_in);
UINT8
*Base64DecodeClover (
IN CONST CHAR8 *EncodedData,
OUT UINTN *DecodedSize
);
UINT8 *Base64DecodeClover(IN CONST CHAR8 *EncodedData, UINTN EncodedSize, OUT UINTN *DecodedSize);
UINT8 *Base64DecodeClover(IN CONST CHAR8 *EncodedData, OUT UINTN *DecodedSize);
#endif /* BASE64_CDECODE_H */

View File

@ -9,7 +9,7 @@
#define PLATFORM_PLATFORMDATA_H_
#include "../cpp_foundation/XString.h"
typedef enum {

View File

@ -8,7 +8,6 @@
#ifndef __TagDict_h__
#define __TagDict_h__
#include <Platform.h>
#include "plist.h"
class TagDict : public TagStruct

View File

@ -1,5 +1,5 @@
//
// utf8Conversion.hpp
// unicode_conversions.cpp
//
// Created by jief the 24 Feb 2020.
//

View File

@ -1,5 +1,5 @@
//
// utf8Conversion.hpp
// unicode_conversions.h
//
// Created by jief the 24 Feb 2020.
//
@ -440,4 +440,4 @@ inline size_t utf_string_from_utf_string_len(wchar_t* dst, size_t dst_max_size,
#undef wchar_cast
#endif /* utf816Conversion_hpp */
#endif /* __unicode_conversions_h__ */

View File

@ -19,6 +19,8 @@
#include "find_replace_mask_Clover_tests.h"
#include "find_replace_mask_OC_tests.h"
#include "MacOsVersion_test.h"
#include "xml_lite-test.h"
#include "config-test.h"
#if defined(JIEF_DEBUG) && defined(CLOVER_BUILD)
#include "printlib-test.h"
@ -36,45 +38,27 @@ bool all_tests()
bool all_ok = true;
int ret;
// ret = XString_tests();
#if defined(JIEF_DEBUG)
ret = xml_lite_tests();
if ( ret != 0 ) {
printf("xml_lite_tests() failed at test %d\n", ret);
all_ok = false;
}
// ret = config_plist_tests();
// if ( ret != 0 ) {
// printf("XString16_tests() failed at test %d\n", ret);
// printf("config_plist_tests() failed at test %d\n", ret);
// all_ok = false;
// }
#if defined(JIEF_DEBUG)
ret = MacOsVersion_tests();
if ( ret != 0 ) {
printf("MacOsVersion_tests() failed at test %d\n", ret);
all_ok = false;
}
ret = find_replace_mask_Clover_tests();
if ( ret != 0 ) {
printf("xml_lite_tests() failed at test %d\n", ret);
all_ok = false;
}
ret = find_replace_mask_OC_tests();
if ( ret != 0 ) {
printf("xml_lite_tests() failed at test %d\n", ret);
all_ok = false;
}
// return 1;
ret = printf_lite_tests();
if ( ret != 0 ) {
printf("printf_lite_tests() failed at test %d\n", ret);
all_ok = false;
}
// ret = XBuffer_tests();
//
// ret = XUINTN_tests();
// if ( ret != 0 ) {
// printf("XBuffer_tests() failed at test %d\n", ret);
// printf("XUINTN_tests() failed at test %d\n", ret);
// all_ok = false;
// }
//return ret;
// ret = XUINTN_tests();
// if ( ret != 0 ) {
// printf("XUINTN_tests() failed at test %d\n", ret);
// all_ok = false;
// }
#endif
#if defined(JIEF_DEBUG)
#if defined(JIEF_DEBUG) && defined(CLOVER_BUILD)
ret = printlib_tests();
if ( ret != 0 ) {
@ -149,6 +133,18 @@ bool all_tests()
printf("xml_lite_tests() failed at test %d\n", ret);
all_ok = false;
}
ret = ParseXML_tests();
if ( ret != 0 ) {
printf("plist_tests() failed at test %d\n", ret);
all_ok = false;
}
ret = MacOsVersion_tests();
if ( ret != 0 ) {
printf("MacOsVersion_tests() failed at test %d\n", ret);
all_ok = false;
}
#endif
if ( !all_ok ) {
printf("A test failed\n");

View File

@ -0,0 +1,923 @@
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "../cpp_foundation/XString.h"
#include "../cpp_foundation/XStringArray.h"
#include "../cpp_foundation/unicode_conversions.h"
#include "../Platform/plist/plist.h"
#include "../cpp_lib/xmlLiteSimpleTypes.h"
#include "../cpp_lib/XmlLiteParser.h"
#include "../Platform/ConfigPlist/ConfigPlist.h"
static const char* config_all = "\n\n\n\n\n\n\n\n\n\n\n"
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
<!DOCTYPE plist PUBLIC\"-//Apple//DTD PLIST 1.0//EN\"\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n\
<plist version=\"1.0\">\r\n\
<dict>\r\n\
<key>ACPI</key>\r\n\
<dict>\r\n\
<key>AutoMerge</key>\r\n\
<true/>\r\n\
<key>#AutoMerge1</key>\r\n\
<true/>\r\n\
<key>##AutoMerge2</key>\r\n\
<true/>\r\n\
<key>DSDT</key>\r\n\
<dict>\r\n\
<key>Debug</key>\r\n\
<true/>\r\n\
<key>Fixes</key>\r\n\
<dict>\r\n\
<key>FixDarwin</key>\r\n\
<true/>\r\n\
<key>FixDisplay</key>\r\n\
<true/>\r\n\
<key>FixS3D</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>Name</key>\r\n\
<string>aa</string>\r\n\
<key>Patches</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>ACPI1</string>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
AA==\r\n\
</data>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
AQ==\r\n\
</data>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>ACPI2</string>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
Ag==\r\n\
</data>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
Aw==\r\n\
</data>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>change EHC1 to EH01</string>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
RUhDMQ==\r\n\
</data>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
RUgwMQ==\r\n\
</data>\r\n\
</dict>\r\n\
</array>\r\n\
<key>ReuseFFFF</key>\r\n\
<true/>\r\n\
<key>Rtc8Allowed</key>\r\n\
<true/>\r\n\
<key>SuspendOverride</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>DisableASPM</key>\r\n\
<true/>\r\n\
<key>DisabledAML</key>\r\n\
<array>\r\n\
<string>aa</string>\r\n\
<string>bb</string>\r\n\
</array>\r\n\
<key>DropTables</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Signature</key>\r\n\
<string>SSDT</string>\r\n\
<key>TableId</key>\r\n\
<string>CpuPm</string>\r\n\
</dict>\r\n\
</array>\r\n\
<key>HaltEnabler</key>\r\n\
<true/>\r\n\
<key>PatchAPIC</key>\r\n\
<true/>\r\n\
<key>ResetAddress</key>\r\n\
<string>01</string>\r\n\
<key>ResetValue</key>\r\n\
<string>02</string>\r\n\
<key>SortedOrder</key>\r\n\
<array>\r\n\
<string>dd</string>\r\n\
<string>cc</string>\r\n\
</array>\r\n\
<key>smartUPS</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>Boot</key>\r\n\
<dict>\r\n\
<key>Arguments</key>\r\n\
<string>-v arch=i386 slide=0 dart=0 -xcpm darkwake=1 npci=0x2000 cpus=1 debug=0x100 aa</string>\r\n\
<key>BlackList</key>\r\n\
<array>\r\n\
<string>hh</string>\r\n\
</array>\r\n\
<key>CustomLogo</key>\r\n\
<string>Apple</string>\r\n\
<key>Debug</key>\r\n\
<true/>\r\n\
<key>DefaultLoader</key>\r\n\
<string>ii</string>\r\n\
<key>DefaultVolume</key>\r\n\
<string>LastBootedVolume</string>\r\n\
<key>DisableCloverHotkeys</key>\r\n\
<true/>\r\n\
<key>HibernationFixup</key>\r\n\
<true/>\r\n\
<key>Legacy</key>\r\n\
<string>LegacyBiosDefault</string>\r\n\
<key>LegacyBiosDefaultEntry</key>\r\n\
<integer>12</integer>\r\n\
<key>NeverDoRecovery</key>\r\n\
<true/>\r\n\
<key>NeverHibernate</key>\r\n\
<true/>\r\n\
<key>NoEarlyProgress</key>\r\n\
<true/>\r\n\
<key>Policy</key>\r\n\
<string>Allow</string>\r\n\
<key>Secure</key>\r\n\
<true/>\r\n\
<key>SignatureFixup</key>\r\n\
<true/>\r\n\
<key>SkipHibernateTimeout</key>\r\n\
<true/>\r\n\
<key>StrictHibernate</key>\r\n\
<true/>\r\n\
<key>Timeout</key>\r\n\
<integer>2</integer>\r\n\
<key>WhiteList</key>\r\n\
<array>\r\n\
<string>ff</string>\r\n\
<string>gg</string>\r\n\
</array>\r\n\
<key>XMPDetection</key>\r\n\
<integer>1</integer>\r\n\
</dict>\r\n\
<key>BootGraphics</key>\r\n\
<dict>\r\n\
<key>DefaultBackgroundColor</key>\r\n\
<string>0xF1F1F1</string>\r\n\
<key>EFILoginHiDPI</key>\r\n\
<integer>2</integer>\r\n\
<key>UIScale</key>\r\n\
<integer>4</integer>\r\n\
<key>flagstate</key>\r\n\
<integer>3</integer>\r\n\
</dict>\r\n\
<key>CPU</key>\r\n\
<dict>\r\n\
<key>BusSpeedkHz</key>\r\n\
<integer>800</integer>\r\n\
<key>C2</key>\r\n\
<true/>\r\n\
<key>C4</key>\r\n\
<true/>\r\n\
<key>C6</key>\r\n\
<true/>\r\n\
<key>FrequencyMHz</key>\r\n\
<integer>2000</integer>\r\n\
<key>HWPEnable</key>\r\n\
<true/>\r\n\
<key>HWPValue</key>\r\n\
<string>0x7</string>\r\n\
<key>Latency</key>\r\n\
<string>0x3</string>\r\n\
<key>QEMU</key>\r\n\
<true/>\r\n\
<key>QPI</key>\r\n\
<integer>4</integer>\r\n\
<key>TDP</key>\r\n\
<integer>6</integer>\r\n\
<key>TurboDisable</key>\r\n\
<true/>\r\n\
<key>Type</key>\r\n\
<string>0x5</string>\r\n\
<key>UseARTFrequency</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>Devices</key>\r\n\
<dict>\r\n\
<key>AddProperties</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Device</key>\r\n\
<string>SATA</string>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Key</key>\r\n\
<string>10</string>\r\n\
<key>Value</key>\r\n\
<integer>11</integer>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Device</key>\r\n\
<string>LPC</string>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>Key</key>\r\n\
<string>12</string>\r\n\
<key>Value</key>\r\n\
<integer>13</integer>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Device</key>\r\n\
<string>SmBUS</string>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Key</key>\r\n\
<string>kk</string>\r\n\
<key>Value</key>\r\n\
<string>ll</string>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Device</key>\r\n\
<string>Firewire</string>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Key</key>\r\n\
<string>14</string>\r\n\
<key>Value</key>\r\n\
<data>\r\n\
FQ==\r\n\
</data>\r\n\
</dict>\r\n\
</array>\r\n\
<key>AirportBridgeDeviceName</key>\r\n\
<string>airportbridge</string>\r\n\
<key>Arbitrary</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>C1</string>\r\n\
<key>CustomProperties</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Key</key>\r\n\
<string>ll</string>\r\n\
<key>Value</key>\r\n\
<string>mm</string>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>Key</key>\r\n\
<string>nn</string>\r\n\
<key>Value</key>\r\n\
<integer>1</integer>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Key</key>\r\n\
<string>oo</string>\r\n\
<key>Value</key>\r\n\
<data>\r\n\
Ag==\r\n\
</data>\r\n\
</dict>\r\n\
</array>\r\n\
<key>PciAddr</key>\r\n\
<string>00:00.01</string>\r\n\
</dict>\r\n\
</array>\r\n\
<key>Audio</key>\r\n\
<dict>\r\n\
<key>AFGLowPowerState</key>\r\n\
<true/>\r\n\
<key>Inject</key>\r\n\
<string>Detect</string>\r\n\
<key>ResetHDA</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>DisableFunctions</key>\r\n\
<integer>2</integer>\r\n\
<key>FakeID</key>\r\n\
<dict>\r\n\
<key>ATI</key>\r\n\
<string>0x22221002</string>\r\n\
<key>IMEI</key>\r\n\
<string>0x22221002</string>\r\n\
<key>IntelGFX</key>\r\n\
<string>0x22221002</string>\r\n\
<key>LAN</key>\r\n\
<string>0x22221002</string>\r\n\
<key>NVidia</key>\r\n\
<string>0x22221002</string>\r\n\
<key>SATA</key>\r\n\
<string>0x22221002</string>\r\n\
<key>WIFI</key>\r\n\
<string>0x22221002</string>\r\n\
<key>XHCI</key>\r\n\
<string>0x22221002</string>\r\n\
</dict>\r\n\
<key>ForceHPET</key>\r\n\
<true/>\r\n\
<key>Inject</key>\r\n\
<true/>\r\n\
<key>IntelMaxValue</key>\r\n\
<integer>1</integer>\r\n\
<key>NoDefaultProperties</key>\r\n\
<true/>\r\n\
<key>Properties</key>\r\n\
<string>jj\r\n\
kk</string>\r\n\
<key>SetIntelBacklight</key>\r\n\
<true/>\r\n\
<key>SetIntelMaxBacklight</key>\r\n\
<true/>\r\n\
<key>USB</key>\r\n\
<dict>\r\n\
<key>AddClockID</key>\r\n\
<true/>\r\n\
<key>FixOwnership</key>\r\n\
<true/>\r\n\
<key>HighCurrent</key>\r\n\
<true/>\r\n\
<key>Inject</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>UseIntelHDMI</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>DisableDrivers</key>\r\n\
<array>\r\n\
<string>OsxAptioFixDrv</string>\r\n\
<string>Ps2KeyboardDxe</string>\r\n\
<string>Ps2MouseDxe</string>\r\n\
</array>\r\n\
<key>GUI</key>\r\n\
<dict>\r\n\
<key>ConsoleMode</key>\r\n\
<string>Max</string>\r\n\
<key>Custom</key>\r\n\
<dict>\r\n\
<key>Entries</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>AddArguments</key>\r\n\
<string>addarg</string>\r\n\
<key>Arguments</key>\r\n\
<string>arg</string>\r\n\
<key>BootBgColor</key>\r\n\
<string>bootbgcolor</string>\r\n\
<key>CustomLogo</key>\r\n\
<string>Apple</string>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>DriveImage</key>\r\n\
<string>driveimage</string>\r\n\
<key>Title</key>\r\n\
<string>title</string>\r\n\
<key>FullTitle</key>\r\n\
<string>title</string>\r\n\
<key>Hidden</key>\r\n\
<false/>\r\n\
<key>Hotkey</key>\r\n\
<string>H</string>\r\n\
<key>Image</key>\r\n\
<string>image</string>\r\n\
<key>Path</key>\r\n\
<string>path</string>\r\n\
<key>Settings</key>\r\n\
<string>settings</string>\r\n\
<key>SubEntries</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>AddArguments</key>\r\n\
<string>arg2</string>\r\n\
<key>FullTitle</key>\r\n\
<string>title1</string>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>AddArguments</key>\r\n\
<string>arg3</string>\r\n\
<key>Title</key>\r\n\
<string>title2</string>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>AddArguments</key>\r\n\
<string>arg4</string>\r\n\
<key>FullTitle</key>\r\n\
<string>title3</string>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>AddArguments</key>\r\n\
<string>arg5</string>\r\n\
<key>Title</key>\r\n\
<string>title4</string>\r\n\
</dict>\r\n\
</array>\r\n\
<key>Type</key>\r\n\
<string>Oldest</string>\r\n\
<key>Volume</key>\r\n\
<string>v1</string>\r\n\
<key>VolumeType</key>\r\n\
<string>Internal</string>\r\n\
</dict>\r\n\
</array>\r\n\
<key>Legacy</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>FullTitle</key>\r\n\
<string>title</string>\r\n\
<key>Hidden</key>\r\n\
<true/>\r\n\
<key>Hotkey</key>\r\n\
<string>a</string>\r\n\
<key>Type</key>\r\n\
<string>Windows</string>\r\n\
<key>Volume</key>\r\n\
<string>v2</string>\r\n\
</dict>\r\n\
</array>\r\n\
<key>Tool</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Arguments</key>\r\n\
<string>b</string>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>Hidden</key>\r\n\
<true/>\r\n\
<key>Hotkey</key>\r\n\
<string>b</string>\r\n\
<key>Path</key>\r\n\
<string>path</string>\r\n\
<key>Title</key>\r\n\
<string>title</string>\r\n\
<key>Volume</key>\r\n\
<string>tool1</string>\r\n\
</dict>\r\n\
</array>\r\n\
</dict>\r\n\
<key>CustomIcons</key>\r\n\
<true/>\r\n\
<key>Hide</key>\r\n\
<array>\r\n\
<string>sdfsdfdf</string>\r\n\
<string>sdfsfdf</string>\r\n\
</array>\r\n\
<key>Language</key>\r\n\
<string>es:0</string>\r\n\
<key>Mouse</key>\r\n\
<dict>\r\n\
<key>Enabled</key>\r\n\
<true/>\r\n\
<key>Mirror</key>\r\n\
<true/>\r\n\
<key>Speed</key>\r\n\
<integer>5</integer>\r\n\
</dict>\r\n\
<key>Scan</key>\r\n\
<dict>\r\n\
<key>Entries</key>\r\n\
<true/>\r\n\
<key>Kernel</key>\r\n\
<string>First</string>\r\n\
<key>Legacy</key>\r\n\
<string>First</string>\r\n\
<key>Linux</key>\r\n\
<true/>\r\n\
<key>Tool</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>ScreenResolution</key>\r\n\
<string>1366x768</string>\r\n\
<key>ShowOptimus</key>\r\n\
<true/>\r\n\
<key>TextOnly</key>\r\n\
<true/>\r\n\
<key>Theme</key>\r\n\
<string>th</string>\r\n\
</dict>\r\n\
<key>Graphics</key>\r\n\
<dict>\r\n\
<key>ATI</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>IOPCIPrimaryMatch</key>\r\n\
<string>0x1002888</string>\r\n\
<key>IOPCISubDevId</key>\r\n\
<string>0x106B</string>\r\n\
<key>LoadVBios</key>\r\n\
<true/>\r\n\
<key>Model</key>\r\n\
<string>cc</string>\r\n\
<key>VRAM</key>\r\n\
<integer>2000</integer>\r\n\
<key>VideoPorts</key>\r\n\
<integer>3</integer>\r\n\
</dict>\r\n\
</array>\r\n\
<key>BootDisplay</key>\r\n\
<integer>12</integer>\r\n\
<key>DualLink</key>\r\n\
<integer>1</integer>\r\n\
<key>EDID</key>\r\n\
<dict>\r\n\
<key>Custom</key>\r\n\
<data>\r\n\
AQID\r\n\
</data>\r\n\
<key>Inject</key>\r\n\
<true/>\r\n\
<key>ProductID</key>\r\n\
<string>0x9777</string>\r\n\
<key>VendorID</key>\r\n\
<string>0x1007</string>\r\n\
</dict>\r\n\
<key>FBName</key>\r\n\
<string>Exmoor</string>\r\n\
<key>Inject</key>\r\n\
<dict>\r\n\
<key>ATI</key>\r\n\
<true/>\r\n\
<key>Intel</key>\r\n\
<true/>\r\n\
<key>NVidia</key>\r\n\
<true/>\r\n\
</dict>\r\n\
<key>LoadVBios</key>\r\n\
<true/>\r\n\
<key>NVCAP</key>\r\n\
<string>0304</string>\r\n\
<key>NVIDIA</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>IOPCIPrimaryMatch</key>\r\n\
<string>0x10DE999</string>\r\n\
<key>IOPCISubDevId</key>\r\n\
<string>0x106B</string>\r\n\
<key>LoadVBios</key>\r\n\
<false/>\r\n\
<key>Model</key>\r\n\
<string>aa</string>\r\n\
<key>VRAM</key>\r\n\
<integer>1000</integer>\r\n\
<key>VideoPorts</key>\r\n\
<integer>1</integer>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>IOPCIPrimaryMatch</key>\r\n\
<string>0x10DE999</string>\r\n\
<key>IOPCISubDevId</key>\r\n\
<string>0x106B</string>\r\n\
<key>LoadVBios</key>\r\n\
<true/>\r\n\
<key>Model</key>\r\n\
<string>bb</string>\r\n\
<key>VRAM</key>\r\n\
<integer>1000</integer>\r\n\
<key>VideoPorts</key>\r\n\
<integer>2</integer>\r\n\
</dict>\r\n\
</array>\r\n\
<key>NvidiaGeneric</key>\r\n\
<true/>\r\n\
<key>NvidiaNoEFI</key>\r\n\
<true/>\r\n\
<key>NvidiaSingle</key>\r\n\
<true/>\r\n\
<key>PatchVBios</key>\r\n\
<true/>\r\n\
<key>PatchVBiosBytes</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
AwQF\r\n\
</data>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
BgcI\r\n\
</data>\r\n\
</dict>\r\n\
</array>\r\n\
<key>VRAM</key>\r\n\
<integer>1500</integer>\r\n\
<key>VideoPorts</key>\r\n\
<integer>2</integer>\r\n\
<key>display-cfg</key>\r\n\
<string>04</string>\r\n\
<key>ig-platform-id</key>\r\n\
<string>0x59230000</string>\r\n\
</dict>\r\n\
<key>KernelAndKextPatches</key>\r\n\
<dict>\r\n\
<key>ATIConnectorsController</key>\r\n\
<string>ATICtl</string>\r\n\
<key>ATIConnectorsData</key>\r\n\
<string>111213</string>\r\n\
<key>ATIConnectorsPatch</key>\r\n\
<string>141516</string>\r\n\
<key>AppleIntelCPUPM</key>\r\n\
<true/>\r\n\
<key>AppleRTC</key>\r\n\
<true/>\r\n\
<key>BootPatches</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>c3</string>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
MTI=\r\n\
</data>\r\n\
<key>MatchBuild</key>\r\n\
<string>10.12.6</string>\r\n\
<key>MatchOS</key>\r\n\
<string>10.12</string>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
MzQ=\r\n\
</data>\r\n\
</dict>\r\n\
</array>\r\n\
<key>Debug</key>\r\n\
<true/>\r\n\
<key>DellSMBIOSPatch</key>\r\n\
<true/>\r\n\
<key>FakeCPUID</key>\r\n\
<string>0x0306D0</string>\r\n\
<key>ForceKextsToLoad</key>\r\n\
<array>\r\n\
<string>ForceKext</string>\r\n\
</array>\r\n\
<key>KernelLapic</key>\r\n\
<true/>\r\n\
<key>KernelPm</key>\r\n\
<true/>\r\n\
<key>KernelToPatch</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>c2</string>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
ISI=\r\n\
</data>\r\n\
<key>MatchBuild</key>\r\n\
<string>10.13.6</string>\r\n\
<key>MatchOS</key>\r\n\
<string>10.13</string>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
IyQ=\r\n\
</data>\r\n\
</dict>\r\n\
</array>\r\n\
<key>KernelXCPM</key>\r\n\
<true/>\r\n\
<key>KextsToPatch</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>c1</string>\r\n\
<key>Disabled</key>\r\n\
<true/>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
AQ==\r\n\
</data>\r\n\
<key>InfoPlistPatch</key>\r\n\
<true/>\r\n\
<key>MatchBuild</key>\r\n\
<string>10.14.6</string>\r\n\
<key>MatchOS</key>\r\n\
<string>10.14</string>\r\n\
<key>Name</key>\r\n\
<string>k1</string>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
Ag==\r\n\
</data>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Comment</key>\r\n\
<string>IONVMeFamily IONameMatch</string>\r\n\
<key>Disabled</key>\r\n\
<false/>\r\n\
<key>Find</key>\r\n\
<data>\r\n\
PHN0cmluZz5wY2kxNDRkLGE4MDQ8L3N0cmluZz4=\r\n\
</data>\r\n\
<key>InfoPlistPatch</key>\r\n\
<true/>\r\n\
<key>Name</key>\r\n\
<string>IONVMeFamily</string>\r\n\
<key>Replace</key>\r\n\
<data>\r\n\
PHN0cmluZz5wY2kxNDRkLGE4MDI8L3N0cmluZz4=\r\n\
</data>\r\n\
</dict>\r\n\
</array>\r\n\
</dict>\r\n\
<key>RtVariables</key>\r\n\
<dict>\r\n\
<key>BooterConfig</key>\r\n\
<string>0x1</string>\r\n\
<key>CsrActiveConfig</key>\r\n\
<string>0x2</string>\r\n\
<key>MLB</key>\r\n\
<string>12345678901234567</string>\r\n\
<key>ROM</key>\r\n\
<data>\r\n\
MBRwYnHo\r\n\
</data>\r\n\
</dict>\r\n\
<key>SMBIOS</key>\r\n\
<dict>\r\n\
<key>BiosReleaseDate</key>\r\n\
<string>08/08/17</string>\r\n\
<key>BiosVendor</key>\r\n\
<string>Apple Inc.</string>\r\n\
<key>BiosVersion</key>\r\n\
<string>MBP81.88Z.004D.B00.1708080655</string>\r\n\
<key>Board-ID</key>\r\n\
<string>Mac-94245B3640C91C81</string>\r\n\
<key>BoardManufacturer</key>\r\n\
<string>Apple Inc.</string>\r\n\
<key>BoardSerialNumber</key>\r\n\
<string>W89135306OPDM6CAD</string>\r\n\
<key>BoardType</key>\r\n\
<integer>10</integer>\r\n\
<key>BoardVersion</key>\r\n\
<string>1.0</string>\r\n\
<key>ChassisAssetTag</key>\r\n\
<string>MacBook-Aluminum</string>\r\n\
<key>ChassisManufacturer</key>\r\n\
<string>Apple Inc.</string>\r\n\
<key>ChassisType</key>\r\n\
<string>0x0A</string>\r\n\
<key>Family</key>\r\n\
<string>MacBook Pro</string>\r\n\
<key>FirmwareFeatures</key>\r\n\
<string>0xC00DE137</string>\r\n\
<key>FirmwareFeaturesMask</key>\r\n\
<string>0xFF1FFF3F</string>\r\n\
<key>LocationInChassis</key>\r\n\
<string>Part Component</string>\r\n\
<key>Manufacturer</key>\r\n\
<string>Apple Inc.</string>\r\n\
<key>Memory</key>\r\n\
<dict>\r\n\
<key>Channels</key>\r\n\
<integer>2</integer>\r\n\
<key>Modules</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Frequency</key>\r\n\
<integer>333</integer>\r\n\
<key>Part</key>\r\n\
<string>Part1</string>\r\n\
<key>Serial</key>\r\n\
<string>Ser1</string>\r\n\
<key>Size</key>\r\n\
<integer>2048</integer>\r\n\
<key>Slot</key>\r\n\
<integer>1</integer>\r\n\
<key>Type</key>\r\n\
<string>DDR</string>\r\n\
<key>Vendor</key>\r\n\
<string>v1</string>\r\n\
</dict>\r\n\
<dict>\r\n\
<key>Frequency</key>\r\n\
<integer>366</integer>\r\n\
<key>Part</key>\r\n\
<string>Part2</string>\r\n\
<key>Serial</key>\r\n\
<string>Ser2</string>\r\n\
<key>Size</key>\r\n\
<integer>4096</integer>\r\n\
<key>Slot</key>\r\n\
<integer>2</integer>\r\n\
<key>Type</key>\r\n\
<string>DDR2</string>\r\n\
<key>Vendor</key>\r\n\
<string>v2</string>\r\n\
</dict>\r\n\
</array>\r\n\
<key>SlotCount</key>\r\n\
<integer>4</integer>\r\n\
</dict>\r\n\
<key>Mobile</key>\r\n\
<true/>\r\n\
<key>PlatformFeature</key>\r\n\
<string>0xFFFF</string>\r\n\
<key>ProductName</key>\r\n\
<string>MacBookPro8,1</string>\r\n\
<key>SerialNumber</key>\r\n\
<string>W89G91VFDH2G</string>\r\n\
<key>Slots</key>\r\n\
<array>\r\n\
<dict>\r\n\
<key>Device</key>\r\n\
<string>NVidia</string>\r\n\
<key>ID</key>\r\n\
<integer>1</integer>\r\n\
<key>Name</key>\r\n\
<string>APPL,sdfsdf</string>\r\n\
<key>Type</key>\r\n\
<integer>1</integer>\r\n\
</dict>\r\n\
</array>\r\n\
<key>SmUUID</key>\r\n\
<string>F1AB23C0-C35A-473E-BDB7-455C3A6271E8</string>\r\n\
<key>Version</key>\r\n\
<string>1.0</string>\r\n\
</dict>\r\n\
<key>SystemParameters</key>\r\n\
<dict>\r\n\
<key>BacklightLevel</key>\r\n\
<string>2</string>\r\n\
<key>CustomUUID</key>\r\n\
<string>2926A57C-FF0E-4A64-980F-23483BD41969</string>\r\n\
<key>InjectKexts</key>\r\n\
<string>Yes</string>\r\n\
<key>InjectSystemID</key>\r\n\
<true/>\r\n\
<key>NoCaches</key>\r\n\
<true/>\r\n\
<key>NvidiaWeb</key>\r\n\
<true/>\r\n\
</dict>\r\n\
</dict>\r\n\
</plist>";
static const char* config_test =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
<!DOCTYPE plist PUBLIC\"-//Apple//DTD PLIST 1.0//EN\"\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n\
<plist version=\"1.0\">\r\n\
<dict>\r\n\
<key>ACPI</key>\r\n\
<dict>\r\n\
<key>AutoMerge</key>\r\n\
<integer>0</integer>\r\n\
</dict>\r\n\
</dict>\r\n\
</plist>";
#define RETURN_IF_FALSE(Expression) do { bool b = Expression; if ( !b ) return false; } while (0);
static int breakpoint(int i)
{
return i;
}
int config_plist_tests()
{
(void)config_all;
// int ret;
//
// const char* tag;
// size_t length;
// bool isOpeningTag, isClosingTag;
bool b;
ConfigPlist configPlistTest;
XmlLiteParser xmlLiteParser;
// xmlLiteParser.init(config_all, strlen(config_all));
xmlLiteParser.init(config_test, strlen(config_test));
b = configPlistTest.parse(&xmlLiteParser, LString8("main"));
for ( size_t idx = 0 ; idx < xmlLiteParser.getErrorsAndWarnings().size() ; idx++ ) {
if ( !xmlLiteParser.getErrorsAndWarnings()[idx].isError) printf("Warning: %s\n", xmlLiteParser.getErrorsAndWarnings()[idx].msg.c_str());
if ( xmlLiteParser.getErrorsAndWarnings()[idx].isError) printf("Error: %s\n", xmlLiteParser.getErrorsAndWarnings()[idx].msg.c_str());
}
if ( !b ) {
return breakpoint(102);
}
// if ( !configPlistTest.validate(xmlLiteParser, subXmlPath, pos, generateErrors) ) {
return 0;
}

View File

@ -0,0 +1 @@
int config_plist_tests();

View File

@ -4,7 +4,7 @@
#include "../Platform/plist/plist.h"
#ifndef _MSC_VER
const char* config_all =
static const char* config_all =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"> \
<plist version=\"1.0\"> \
@ -908,7 +908,7 @@ kk</string> \
</dict> \
</plist>";
int plist_tests()
int ParseXML_tests()
{
TagDict* dict = NULL;
EFI_STATUS Status = ParseXML(config_all, &dict, (UINT32)strlen(config_all));
@ -929,7 +929,7 @@ int plist_tests()
}
#else
int plist_tests()
int ParseXML_tests()
{
// TODO with VS, I get a string too big.
return 0;

View File

@ -1 +1 @@
int plist_tests();
int ParseXML_tests();

View File

@ -227,20 +227,21 @@ int printf_lite_tests(void)
// Check %s with width specifier
Test1arg(F("|a|"), F("|%.4s|"), "a");
Test1arg(F("|aa|"), F("|%.4s|"), "aa");
Test1arg(F("|aaa|"), F("|%.4s|"), "aaa");
Test1arg(F("|aaaa|"), F("|%.4s|"), "aaaa");
Test1arg(F("|aaaa|"), F("|%.4s|"), "aaaaa");
Test1arg(F("|aaaa|"), F("|%.4s|"), "aaaaaa");
// 2020-10 Doesn't work yet.
// Test1arg(F("|a|"), F("|%4s|"), "a");
// Test1arg(F("|aa|"), F("|%4s|"), "aa");
// Test1arg(F("|aaa|"), F("|%4s|"), "aaa");
// Test1arg(F("|aaaa|"), F("|%4s|"), "aaaa");
// Test1arg(F("|aaaa|"), F("|%4s|"), "aaaaa");
// Test1arg(F("|aaaa|"), F("|%4s|"), "aaaaaa");
// Check %ls with width specifier
Test1arg(F("|a|"), F("|%.4ls|"), L"a");
Test1arg(F("|aa|"), F("|%.4ls|"), L"aa");
Test1arg(F("|aaa|"), F("|%.4ls|"), L"aaa");
Test1arg(F("|aaaa|"), F("|%.4ls|"), L"aaaa");
Test1arg(F("|aaaa|"), F("|%.4ls|"), L"aaaaa");
Test1arg(F("|aaaa|"), F("|%.4ls|"), L"aaaaaa");
// Check %s with precision specifier
Test1arg(F("|a|"), F("|%.2s|"), "a");
Test1arg(F("|aa|"), F("|%.2s|"), "aa");
Test1arg(F("|aa|"), F("|%.2s|"), "aaa");
Test1arg(F("|aa|"), F("|%.2s|"), "aaaa");
Test1arg(F("|aa|"), F("|%.2s|"), "aaaaa");
Test1arg(F("|aa|"), F("|%.2s|"), "aaaaaa");
// These must always works. It also test that integer type are well defined
@ -267,6 +268,7 @@ int printf_lite_tests(void)
Test1arg(F("12.987654"), F("%lf"), 12.987654);
// Test rounding
Test1arg(F("10.499900"), F("%1lf"), 10.4999); // no precision specifier means 6
Test1arg(F("10"), F("%1.0lf"), 10.4999);
Test1arg(F("11"), F("%1.0lf"), 10.5001);
Test1arg(F("10.5"), F("%1.1lf"), 10.5499);

View File

@ -0,0 +1,461 @@
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "../cpp_foundation/XString.h"
#include "../cpp_foundation/XStringArray.h"
//#include "../cpp_foundation/unicode_conversions.h"
//#include "../Platform/plist/plist.h"
#include "../cpp_lib/xmlLiteSimpleTypes.h"
#include "../cpp_lib/XmlLiteCompositeTypes.h"
#include "../cpp_lib/XmlLiteParser.h"
static int breakpoint(int i)
{
return i;
}
static XmlLiteParser gXmlLiteParser;
int move_tests()
{
gXmlLiteParser.init("\n\n\n<a>\n <b></b>\n</a>\n");
while ( gXmlLiteParser.getLine() < 4 && gXmlLiteParser.moveForward() ) ;
while ( gXmlLiteParser.moveBackward() );
if ( gXmlLiteParser.getPosition().getLine() != 1 || gXmlLiteParser.getPosition().getCol() != 1 ) return 1;
return 0;
}
int getNextTag_tests()
{
const char* tag;
size_t tagLength;
bool isOpeningTag, isClosingTag;
bool b;
gXmlLiteParser.init("<key>");
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( !b ) return breakpoint(1);
if ( !isOpeningTag ) return breakpoint(2);
if ( isClosingTag ) return breakpoint(3);
if ( gXmlLiteParser.getchar() != 0 ) return breakpoint(4);
gXmlLiteParser.init("</key>");
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( !b ) return breakpoint(5);
if ( isOpeningTag ) return breakpoint(6);
if ( !isClosingTag ) return breakpoint(7);
if ( gXmlLiteParser.getchar() != 0 ) return breakpoint(8);
gXmlLiteParser.init("<key/>");
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( !b ) return breakpoint(10);
if ( !isOpeningTag ) return breakpoint(11);
if ( isClosingTag ) return breakpoint(12);
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( !b ) return breakpoint(13);
if ( isOpeningTag ) return breakpoint(14);
if ( !isClosingTag ) return breakpoint(15);
//
// Test xmlLiteParser.getErrorsAndWarnings()
//
gXmlLiteParser.init("foo1\n foo2");
gXmlLiteParser.moveForwardUntil(0);
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( b ) return breakpoint(13);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 2 col 7") ) return breakpoint(14);
gXmlLiteParser.init("foo1\n bar1");
gXmlLiteParser.moveForwardUntil('b');
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( b ) return breakpoint(13);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 2 col 3") ) return breakpoint(14);
gXmlLiteParser.init("foo1\n </foo2/>");
gXmlLiteParser.moveForwardUntil('<');
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( b ) return breakpoint(13);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 2 col 9") ) return breakpoint(14);
gXmlLiteParser.init("foo1\n </foo2");
gXmlLiteParser.moveForwardUntil('<');
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( b ) return breakpoint(13);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 2 col 11") ) return breakpoint(14);
gXmlLiteParser.init("foo1\n </foo2 >");
gXmlLiteParser.moveForwardUntil('<');
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( b ) return breakpoint(13);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 2 col 13") ) return breakpoint(14);
gXmlLiteParser.init("foo1\n\n<foo2/");
gXmlLiteParser.moveForwardUntil('/');
gXmlLiteParser.moveForwardUntilSignificant();
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( b ) return breakpoint(13);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 3 col 7") ) return breakpoint(14);
gXmlLiteParser.init("foo1\n\n <foo2/a");
gXmlLiteParser.moveForwardUntil('/');
gXmlLiteParser.moveForwardUntilSignificant();
b = gXmlLiteParser.getNextTag(&tag, &tagLength, &isOpeningTag, &isClosingTag);
if ( b ) return breakpoint(13);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 3 col 9") ) return breakpoint(14);
return 0;
}
int getSimpleTag_tests()
{
const char* tag;
size_t tagLength;
const char* value;
size_t valueLength;
bool b;
gXmlLiteParser.init("<key>k</key><string>v</string>");
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( !b ) return breakpoint(1);
if ( !strnIsEqual(tag, tagLength, "key") ) return breakpoint(2);
if ( !strnIsEqual(value, valueLength, "k") ) return breakpoint(3);
gXmlLiteParser.init("<key/>");
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( !b ) return breakpoint(1);
if ( value != NULL ) return breakpoint(3);
if ( valueLength != 0 ) return breakpoint(3);
gXmlLiteParser.init("<key></key>");
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( !b ) return breakpoint(1);
if ( value != NULL ) return breakpoint(3);
if ( valueLength != 0 ) return breakpoint(3);
gXmlLiteParser.init("<true/>");
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "true", true);
if ( !b ) return breakpoint(1);
if ( !strnIsEqual(tag, tagLength, "true") ) return breakpoint(2);
if ( value != NULL ) return breakpoint(3);
if ( valueLength != 0 ) return breakpoint(3);
gXmlLiteParser.init("<key>k<string>v</string>k</key>");
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( b ) return breakpoint(4);
//
// Test xmlLiteParser.getErrorsAndWarnings()
//
gXmlLiteParser.init("\n\n </key>k</key>");
gXmlLiteParser.moveForwardUntilSignificant();
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( b ) return breakpoint(4);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 3 col 3") ) return breakpoint(14);
gXmlLiteParser.init("\n\n <foo>k</foo>");
gXmlLiteParser.moveForwardUntilSignificant();
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( b ) return breakpoint(4);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 3 col 5") ) return breakpoint(14);
gXmlLiteParser.init("\n\n <key></key>");
gXmlLiteParser.moveForwardUntilSignificant();
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( !b ) return breakpoint(4);
if ( value != NULL ) return breakpoint(3);
if ( valueLength != 0 ) return breakpoint(3);
gXmlLiteParser.init("\n\n <key>v<key>");
gXmlLiteParser.moveForwardUntilSignificant();
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( b ) return breakpoint(4);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 3 col 11") ) return breakpoint(14);
gXmlLiteParser.init("\n\n <key>v</foo>");
gXmlLiteParser.moveForwardUntilSignificant();
b = gXmlLiteParser.getSimpleTag(&tag, &tagLength, &value, &valueLength, "key", true);
if ( b ) return breakpoint(4);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 3 col 11") ) return breakpoint(14);
return 0;
}
int getKey_tests()
{
const char* tag;
size_t length;
bool b;
XmlParserPosition xmlParserPosition;
gXmlLiteParser.init("<key></key><string>v</string>");
b = gXmlLiteParser.getKeyTagValue(&tag, &length, &xmlParserPosition, true);
if ( b ) return breakpoint(3);
gXmlLiteParser.init("<key> </key><string>v</string>");
b = gXmlLiteParser.getKeyTagValue(&tag, &length, &xmlParserPosition, true);
if ( b ) return breakpoint(4);
gXmlLiteParser.init("<key>a</key><string>v</string>");
b = gXmlLiteParser.getKeyTagValue(&tag, &length, &xmlParserPosition, true);
if ( !b ) return breakpoint(5);
if ( !strnIsEqual(tag, length, "a") ) return breakpoint(6);
gXmlLiteParser.init("<key> a </key><string>v</string>");
b = gXmlLiteParser.getKeyTagValue(&tag, &length, &xmlParserPosition, true);
if ( !b ) return breakpoint(6);
if ( !strnIsEqual(tag, length, "a") ) return breakpoint(6);
gXmlLiteParser.init("<key> a </key><string>v</string>");
b = gXmlLiteParser.getKeyTagValue(&tag, &length, &xmlParserPosition, true);
if ( !b ) return breakpoint(7);
if ( !strnIsEqual(tag, length, "a") ) return breakpoint(6);
gXmlLiteParser.init("<key>a </key><string>v</string>");
b = gXmlLiteParser.getKeyTagValue(&tag, &length, &xmlParserPosition, true);
if ( !b ) return breakpoint(8);
if ( !strnIsEqual(tag, length, "a") ) return breakpoint(6);
gXmlLiteParser.init("<key> a</key><string>v</string>");
b = gXmlLiteParser.getKeyTagValue(&tag, &length, &xmlParserPosition, true);
if ( !b ) return breakpoint(9);
if ( !strnIsEqual(tag, length, "a") ) return breakpoint(6);
return 0;
}
int skip_tests()
{
bool b;
gXmlLiteParser.init("k</key><string>v</string>");
b = gXmlLiteParser.skipUntilClosingTag("key", strlen("key"), true);
if ( !b ) return breakpoint(1);
if ( !strnIsEqual(gXmlLiteParser.getcharPtr(), strlen(gXmlLiteParser.getcharPtr()), "<string>v</string>") ) return breakpoint(2);
gXmlLiteParser.init("<string>v</string></key>foo"); // 'foo' is text after closing tag -> fail
b = gXmlLiteParser.skipUntilClosingTag("key", strlen("key"), true);
if ( b ) return breakpoint(1);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 1 col 25") ) return breakpoint(14);
gXmlLiteParser.init("<string>v</string></key><foo>"); // <foo> is the next tag -> success
b = gXmlLiteParser.skipUntilClosingTag("key", strlen("key"), true);
if ( !b ) return breakpoint(1);
if ( !strnIsEqual(gXmlLiteParser.getcharPtr(), strlen(gXmlLiteParser.getcharPtr()), "<foo>") ) return breakpoint(2);
gXmlLiteParser.init("<string>v</string></key>"); // end of file just after skipped tag -> success
b = gXmlLiteParser.skipUntilClosingTag("key", strlen("key"), true);
if ( !b ) return breakpoint(1);
if ( gXmlLiteParser.getchar() != 0 ) return breakpoint(2);
gXmlLiteParser.init("<string>v</string><foo1><foo11>bar11</foo11></foo1><foo2>bar2</foo2></key><meow>");
b = gXmlLiteParser.skipUntilClosingTag("key", strlen("key"), true);
if ( !b ) return breakpoint(1);
if ( !strnIsEqual(gXmlLiteParser.getcharPtr(), strlen(gXmlLiteParser.getcharPtr()), "<meow>") ) return breakpoint(2);
// Cannot have a tag containing chars AND subtag
gXmlLiteParser.init("\n\n\nk<string>v</string></key>");
gXmlLiteParser.moveForwardUntil('k');
b = gXmlLiteParser.skipUntilClosingTag("key", strlen("key"), true);
if ( b ) return breakpoint(2);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 4 col 2") ) return breakpoint(14);
// Cannot have a tag containing chars AND subtag
gXmlLiteParser.init("<string>v</string>k</key>");
b = gXmlLiteParser.skipUntilClosingTag("key", strlen("key"), true);
if ( b ) return breakpoint(2);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 1 col 19") ) return breakpoint(14);
// Cannot have a tag containing chars AND subtag
gXmlLiteParser.init("\n </string>v</string>k</key>");
gXmlLiteParser.moveForwardUntil('<');
b = gXmlLiteParser.skipNextTag(true);
if ( b ) return breakpoint(2);
if ( gXmlLiteParser.getErrorsAndWarnings().size() != 1 ) return breakpoint(13);
if ( !gXmlLiteParser.getErrorsAndWarnings()[0].msg.contains("line 2 col 2") ) return breakpoint(14);
return 0;
}
int xml_integer_tests()
{
// XmlAbstractType xml_int8;
// bool b;
// UINTN result;
// bool negative;
// XString8 s;
//
// xmlLiteParser.init("<integer>10</integer>");
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, 0, 12);
// if ( !b ) return breakpoint(1);
// if ( result != 10 ) return breakpoint(2);
// if ( negative ) return breakpoint(3);
//
// xmlLiteParser.init("<integer>0</integer>");
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, -2, 12);
// if ( !b ) return breakpoint(10);
// if ( result != 0 ) return breakpoint(11);
// if ( negative ) return breakpoint(12);
//
// xmlLiteParser.init("<integer>-0</integer>");
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, 0, 0);
// if ( !b ) return breakpoint(20);
// if ( result != 0 ) return breakpoint(21);
// if ( negative ) return breakpoint(22);
//
// xmlLiteParser.init("<integer>10</integer>");
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, 0, UINT64_MAX);
// if ( !b ) return breakpoint(30);
// if ( result != 10 ) return breakpoint(31);
// if ( negative ) return breakpoint(32);
//
// xmlLiteParser.init("<integer>10</integer>");
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, 0, 12);
// if ( !b ) return breakpoint(40);
// if ( result != 10 ) return breakpoint(41);
// if ( negative ) return breakpoint(42);
//
// s = S8Printf("<integer>%llu</integer>", UINT64_MAX);
// xmlLiteParser.init(s.c_str());
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, 0, UINT64_MAX);
// if ( !b ) return breakpoint(50);
// if ( result != UINT64_MAX ) return breakpoint(51);
// if ( negative ) return breakpoint(52);
//
// s = S8Printf("<integer>%lld</integer>", INT64_MIN);
// xmlLiteParser.init(s.c_str());
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, INT64_MIN, UINT64_MAX);
// if ( !b ) return breakpoint(60);
// if ( result != (UINT64)INT64_MIN ) return breakpoint(61);
// if ( !negative ) return breakpoint(62);
//
//
// xmlLiteParser.init("<integer>-1000</integer>");
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, -1000, 0);
// if ( !b ) return breakpoint(70);
// if ( result != 1000 ) return breakpoint(71);
// if ( !negative ) return breakpoint(72);
//
//
// xmlLiteParser.init("<integer>-1001</integer>");
// xmlLiteParser.init(s.c_str());
// b = xml_int8.XmlInteger::parseFromXmlLite(&xmlLiteParser, "xmlpath"_XS8, &result, &negative, -1000, 0);
// if ( b ) return breakpoint(80);
return 0;
}
class Dict1_Class : public XmlDict
{
public:
class Test1Bool: public XmlBool
{
public:
virtual bool validate(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, const XmlParserPosition& keyPos, bool generateErrors) override {
RETURN_IF_FALSE( XmlBool::validate(xmlLiteParser, xmlPath, keyPos, generateErrors) );
xmlLiteParser->addWarning(generateErrors, S8Printf("Test1Bool tag '%s:%d'.", xmlPath.c_str(), keyPos.getLine()));
return false; // parsing can continue.
}
} test1Bool = Test1Bool();
XmlDictField m_fields[1] = {
{"test1Bool", test1Bool},
};
virtual void getFields(XmlDictField** fields, size_t* nb) override { *fields = m_fields; *nb = sizeof(m_fields)/sizeof(m_fields[0]); };
};
class MainDict_Class : public XmlDict
{
public:
Dict1_Class dict1 = Dict1_Class();
virtual bool validate(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, const XmlParserPosition& keyPos, bool generateErrors) override {
RETURN_IF_FALSE( XmlDict::validate(xmlLiteParser, xmlPath, keyPos, generateErrors) );
xmlLiteParser->addWarning(generateErrors, S8Printf("Test1Bool tag '%s:%d'.", xmlPath.c_str(), keyPos.getLine()));
return false; // parsing can continue.
}
XmlDictField m_fields[1] = {
{"dict1", dict1},
};
public:
MainDict_Class() {};
virtual void getFields(XmlDictField** fields, size_t* nb) override { *fields = m_fields; *nb = sizeof(m_fields)/sizeof(m_fields[0]); };
} mainDict;
static const char* config_test =
"<dict>\r\n\
<key>dict1</key>\r\n\
<dict>\r\n\
<key>test1Bool</key>\r\n\
<true/>\r\n\
</dict>\r\n\
</dict>\r\n\
</plist>";
int xml_lite_tests()
{
int ret;
// XmlLiteParser xmlLiteParser;
bool b;
gXmlLiteParser.init(config_test);
b = mainDict.parseFromXmlLite(&gXmlLiteParser, ""_XS8, true);
for ( size_t idx = 0 ; idx < gXmlLiteParser.getErrorsAndWarnings().size() ; idx++ ) {
if ( !gXmlLiteParser.getErrorsAndWarnings()[idx].isError) printf("Warning: %s\n", gXmlLiteParser.getErrorsAndWarnings()[idx].msg.c_str());
if ( gXmlLiteParser.getErrorsAndWarnings()[idx].isError) printf("Error: %s\n", gXmlLiteParser.getErrorsAndWarnings()[idx].msg.c_str());
}
if ( !b ) return breakpoint(1);
ret = xml_integer_tests();
if ( ret ) return ret;
ret = move_tests();
if ( ret ) return ret;
ret = getNextTag_tests();
if ( ret ) return ret;
ret = getSimpleTag_tests();
if ( ret ) return ret;
ret = getKey_tests();
if ( ret ) return ret;
ret = skip_tests();
if ( ret ) return ret;
return 0;
}

View File

@ -0,0 +1 @@
int xml_lite_tests();

View File

@ -32,6 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "entry_scan.h"
#include "../refit/screen.h"
#include "../libeg/XImage.h"

View File

@ -13,3 +13,4 @@ InitBootScreen (
//CONST CHAR8 *CustomBootModeToStr(IN UINT8 Mode);
#endif //__bootscreen_h__

View File

@ -33,7 +33,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "../gui/menu_items/menu_items.h"
extern REFIT_MENU_ITEM_RETURN MenuEntryReturn;

View File

@ -33,6 +33,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "entry_scan.h"
#include "../refit/screen.h"
#include "../refit/menu.h"

View File

@ -63,7 +63,7 @@ void EnableSecureBoot(void)
UINTN CloverSignatureSize = 0;
void *CloverSignature = NULL;
// Check in setup mode
if (gSettings.Boot.SecureBoot || !gSettings.Boot.SecureBootSetupMode) {
if (GlobalConfig.Boot.SecureBoot || !gSettings.Boot.SecureBootSetupMode) {
return;
}
// Ask user if they want to use default keys
@ -148,7 +148,7 @@ CONST CHAR16 *SecureBootPolicyToStr(IN UINTN Policy)
STATIC void PrintSecureBootInfo(void)
{
// Nothing to do if secure boot is disabled or in setup mode
if (!gSettings.Boot.SecureBoot) {
if (!GlobalConfig.Boot.SecureBoot) {
DBG("Secure Boot: %s\n", (gSettings.Boot.SecureBootSetupMode ? "Setup" : "Disabled"));
} else {
// Secure boot is enabled
@ -178,7 +178,7 @@ void DisableSecureBoot(void)
EFI_STATUS Status;
CHAR16 *ErrorString = NULL;
// Check in user mode
if (gSettings.Boot.SecureBootSetupMode || !gSettings.Boot.SecureBoot) {
if (gSettings.Boot.SecureBootSetupMode || !GlobalConfig.Boot.SecureBoot) {
return;
}
UninstallSecureBoot();
@ -421,7 +421,7 @@ EFI_STATUS InstallSecureBoot(void)
}
PrintSecureBootInfo();
// Nothing to do if secure boot is disabled or in setup mode
if (!gSettings.Boot.SecureBoot || gSettings.Boot.SecureBootSetupMode) {
if (!GlobalConfig.Boot.SecureBoot || gSettings.Boot.SecureBootSetupMode) {
return EFI_SUCCESS;
}
// Locate security protocols
@ -473,14 +473,14 @@ void InitializeSecureBoot(void)
// Set secure boot variables to firmware values
UINTN Size = sizeof(gSettings.Boot.SecureBootSetupMode);
gRT->GetVariable(L"SetupMode", &gEfiGlobalVariableGuid, NULL, &Size, &gSettings.Boot.SecureBootSetupMode);
Size = sizeof(gSettings.Boot.SecureBoot);
gRT->GetVariable(L"SecureBoot", &gEfiGlobalVariableGuid, NULL, &Size, &gSettings.Boot.SecureBoot);
Size = sizeof(GlobalConfig.Boot.SecureBoot);
gRT->GetVariable(L"SecureBoot", &gEfiGlobalVariableGuid, NULL, &Size, &GlobalConfig.Boot.SecureBoot);
// Make sure that secure boot is disabled if in setup mode, this will
// allow us to specify later in settings that we want to override
// setup mode and pretend like we are in secure boot mode to enforce
// secure boot policy even when secure boot is not present/disabled.
if (gSettings.Boot.SecureBootSetupMode) {
gSettings.Boot.SecureBoot = 0;
GlobalConfig.Boot.SecureBoot = 0;
}
}

View File

@ -61,10 +61,10 @@ void AddSecureBootTool(void)
{
LOADER_ENTRY *Entry;
// If in forced mode or no secure boot then don't add tool
if (!gSettings.Boot.SecureBoot && !gSettings.Boot.SecureBootSetupMode) {
if (!GlobalConfig.Boot.SecureBoot && !gSettings.Boot.SecureBootSetupMode) {
return;
}
if (gSettings.Boot.SecureBoot) {
if (GlobalConfig.Boot.SecureBoot) {
Entry = new REFIT_MENU_ENTRY_SECURE_BOOT();
Entry->Title.SWPrintf("Clover Secure Boot Configuration");
// Entry->Tag = TAG_SECURE_BOOT_CONFIG;
@ -492,7 +492,7 @@ BOOLEAN ConfigureSecureBoot(void)
if (YesNoMessage(L"Disable Secure Boot", L"Are you sure you want to disable secure boot?")) {
DBG("User disabled secure boot\n");
DisableSecureBoot();
if (!gSettings.Boot.SecureBoot) {
if (!GlobalConfig.Boot.SecureBoot) {
return TRUE;
}
AlertMessage(L"Disable Secure Boot", L"Disabling secure boot failed!\nClover does not appear to own the PK");

View File

@ -504,8 +504,8 @@ EFI_STATUS SetSignatureDatabase(IN CHAR16 *DatabaseName,
{
EFI_STATUS Status;
// Check is valid to set database
if ((gSettings.Boot.SecureBoot && gSettings.Boot.SecureBootSetupMode) ||
(!gSettings.Boot.SecureBoot && !gSettings.Boot.SecureBootSetupMode)) {
if ((GlobalConfig.Boot.SecureBoot && gSettings.Boot.SecureBootSetupMode) ||
(!GlobalConfig.Boot.SecureBoot && !gSettings.Boot.SecureBootSetupMode)) {
return EFI_NOT_FOUND;
}
// Erase database

View File

@ -33,6 +33,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "entry_scan.h"
#include "../refit/menu.h"
#include "../refit/screen.h"

View File

@ -0,0 +1,54 @@
/*
* DsdtFixList.h
*
* Created on: Feb 6, 2021
* Author: jief
*/
#ifndef INCLUDE_DSDTFIXLIST_H_
#define INCLUDE_DSDTFIXLIST_H_
#include "../include/OneLinerMacros.h"
//DSDT fixes MASK
//0x00FF
#define FIX_DTGP bit(0)
#define FIX_WARNING bit(1)
#define FIX_SHUTDOWN bit(2)
#define FIX_MCHC bit(3)
#define FIX_HPET bit(4)
#define FIX_LPC bit(5)
#define FIX_IPIC bit(6)
#define FIX_SBUS bit(7)
//0xFF00
#define FIX_DISPLAY bit(8)
#define FIX_IDE bit(9)
#define FIX_SATA bit(10)
#define FIX_FIREWIRE bit(11)
#define FIX_USB bit(12)
#define FIX_LAN bit(13)
#define FIX_WIFI bit(14)
#define FIX_HDA bit(15)
//new bits 16-31 0xFFFF0000
//#define FIX_NEW_WAY bit(31) will be reused
#define FIX_DARWIN bit(16)
#define FIX_RTC bit(17)
#define FIX_TMR bit(18)
#define FIX_IMEI bit(19)
#define FIX_INTELGFX bit(20)
#define FIX_WAK bit(21)
#define FIX_UNUSED bit(22)
#define FIX_ADP1 bit(23)
#define FIX_PNLF bit(24)
#define FIX_S3D bit(25)
#define FIX_ACST bit(26)
#define FIX_HDMI bit(27)
#define FIX_REGIONS bit(28)
#define FIX_HEADERS bit(29)
#define FIX_MUTEX bit(30)
#endif /* INCLUDE_DSDTFIXLIST_H_ */

View File

@ -14,7 +14,7 @@
extern "C" {
#endif
#include <Library/printf_lite.h>
//#include <Library/printf_lite.h>
#include <Uefi.h>
#include <Uefi/UefiSpec.h>

View File

@ -1,3 +1,4 @@
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "XImage.h"
#include "lodepng.h"
#include "nanosvg.h"
@ -383,17 +384,25 @@ void XImage::FlipRB()
* The function converted plain array into XImage object
* Error = 0 - Success
* Error = 28 - invalid signature
* Image is emptied if there is an error.
*/
EFI_STATUS XImage::FromPNG(const UINT8 * Data, UINTN Length)
{
// DBG("XImage len=%llu\n", Length);
if (Data == NULL) return EFI_INVALID_PARAMETER;
if (Data == NULL) {
setEmpty(); // to be 100% sure
return EFI_INVALID_PARAMETER;
}
UINT8 * PixelPtr; // = (UINT8 *)&PixelData[0];
unsigned Error = eglodepng_decode(&PixelPtr, &Width, &Height, Data, Length);
if (Error != 0 && Error != 28) {
setEmpty(); // to be 100% sure
return EFI_NOT_FOUND;
}
if ( !PixelPtr ) return EFI_UNSUPPORTED; // It's possible to get error 28 and PixelPtr == NULL
if ( !PixelPtr ) {
setEmpty(); // to be 100% sure
return EFI_UNSUPPORTED; // It's possible to get error 28 and PixelPtr == NULL
}
setSizeInPixels(Width, Height);
//now we have a new pointer and want to move data
INTN NewLength = Width * Height * sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL);

View File

@ -124,7 +124,7 @@ void XPointer::KillMouse()
SimplePointerProtocol = NULL;
}
void XPointer::UpdatePointer(bool daylight)
void XPointer::UpdatePointer(bool isDaylight) // cannot be called daylight because of a global var on macOS
{
UINT64 Now;
EFI_STATUS Status;
@ -133,7 +133,7 @@ void XPointer::UpdatePointer(bool daylight)
INTN ScreenRelX;
INTN ScreenRelY;
night = !daylight;
night = !isDaylight;
// Now = gRT->GetTime(&Now, NULL);
Now = AsmReadTsc();

View File

@ -2,6 +2,8 @@
* a class to keep definitions for all theme settings
*/
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
extern "C" {
#include <Protocol/GraphicsOutput.h>
}

View File

@ -41,7 +41,6 @@
//#include <efi.h>
//#include <efilib.h>
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#if defined(_MSC_VER)

View File

@ -41,6 +41,9 @@
#include "XImage.h"
#include "../refit/lib.h"
#include "../libeg/XTheme.h"
//#include "../include/OneLinerMacros.h"
#include "../Platform/Utils.h"
#include "BmLib.h"
#ifndef DEBUG_ALL
#define DEBUG_SVG 0

View File

@ -45,8 +45,6 @@
extern "C" {
#include <Library/BaseMemoryLib.h>
}
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
//TODO exclude intersection between libeg and platform
#include "libeg.h"
#define NANOSVG_ALL_COLOR_KEYWORDS 1

View File

@ -39,6 +39,7 @@ extern "C" {
#include <Protocol/GraphicsOutput.h>
}
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include "libegint.h"
#include "nanosvg.h"
#include "VectorGraphics.h"

View File

@ -54,7 +54,7 @@
#include "../Platform/platformdata.h"
#include "../Platform/cpu.h"
#include "../Platform/Nvram.h"
#include "../Platform/FixBiosDsdt.h"
#include "../include/DsdtFixList.h"
#include "../include/Devices.h"
#include "../Platform/boot.h"
#include "../Platform/Injectors.h"