this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

CoreServices: reorganize sources, create proper sub-frameworks

+332 -134
+9 -2
cmake/use_ld64.cmake
··· 63 63 -Wl,-dylib_file,/usr/lib/libcrypto.0.9.8.dylib:${CMAKE_BINARY_DIR}/src/external/openssl/src/libcrypto.0.9.8.dylib \ 64 64 -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:${CMAKE_BINARY_DIR}/src/native/libGL.dylib \ 65 65 -Wl,-dylib_file,/System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage:${CMAKE_BINARY_DIR}/src/frameworks/CoreImage/CoreImage \ 66 - -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/FSEvents \ 67 - -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/LaunchServices \ 66 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/FSEvents/FSEvents \ 67 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/LaunchServices/LaunchServices \ 68 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/CarbonCore/CarbonCore \ 69 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/AE/AE \ 70 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/OSServices/OSServices \ 71 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/DictionaryServices/DictionaryServices \ 72 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/Metadata/Metadata \ 73 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/SearchKit/SearchKit \ 74 + -Wl,-dylib_file,/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList:${CMAKE_BINARY_DIR}/src/frameworks/CoreServices/src/SharedFileList/SharedFileList \ 68 75 -Wl,-dylib_file,/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib\ 69 76 :${CMAKE_BINARY_DIR}/src/frameworks/Accelerate/vecLib/vMisc/libvMisc.dylib \ 70 77 -Wl,-dylib_file,/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib\
+35 -70
src/frameworks/CoreServices/CMakeLists.txt
··· 7 7 ${CMAKE_SOURCE_DIR}/src/kernel/emulation/linux 8 8 ) 9 9 10 - set(CoreServices_SRCS 11 - CoreEndian.cpp 12 - Multiprocessing.cpp 13 - TextUtils.cpp 14 - MacMemory.cpp 15 - MacLocales.cpp 16 - UnicodeUtilities.cpp 17 - Gestalt.cpp 18 - FileManager.cpp 19 - DateTimeUtils.cpp 20 - FixMath.cpp 21 - ToolUtils.cpp 22 - Math64.cpp 23 - DriverSynchronization.cpp 24 - DriverServices.cpp 25 - Components.cpp 26 - Processes.cpp 27 - LaunchServices.cpp 28 - OpenTransport.cpp 29 - Timer.cpp 30 - CoreServicesPriv.cpp 31 - TextCommon.cpp 32 - TextEncodingConverter.cpp 33 - MDQuery.c 34 - LSApplicationProxy.m 35 - LSApplicationWorkspace.m 36 - constants.m 37 - ComponentManager.cpp 38 - Files.cpp 39 - Resources.cpp 40 - ResourcesImpl.cpp 41 - MacErrors.cpp 42 - UserBreak.cpp 43 - ) 44 - 45 10 set(DYLIB_COMPAT_VERSION "1.0.0") 46 11 set(DYLIB_CURRENT_VERSION "1239.200.12") 47 - add_framework(FSEvents 48 - FAT 49 - CURRENT_VERSION 50 - VERSION "A" 51 - PARENT "CoreServices" 52 - SOURCES 53 - src/FSEvents/FSEvents.m 54 - src/FSEvents/FSEventsImpl.m 55 - DEPENDENCIES 56 - CoreFoundation 57 - Foundation 58 - system 59 - ) 60 12 61 - set(DYLIB_COMPAT_VERSION "1.0.0") 62 - set(DYLIB_CURRENT_VERSION "945.0.0") 63 - add_framework(LaunchServices 64 - FAT 65 - CURRENT_VERSION 66 - VERSION "A" 67 - PARENT "CoreServices" 68 - SOURCES 69 - src/LaunchServices/LaunchServices.c 70 - DEPENDENCIES 71 - CoreFoundation 72 - system 73 - ) 13 + add_subdirectory(src/AE) 14 + add_subdirectory(src/CarbonCore) 15 + add_subdirectory(src/DictionaryServices) 16 + add_subdirectory(src/FSEvents) 17 + add_subdirectory(src/LaunchServices) 18 + add_subdirectory(src/Metadata) 19 + add_subdirectory(src/OSServices) 20 + add_subdirectory(src/SearchKit) 21 + add_subdirectory(src/SharedFileList) 74 22 75 - set(DYLIB_COMPAT_VERSION "1.0.0") 76 - set(DYLIB_CURRENT_VERSION "945.0.0") 77 23 add_framework(CoreServices 78 24 FAT 79 25 CURRENT_VERSION 80 26 VERSION "A" 81 27 SOURCES 82 - ${CoreServices_SRCS} 28 + constants.m 29 + CoreServicesPriv.cpp 83 30 DEPENDENCIES 84 31 FSEvents 85 32 LaunchServices 86 - icucore 33 + CarbonCore 34 + AE 35 + DictionaryServices 36 + Metadata 37 + SearchKit 38 + SharedFileList 39 + OSServices 87 40 system 88 41 CoreFoundation 89 - cxx 90 - iconv 91 - Foundation 92 42 ${EXTRA_LIBS} 93 43 RESOURCES 94 44 Info.plist Info.plist 95 45 ) 96 46 97 - set(FSEvents_BUILD ${CMAKE_CURRENT_BINARY_DIR}/FSEvents) 98 - set(LaunchServices_BUILD ${CMAKE_CURRENT_BINARY_DIR}/LaunchServices) 47 + set(FSEvents_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/FSEvents/FSEvents) 48 + set(LaunchServices_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/LaunchServices/LaunchServices) 99 49 set(CFNetwork_BUILD ${CMAKE_BINARY_DIR}/src/external/cfnetwork/src/CFNetwork) 100 50 set(CoreFoundation_BUILD ${CMAKE_BINARY_DIR}/src/external/corefoundation/CoreFoundation) 51 + set(AE_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/AE/AE) 52 + set(OSServices_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/OSServices/OSServices) 53 + set(CarbonCore_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/CarbonCore/CarbonCore) 54 + set(DictionaryServices_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/DictionaryServices/DictionaryServices) 55 + set(Metadata_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/Metadata/Metadata) 56 + set(SearchKit_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/SearchKit/SearchKit) 57 + set(SharedFileList_BUILD ${CMAKE_CURRENT_BINARY_DIR}/src/SharedFileList/SharedFileList) 58 + 101 59 reexport(CoreServices FSEvents ${FSEvents_BUILD}) 102 60 reexport(CoreServices LaunchServices ${LaunchServices_BUILD}) 103 61 reexport(CoreServices CFNetwork ${CFNetwork_BUILD}) 104 62 reexport(CoreServices CoreFoundation ${CoreFoundation_BUILD}) 63 + reexport(CoreServices AE ${AE_BUILD}) 64 + reexport(CoreServices CarbonCore ${CarbonCore_BUILD}) 65 + reexport(CoreServices DictionaryServices ${DictionaryServices_BUILD}) 66 + reexport(CoreServices Metadata ${Metadata_BUILD}) 67 + reexport(CoreServices SearchKit ${SearchKit_BUILD}) 68 + reexport(CoreServices SharedFileList ${SharedFileList_BUILD}) 69 + reexport(CoreServices OSServices ${OSServices_BUILD}) 105 70 106 71 install(FILES SystemVersion.plist DESTINATION "libexec/darling/System/Library/CoreServices")
src/frameworks/CoreServices/ComponentManager.cpp src/frameworks/CoreServices/src/CarbonCore/ComponentManager.cpp
+1 -1
src/frameworks/CoreServices/ComponentManager.h src/frameworks/CoreServices/src/CarbonCore/ComponentManager.h
··· 19 19 20 20 #ifndef _CS_COMPONENT_MANAGER_H 21 21 #define _CS_COMPONENT_MANAGER_H 22 - #include "Components.h" 22 + #include <CoreServices/Components.h> 23 23 #include <unordered_map> 24 24 #include <mutex> 25 25 #include <memory>
+1 -1
src/frameworks/CoreServices/Components.cpp src/frameworks/CoreServices/src/CarbonCore/Components.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "Components.h" 20 + #include <CoreServices/Components.h> 21 21 #include <CoreServices/MacErrors.h> 22 22 #include <CoreServices/MacMemory.h> 23 23 #include "ComponentManager.h"
-1
src/frameworks/CoreServices/Components.h
··· 1 - include/CoreServices/Components.h
+1 -1
src/frameworks/CoreServices/CoreEndian.cpp src/frameworks/CoreServices/src/CarbonCore/CoreEndian.cpp
··· 21 21 #include <stdint.h> 22 22 #include <map> 23 23 #include <TargetConditionals.h> 24 - #include "MacErrors.h" 24 + #include <CoreServices/MacErrors.h> 25 25 #include <mutex> 26 26 27 27 static std::map<
+1 -1
src/frameworks/CoreServices/DateTimeUtils.cpp src/frameworks/CoreServices/src/CarbonCore/DateTimeUtils.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "DateTimeUtils.h" 20 + #include <CoreServices/DateTimeUtils.h> 21 21 #include <climits> 22 22 #include <ctime> 23 23
-1
src/frameworks/CoreServices/DateTimeUtils.h
··· 1 - include/CoreServices/DateTimeUtils.h
+1 -1
src/frameworks/CoreServices/DriverServices.cpp src/frameworks/CoreServices/src/CarbonCore/DriverServices.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "DriverServices.h" 20 + #include <CoreServices/DriverServices.h> 21 21 #include "time.h" 22 22 #include <sys/sysctl.h> 23 23 #include <sys/time.h>
-1
src/frameworks/CoreServices/DriverServices.h
··· 1 - include/CoreServices/DriverServices.h
+1 -1
src/frameworks/CoreServices/DriverSynchronization.cpp src/frameworks/CoreServices/src/CarbonCore/DriverSynchronization.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "DriverSynchronization.h" 20 + #include <CoreServices/DriverSynchronization.h> 21 21 22 22 23 23 Boolean CompareAndSwap(UInt32 old, UInt32 _new, UInt32* ptr)
-1
src/frameworks/CoreServices/DriverSynchronization.h
··· 1 - include/CoreServices/DriverSynchronization.h
+1 -1
src/frameworks/CoreServices/FileManager.cpp src/frameworks/CoreServices/src/CarbonCore/FileManager.cpp
··· 36 36 #include <regex.h> 37 37 #include <fcntl.h> 38 38 #include <vector> 39 - #include "DateTimeUtils.h" 39 + #include <CoreServices/DateTimeUtils.h> 40 40 #include <errno.h> 41 41 #include <ext/file_handle.h> 42 42
src/frameworks/CoreServices/Files.cpp src/frameworks/CoreServices/src/CarbonCore/Files.cpp
+1 -1
src/frameworks/CoreServices/FixMath.cpp src/frameworks/CoreServices/src/CarbonCore/FixMath.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "FixMath.h" 20 + #include <CoreServices/FixMath.h> 21 21 #include <cmath> 22 22 #include <limits> 23 23
-1
src/frameworks/CoreServices/FixMath.h
··· 1 - include/CoreServices/FixMath.h
+2 -2
src/frameworks/CoreServices/Gestalt.cpp src/frameworks/CoreServices/src/CarbonCore/Gestalt.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "MacErrors.h" 20 + #include <CoreServices/MacErrors.h> 21 21 #include <cstring> 22 22 #include <cstdio> 23 23 #include <sys/sysctl.h> 24 - #include "Gestalt.h" 24 + #include <CoreServices/Gestalt.h> 25 25 26 26 OSStatus Gestalt(uint32_t type, int* value) 27 27 {
-1
src/frameworks/CoreServices/Gestalt.h
··· 1 - include/CoreServices/Gestalt.h
src/frameworks/CoreServices/LSApplicationProxy.m src/frameworks/CoreServices/src/LaunchServices/LSApplicationProxy.m
src/frameworks/CoreServices/LSApplicationWorkspace.m src/frameworks/CoreServices/src/LaunchServices/LSApplicationWorkspace.m
+1 -1
src/frameworks/CoreServices/LaunchServices.cpp src/frameworks/CoreServices/src/LaunchServices/LaunchServices.cpp
··· 9 9 #include <fcntl.h> 10 10 #include <stdio.h> 11 11 #include <unicode/unistr.h> 12 - #include "UniChar.h" 12 + #include <CoreServices/UniChar.h> 13 13 14 14 extern char** environ; 15 15
src/frameworks/CoreServices/MDQuery.c src/frameworks/CoreServices/src/Metadata/MDQuery.c
src/frameworks/CoreServices/MacErrors.cpp src/frameworks/CoreServices/src/CarbonCore/MacErrors.cpp
-1
src/frameworks/CoreServices/MacErrors.h
··· 1 - include/CoreServices/MacErrors.h
+2 -2
src/frameworks/CoreServices/MacLocales.cpp src/frameworks/CoreServices/src/CarbonCore/MacLocales.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "MacLocales.h" 21 - #include "MacErrors.h" 20 + #include <CoreServices/MacLocales.h> 21 + #include <CoreServices/MacErrors.h> 22 22 #include <unicode/locid.h> 23 23 #include <unicode/coll.h> 24 24 #include <cstring>
-1
src/frameworks/CoreServices/MacLocales.h
··· 1 - include/CoreServices/MacLocales.h
src/frameworks/CoreServices/MacMemory.cpp src/frameworks/CoreServices/src/CarbonCore/MacMemory.cpp
+1 -1
src/frameworks/CoreServices/Math64.cpp src/frameworks/CoreServices/src/CarbonCore/Math64.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "Math64.h" 20 + #include <CoreServices/Math64.h> 21 21 #include <limits> 22 22 23 23 int64_t S64Max()
-1
src/frameworks/CoreServices/Math64.h
··· 1 - include/CoreServices/Math64.h
+21 -2
src/frameworks/CoreServices/Multiprocessing.cpp src/frameworks/CoreServices/src/CarbonCore/Multiprocessing.cpp
··· 1 - #include "Multiprocessing.h" 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2012-2013 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <CoreServices/Multiprocessing.h> 2 21 #include <unistd.h> 3 22 #include <ctime> 4 23 #include <pthread.h> 5 - #include "MacErrors.h" 24 + #include <CoreServices/MacErrors.h> 6 25 7 26 Boolean _MPIsFullyInitialized() 8 27 {
-1
src/frameworks/CoreServices/Multiprocessing.h
··· 1 - include/CoreServices/Multiprocessing.h
+20 -1
src/frameworks/CoreServices/OpenTransport.cpp src/frameworks/CoreServices/src/CarbonCore/OpenTransport.cpp
··· 1 - #include "OpenTransport.h" 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2012-2013 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <CoreServices/OpenTransport.h> 2 21 3 22 #if defined(__i386__) || defined(__ppc__) // This is deprecated stuff for Carbon apps 4 23
-1
src/frameworks/CoreServices/OpenTransport.h
··· 1 - include/CoreServices/OpenTransport.h
+21 -2
src/frameworks/CoreServices/Processes.cpp src/frameworks/CoreServices/src/CarbonCore/Processes.cpp
··· 1 - #include "Processes.h" 2 - #include "MacErrors.h" 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2012-2013 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <CoreServices/Processes.h> 21 + #include <CoreServices/MacErrors.h> 3 22 #include <unistd.h> 4 23 #include <signal.h> 5 24 #include <errno.h>
-1
src/frameworks/CoreServices/Processes.h
··· 1 - include/CoreServices/Processes.h
src/frameworks/CoreServices/Resources.cpp src/frameworks/CoreServices/src/CarbonCore/Resources.cpp
src/frameworks/CoreServices/ResourcesImpl.cpp src/frameworks/CoreServices/src/CarbonCore/ResourcesImpl.cpp
src/frameworks/CoreServices/ResourcesImpl.h src/frameworks/CoreServices/src/CarbonCore/ResourcesImpl.h
+1 -1
src/frameworks/CoreServices/TextCommon.cpp src/frameworks/CoreServices/src/CarbonCore/TextCommon.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "TextCommon.h" 20 + #include <CoreServices/TextCommon.h> 21 21 22 22 TextEncoding CreateTextEncoding(TextEncodingBase encodingBase, TextEncodingVariant encodingVariant, TextEncodingFormat encodingFormat) 23 23 {
-1
src/frameworks/CoreServices/TextCommon.h
··· 1 - include/CoreServices/TextCommon.h
+2 -2
src/frameworks/CoreServices/TextEncodingConverter.cpp src/frameworks/CoreServices/src/CarbonCore/TextEncodingConverter.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "TextEncodingConverter.h" 20 + #include <CoreServices/TextEncodingConverter.h> 21 21 #include <unicode/ucnv.h> 22 22 #include <unicode/normalizer2.h> 23 - #include "MacErrors.h" 23 + #include <CoreServices/MacErrors.h> 24 24 25 25 struct OpaqueTECObjectRef 26 26 {
-1
src/frameworks/CoreServices/TextEncodingConverter.h
··· 1 - include/CoreServices/TextEncodingConverter.h
+21 -1
src/frameworks/CoreServices/TextUtils.cpp src/frameworks/CoreServices/src/CarbonCore/TextUtils.cpp
··· 1 - #include "TextUtils.h" 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <CoreServices/TextUtils.h> 2 22 #include <cstring> 3 23 #include <cstdlib> 4 24 #include <algorithm>
-1
src/frameworks/CoreServices/TextUtils.h
··· 1 - include/CoreServices/TextUtils.h
-16
src/frameworks/CoreServices/Timer.cpp
··· 1 - #include "Timer.h" 2 - #include <mach/mach_time.h> 3 - #include <stdint.h> 4 - 5 - void Microseconds(UnsignedWide* tickCount) 6 - { 7 - uint64_t time; 8 - 9 - time = mach_absolute_time(); 10 - 11 - *reinterpret_cast<uint64_t*>(tickCount) = time / 1000000000ll; 12 - time -= *reinterpret_cast<uint64_t*>(tickCount) * 1000000000ll; 13 - 14 - *reinterpret_cast<uint64_t*>(tickCount) += time / 1000; 15 - } 16 -
-1
src/frameworks/CoreServices/Timer.h
··· 1 - include/CoreServices/Timer.h
+1 -1
src/frameworks/CoreServices/ToolUtils.cpp src/frameworks/CoreServices/src/CarbonCore/ToolUtils.cpp
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - #include "ToolUtils.h" 20 + #include <CoreServices/ToolUtils.h> 21 21 22 22 23 23 int BitTst(const void* bytePtr, long bitNum)
-1
src/frameworks/CoreServices/ToolUtils.h
··· 1 - include/CoreServices/ToolUtils.h
-1
src/frameworks/CoreServices/UniChar.h
··· 1 - include/CoreServices/UniChar.h
+3 -3
src/frameworks/CoreServices/UnicodeUtilities.cpp src/frameworks/CoreServices/src/CarbonCore/UnicodeUtilities.cpp
··· 18 18 */ 19 19 20 20 21 - #include "UnicodeUtilities.h" 21 + #include <CoreServices/UnicodeUtilities.h> 22 22 #include <unicode/coll.h> 23 23 #include <unicode/sortkey.h> 24 24 #include <string> 25 25 #include <cstring> 26 26 #include <iostream> 27 - #include "UniChar.h" 28 - #include "MacErrors.h" 27 + #include <CoreServices/UniChar.h> 28 + #include <CoreServices/MacErrors.h> 29 29 30 30 namespace Darling 31 31 {
-1
src/frameworks/CoreServices/UnicodeUtilities.h
··· 1 - include/CoreServices/UnicodeUtilities.h
+1
src/frameworks/CoreServices/UserBreak.cpp src/frameworks/CoreServices/src/CarbonCore/UserBreak.cpp
··· 20 20 21 21 #include <pthread.h> 22 22 #include <cstdlib> 23 + #include "UserBreak.h" 23 24 24 25 static bool doBreak = false; 25 26
src/frameworks/CoreServices/UserBreak.h src/frameworks/CoreServices/src/CarbonCore/UserBreak.h
+12
src/frameworks/CoreServices/src/AE/CMakeLists.txt
··· 1 + 2 + add_framework(AE 3 + FAT 4 + CURRENT_VERSION 5 + VERSION "A" 6 + PARENT "CoreServices" 7 + SOURCES 8 + empty.c 9 + DEPENDENCIES 10 + CoreFoundation 11 + system 12 + )
src/frameworks/CoreServices/src/AE/empty.c

