Overview
Comment: | Merge trunk into branch "gamecontroller" |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | gamecontroller |
Files: | files | file ages | folders |
SHA3-256: |
c0a80a897db56b5208b01e629bec48e1 |
User & Date: | js on 2024-05-09 10:22:19 |
Other Links: | branch diff | manifest | tags |
Context
2024-05-09
| ||
12:57 | OFGameController: Add support for Linux check-in: 6f20cdbd5c user: js tags: gamecontroller | |
10:22 | Merge trunk into branch "gamecontroller" check-in: c0a80a897d user: js tags: gamecontroller | |
10:21 | Use unsigned long for bit sets check-in: 96f946d7ad user: js tags: trunk | |
2024-05-05
| ||
23:07 | OFGameController: Fix typos check-in: 3ef11175bc user: js tags: gamecontroller | |
Changes
Modified src/OFBitSetCharacterSet.h from [9f3314050d] to [ba3d4f6a9d].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + | #import "OFCharacterSet.h" OF_ASSUME_NONNULL_BEGIN @interface OFBitSetCharacterSet: OFCharacterSet { |
Modified src/OFBitSetCharacterSet.m from [b1982608cc] to [9db9ebbd67].
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | - + - - + + - - + + + + - + - + - + - + | void *pool = objc_autoreleasePoolPush(); const OFUnichar *characters = string.characters; size_t length = string.length; for (size_t i = 0; i < length; i++) { OFUnichar c = characters[i]; |
Modified src/OFSecureData.m from [5df33e3bf5] to [d0c4634748].
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | - + | #import "OFOutOfRangeException.h" #if defined(HAVE_MMAP) && defined(HAVE_MLOCK) && defined(MAP_ANON) static const size_t chunkSize = 16; struct Page { struct Page *next, *previous; |
︙ | |||
98 99 100 101 102 103 104 | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | - - + + | munmap(pointer, numPages * pageSize); } static struct Page * addPage(bool allowPreallocated) { size_t pageSize = [OFSystemInfo pageSize]; |
︙ | |||
140 141 142 143 144 145 146 | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | - + | return page; } } page = OFAllocMemory(1, sizeof(*page)); @try { |
︙ | |||
182 183 184 185 186 187 188 | 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | - + - - + + | return page; } static void removePageIfEmpty(struct Page *page) { |
︙ | |||
225 226 227 228 229 230 231 | 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | - + - + - + | bytes = OFRoundUpToPowerOf2(chunkSize, bytes); chunks = chunksLeft = bytes / chunkSize; firstChunk = 0; pageSize = [OFSystemInfo pageSize]; for (i = 0; i < pageSize / chunkSize; i++) { |
︙ |
Modified src/OFStdIOStream.m from [2edbd17f16] to [4854e57444].
︙ | |||
641 642 643 644 645 646 647 | 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 | + + + - + | { if (!self.hasTerminal) return; #ifdef OF_MSDOS gotoxy(column + 1, wherey()); #else if (column == 0) [self writeString: @"\r"]; else |
︙ |
Modified src/macros.h from [e71e68e9ff] to [3c8f4714cc].
︙ | |||
936 937 938 939 940 941 942 943 | 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 | + + - + - + - + - + - + - + | * @param pow2 The power of 2 to round up to * @param value The value to round up to the specified power of two * @return The specified value rounded up to the specified power of two */ #define OFRoundUpToPowerOf2(pow2, value) \ (((value) + (pow2) - 1) & ~((pow2) - 1)) #define OF_ULONG_BIT (sizeof(unsigned long) * CHAR_BIT) static OF_INLINE bool |
︙ |