Differences From Artifact [3184c9a0c5]:
- File src/OFSystemInfo.m — part of check-in [0abbcb442c] at 2017-02-26 15:38:19 on branch trunk — Rename OF_MAC_OS_X define to OF_MACOS (user: js, size: 9535) [annotate] [blame] [check-ins using]
To Artifact [2dfc0a82b8]:
- File
src/OFSystemInfo.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 9538) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
139 140 141 142 143 144 145 | } + (size_t)numberOfCPUs { return numberOfCPUs; } | | | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | } + (size_t)numberOfCPUs { return numberOfCPUs; } + (OFString *)userDataPath { #if defined(OF_MACOS) || defined(OF_IOS) void *pool = objc_autoreleasePoolPush(); char pathC[PATH_MAX]; OFMutableString *path; OFString *home; |
︙ | ︙ | |||
229 230 231 232 233 234 235 | [var retain]; objc_autoreleasePoolPop(pool); return [var autorelease]; #endif } | | | 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | [var retain]; objc_autoreleasePoolPop(pool); return [var autorelease]; #endif } + (OFString *)userConfigPath { #if defined(OF_MACOS) || defined(OF_IOS) void *pool = objc_autoreleasePoolPush(); char pathC[PATH_MAX]; OFMutableString *path; OFString *home; |
︙ | ︙ | |||
320 321 322 323 324 325 326 | [var retain]; objc_autoreleasePoolPop(pool); return [var autorelease]; #endif } | | | 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | [var retain]; objc_autoreleasePoolPop(pool); return [var autorelease]; #endif } + (OFString *)CPUVendor { #if defined(OF_X86_64_ASM) || defined(OF_X86_ASM) struct x86_regs regs = x86_cpuid(0, 0); char buffer[12]; if (regs.eax == 0) return nil; |
︙ | ︙ |