This is a binary file and will not be displayed.

+45
src/frameworks/CoreServices/src/CarbonCore/CMakeLists.txt
··· 1 + set(CarbonCore_SRCS 2 + CoreEndian.cpp 3 + Multiprocessing.cpp 4 + TextUtils.cpp 5 + MacMemory.cpp 6 + MacLocales.cpp 7 + UnicodeUtilities.cpp 8 + Gestalt.cpp 9 + FileManager.cpp 10 + DateTimeUtils.cpp 11 + FixMath.cpp 12 + ToolUtils.cpp 13 + Math64.cpp 14 + DriverSynchronization.cpp 15 + DriverServices.cpp 16 + Components.cpp 17 + Processes.cpp 18 + OpenTransport.cpp 19 + Timer.cpp 20 + TextCommon.cpp 21 + TextEncodingConverter.cpp 22 + ComponentManager.cpp 23 + Files.cpp 24 + Resources.cpp 25 + ResourcesImpl.cpp 26 + MacErrors.cpp 27 + UserBreak.cpp 28 + ) 29 + 30 + set(DYLIB_COMPAT_VERSION "1.0.0") 31 + set(DYLIB_CURRENT_VERSION "945.0.0") 32 + add_framework(CarbonCore 33 + FAT 34 + CURRENT_VERSION 35 + VERSION "A" 36 + PARENT "CoreServices" 37 + SOURCES ${CarbonCore_SRCS} 38 + DEPENDENCIES 39 + CoreFoundation 40 + Foundation 41 + system 42 + cxx 43 + icucore 44 + iconv 45 + )
+35
src/frameworks/CoreServices/src/CarbonCore/Timer.cpp
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <CoreServices/Timer.h> 21 + #include <mach/mach_time.h> 22 + #include <stdint.h> 23 + 24 + void Microseconds(UnsignedWide* tickCount) 25 + { 26 + uint64_t time; 27 + 28 + time = mach_absolute_time(); 29 + 30 + *reinterpret_cast<uint64_t*>(tickCount) = time / 1000000000ll; 31 + time -= *reinterpret_cast<uint64_t*>(tickCount) * 1000000000ll; 32 + 33 + *reinterpret_cast<uint64_t*>(tickCount) += time / 1000; 34 + } 35 +
+12
src/frameworks/CoreServices/src/DictionaryServices/CMakeLists.txt
··· 1 + 2 + add_framework(DictionaryServices 3 + FAT 4 + CURRENT_VERSION 5 + VERSION "A" 6 + PARENT "CoreServices" 7 + SOURCES 8 + empty.c 9 + DEPENDENCIES 10 + CoreFoundation 11 + system 12 + )
src/frameworks/CoreServices/src/DictionaryServices/empty.c

