Overview
Comment: | Work around GCC being extremely buggy
This includes GCC thinking uint16_t and uint_fast16_t have a different |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
44413ada844d55061d242647a5c44259 |
User & Date: | js on 2018-06-03 20:11:18 |
Other Links: | manifest | tags |
Context
2018-06-03
| ||
20:58 | ofzip: LHA: Only try to set a mode if we have one check-in: 54c76965d7 user: js tags: trunk | |
20:11 | Work around GCC being extremely buggy check-in: 44413ada84 user: js tags: trunk | |
18:15 | OFLHAArchive: Support for -lh[4567]- compression check-in: 6cbc2253b8 user: js tags: trunk | |
Changes
Modified src/OFInflateStream.m from [6dcb1199a3] to [cd213df087].
︙ | |||
375 376 377 378 379 380 381 | 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | - + | } if OF_LIKELY (CTX.lengths == NULL) { CTX.lengths = [self allocMemoryWithSize: 19]; memset(CTX.lengths, 0, 19); } |
︙ | |||
399 400 401 402 403 404 405 | 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 | - + | CTX.value = 0xFF; } if OF_LIKELY (CTX.lengths == NULL) CTX.lengths = [self allocMemoryWithSize: CTX.litLenCodesCount + CTX.distCodesCount + 258]; |
︙ |
Modified src/OFLHAArchive.m from [f1be19a9ae] to [9530d9435c].
︙ | |||
252 253 254 255 256 257 258 | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | - - - - | entry: _lastEntry]; return [[_lastEntry copy] autorelease]; } - (OFStream <OFReadyForReadingObserving> *)streamForReadingCurrentEntry { |
︙ | |||
451 452 453 454 455 456 457 | 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | - + | _treeIter = _codeLenTree; _state = STATE_LITLEN_TREE; goto start; case STATE_LITLEN_TREE: while (_codesReceived < _codesCount) { if OF_UNLIKELY (_skip) { |
︙ | |||
480 481 482 483 484 485 486 | 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 | - + | } if OF_UNLIKELY (_codesReceived + skipCount > _codesCount) @throw [OFInvalidFormatException exception]; |
︙ | |||
678 679 680 681 682 683 684 685 686 687 688 689 690 691 | 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | + + | _symbolsLeft--; _treeIter = _litLenTree; _state = STATE_BLOCK_LITLEN; goto start; } OF_UNREACHABLE } - (bool)lowlevelIsAtEndOfStream { if (_stream == nil) @throw [OFNotOpenException exceptionWithObject: self]; |
︙ |
Modified src/huffman_tree.h from [d01cbc1eac] to [11f24074b8].
︙ | |||
18 19 20 21 22 23 24 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - - - - + + | #include <stdbool.h> #include <stdint.h> #import "macros.h" OF_ASSUME_NONNULL_BEGIN |
Modified src/huffman_tree.m from [44d960865e] to [d14cb85d84].
︙ | |||
107 108 109 110 111 112 113 | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | - + - | tree->value = value; return tree; } bool |
︙ |