CoreFoundation.pas 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. { CoreFoundation.h
  2. Copyright (c) 1998-2005, Apple, Inc. All rights reserved.
  3. }
  4. { Pascal Translation: Peter N Lewis, <[email protected]>, August 2005 }
  5. {
  6. Modified for use with Free Pascal
  7. Version 308
  8. Please report any bugs to <[email protected]>
  9. }
  10. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  11. {$mode macpas}
  12. {$packenum 1}
  13. {$macro on}
  14. {$inline on}
  15. {$calling mwpascal}
  16. unit CoreFoundation;
  17. interface
  18. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  19. {$setc GAP_INTERFACES_VERSION := $0308}
  20. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  21. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  22. {$endc}
  23. {$ifc defined CPUPOWERPC and defined CPUI386}
  24. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  25. {$endc}
  26. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  27. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  28. {$endc}
  29. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  30. {$setc __ppc__ := 1}
  31. {$elsec}
  32. {$setc __ppc__ := 0}
  33. {$endc}
  34. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  35. {$setc __ppc64__ := 1}
  36. {$elsec}
  37. {$setc __ppc64__ := 0}
  38. {$endc}
  39. {$ifc not defined __i386__ and defined CPUI386}
  40. {$setc __i386__ := 1}
  41. {$elsec}
  42. {$setc __i386__ := 0}
  43. {$endc}
  44. {$ifc not defined __x86_64__ and defined CPUX86_64}
  45. {$setc __x86_64__ := 1}
  46. {$elsec}
  47. {$setc __x86_64__ := 0}
  48. {$endc}
  49. {$ifc not defined __arm__ and defined CPUARM}
  50. {$setc __arm__ := 1}
  51. {$elsec}
  52. {$setc __arm__ := 0}
  53. {$endc}
  54. {$ifc defined cpu64}
  55. {$setc __LP64__ := 1}
  56. {$elsec}
  57. {$setc __LP64__ := 0}
  58. {$endc}
  59. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  60. {$error Conflicting definitions for __ppc__ and __i386__}
  61. {$endc}
  62. {$ifc defined __ppc__ and __ppc__}
  63. {$setc TARGET_CPU_PPC := TRUE}
  64. {$setc TARGET_CPU_PPC64 := FALSE}
  65. {$setc TARGET_CPU_X86 := FALSE}
  66. {$setc TARGET_CPU_X86_64 := FALSE}
  67. {$setc TARGET_CPU_ARM := FALSE}
  68. {$setc TARGET_OS_MAC := TRUE}
  69. {$setc TARGET_OS_IPHONE := FALSE}
  70. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  71. {$setc TARGET_OS_EMBEDDED := FALSE}
  72. {$elifc defined __ppc64__ and __ppc64__}
  73. {$setc TARGET_CPU_PPC := FALSE}
  74. {$setc TARGET_CPU_PPC64 := TRUE}
  75. {$setc TARGET_CPU_X86 := FALSE}
  76. {$setc TARGET_CPU_X86_64 := FALSE}
  77. {$setc TARGET_CPU_ARM := FALSE}
  78. {$setc TARGET_OS_MAC := TRUE}
  79. {$setc TARGET_OS_IPHONE := FALSE}
  80. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  81. {$setc TARGET_OS_EMBEDDED := FALSE}
  82. {$elifc defined __i386__ and __i386__}
  83. {$setc TARGET_CPU_PPC := FALSE}
  84. {$setc TARGET_CPU_PPC64 := FALSE}
  85. {$setc TARGET_CPU_X86 := TRUE}
  86. {$setc TARGET_CPU_X86_64 := FALSE}
  87. {$setc TARGET_CPU_ARM := FALSE}
  88. {$ifc defined(iphonesim)}
  89. {$setc TARGET_OS_MAC := FALSE}
  90. {$setc TARGET_OS_IPHONE := TRUE}
  91. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  92. {$elsec}
  93. {$setc TARGET_OS_MAC := TRUE}
  94. {$setc TARGET_OS_IPHONE := FALSE}
  95. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  96. {$endc}
  97. {$setc TARGET_OS_EMBEDDED := FALSE}
  98. {$elifc defined __x86_64__ and __x86_64__}
  99. {$setc TARGET_CPU_PPC := FALSE}
  100. {$setc TARGET_CPU_PPC64 := FALSE}
  101. {$setc TARGET_CPU_X86 := FALSE}
  102. {$setc TARGET_CPU_X86_64 := TRUE}
  103. {$setc TARGET_CPU_ARM := FALSE}
  104. {$setc TARGET_OS_MAC := TRUE}
  105. {$setc TARGET_OS_IPHONE := FALSE}
  106. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  107. {$setc TARGET_OS_EMBEDDED := FALSE}
  108. {$elifc defined __arm__ and __arm__}
  109. {$setc TARGET_CPU_PPC := FALSE}
  110. {$setc TARGET_CPU_PPC64 := FALSE}
  111. {$setc TARGET_CPU_X86 := FALSE}
  112. {$setc TARGET_CPU_X86_64 := FALSE}
  113. {$setc TARGET_CPU_ARM := TRUE}
  114. { will require compiler define when/if other Apple devices with ARM cpus ship }
  115. {$setc TARGET_OS_MAC := FALSE}
  116. {$setc TARGET_OS_IPHONE := TRUE}
  117. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  118. {$setc TARGET_OS_EMBEDDED := TRUE}
  119. {$elsec}
  120. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  121. {$endc}
  122. {$ifc defined __LP64__ and __LP64__ }
  123. {$setc TARGET_CPU_64 := TRUE}
  124. {$elsec}
  125. {$setc TARGET_CPU_64 := FALSE}
  126. {$endc}
  127. {$ifc defined FPC_BIG_ENDIAN}
  128. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  129. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  130. {$elifc defined FPC_LITTLE_ENDIAN}
  131. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  132. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  133. {$elsec}
  134. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  135. {$endc}
  136. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  137. {$setc CALL_NOT_IN_CARBON := FALSE}
  138. {$setc OLDROUTINENAMES := FALSE}
  139. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  140. {$setc OPAQUE_UPP_TYPES := TRUE}
  141. {$setc OTCARBONAPPLICATION := TRUE}
  142. {$setc OTKERNEL := FALSE}
  143. {$setc PM_USE_SESSION_APIS := TRUE}
  144. {$setc TARGET_API_MAC_CARBON := TRUE}
  145. {$setc TARGET_API_MAC_OS8 := FALSE}
  146. {$setc TARGET_API_MAC_OSX := TRUE}
  147. {$setc TARGET_CARBON := TRUE}
  148. {$setc TARGET_CPU_68K := FALSE}
  149. {$setc TARGET_CPU_MIPS := FALSE}
  150. {$setc TARGET_CPU_SPARC := FALSE}
  151. {$setc TARGET_OS_UNIX := FALSE}
  152. {$setc TARGET_OS_WIN32 := FALSE}
  153. {$setc TARGET_RT_MAC_68881 := FALSE}
  154. {$setc TARGET_RT_MAC_CFM := FALSE}
  155. {$setc TARGET_RT_MAC_MACHO := TRUE}
  156. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  157. {$setc TYPE_BOOL := FALSE}
  158. {$setc TYPE_EXTENDED := FALSE}
  159. {$setc TYPE_LONGLONG := TRUE}
  160. uses MacTypes,CFBase,CFArray,CFBag,CFCharacterSet,CFData,CFDate,CFDictionary,CFNumber,CFPropertyList,CFSet,CFString,CFStringEncodingExt,CFTimeZone,CFTree,CFURL,CFXMLNode,CFXMLParser,CFMachPort,CFMessagePort,CFRunLoop,CFSocket,CFBinaryHeap,CFBitVector,CFBundle,CFByteOrders,CFPlugIn,CFPreferences,CFURLAccess,CFUUID,CFLocale,CFStream,CFDateFormatter,CFNumberFormatter,CFCalendar,CFUserNotification,CFNotificationCenter,CFAttributedString;
  161. {$endc} {not MACOSALLINCLUDE}
  162. {$ALIGN POWER}
  163. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  164. end.
  165. {$endc} {not MACOSALLINCLUDE}