This is a binary file and will not be displayed.

+15
src/frameworks/CoreServices/src/FSEvents/CMakeLists.txt
··· 1 + set(DYLIB_COMPAT_VERSION "1.0.0") 2 + set(DYLIB_CURRENT_VERSION "1239.200.12") 3 + add_framework(FSEvents 4 + FAT 5 + CURRENT_VERSION 6 + VERSION "A" 7 + PARENT "CoreServices" 8 + SOURCES 9 + FSEvents.m 10 + FSEventsImpl.m 11 + DEPENDENCIES 12 + CoreFoundation 13 + Foundation 14 + system 15 + )
+19
src/frameworks/CoreServices/src/LaunchServices/CMakeLists.txt
··· 1 + 2 + add_framework(LaunchServices 3 + FAT 4 + CURRENT_VERSION 5 + VERSION "A" 6 + PARENT "CoreServices" 7 + SOURCES 8 + LaunchServices.c 9 + LaunchServices.cpp 10 + LSApplicationProxy.m 11 + LSApplicationWorkspace.m 12 + DEPENDENCIES 13 + CoreFoundation 14 + Foundation 15 + cxx 16 + icucore 17 + system 18 + CarbonCore 19 + )
+12
src/frameworks/CoreServices/src/Metadata/CMakeLists.txt
··· 1 + 2 + add_framework(Metadata 3 + FAT 4 + CURRENT_VERSION 5 + VERSION "A" 6 + PARENT "CoreServices" 7 + SOURCES 8 + MDQuery.c 9 + DEPENDENCIES 10 + CoreFoundation 11 + system 12 + )
+11
src/frameworks/CoreServices/src/OSServices/CMakeLists.txt
··· 1 + add_framework(OSServices 2 + FAT 3 + CURRENT_VERSION 4 + VERSION "A" 5 + PARENT "CoreServices" 6 + SOURCES 7 + empty.c 8 + DEPENDENCIES 9 + CoreFoundation 10 + system 11 + )
src/frameworks/CoreServices/src/OSServices/empty.c

This is a binary file and will not be displayed.

+11
src/frameworks/CoreServices/src/SearchKit/CMakeLists.txt
··· 1 + add_framework(SearchKit 2 + FAT 3 + CURRENT_VERSION 4 + VERSION "A" 5 + PARENT "CoreServices" 6 + SOURCES 7 + empty.c 8 + DEPENDENCIES 9 + CoreFoundation 10 + system 11 + )
src/frameworks/CoreServices/src/SearchKit/empty.c

This is a binary file and will not be displayed.

+11
src/frameworks/CoreServices/src/SharedFileList/CMakeLists.txt
··· 1 + add_framework(SharedFileList 2 + FAT 3 + CURRENT_VERSION 4 + VERSION "A" 5 + PARENT "CoreServices" 6 + SOURCES 7 + empty.c 8 + DEPENDENCIES 9 + CoreFoundation 10 + system 11 + )
src/frameworks/CoreServices/src/SharedFileList/empty.c

This is a binary file and will not be displayed.