Differences From Artifact [08b8bec829]:
- File
src/OFRunLoop.m
— part of check-in
[15662dd417]
at
2021-05-13 15:32:59
on branch trunk
— Move OFRunLoop constants to a separate file
This allows including them from the Amiga linklib in the future. (user: js, size: 36528) [annotate] [blame] [check-ins using] [more...]
To Artifact [e671b17f7b]:
- File src/OFRunLoop.m — part of check-in [b489d6188d] at 2022-06-12 08:50:35 on branch trunk — Remove unneeded arguments from blocks (user: js, size: 36952) [annotate] [blame] [check-ins using] [more...]
1 | 1 2 3 4 5 6 7 8 9 | - + | /* |
︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | + | #endif #import "OFSortedList.h" #import "OFTimer.h" #import "OFTimer+Private.h" #import "OFDate.h" #import "OFObserveFailedException.h" #import "OFWriteFailedException.h" #include "OFRunLoopConstants.inc" static OFRunLoop *mainRunLoop = nil; @interface OFRunLoopState: OFObject #ifdef OF_HAVE_SOCKETS |
︙ | |||
565 566 567 568 569 570 571 | 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 | - - - + + + + + + + + - + | size_t length; id exception = nil; size_t dataLength = _data.count * _data.itemSize; OFData *newData, *oldData; @try { const char *dataItems = _data.items; |
︙ | |||
637 638 639 640 641 642 643 | 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 | - - - + + + + + + + + - + | size_t length; id exception = nil; size_t cStringLength = [_string cStringLengthWithEncoding: _encoding]; OFString *newString, *oldString; @try { const char *cString = [_string cStringWithEncoding: _encoding]; |
︙ | |||
846 847 848 849 850 851 852 | 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 | - + | receiver: &_receiver]; } @catch (id e) { exception = e; } # ifdef OF_HAVE_BLOCKS if (_block != NULL) { |
︙ | |||
947 948 949 950 951 952 953 | 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 | - + | length: _data.count * _data.itemSize]; } @catch (id e) { exception = e; } # ifdef OF_HAVE_BLOCKS if (_block != NULL) { |
︙ | |||
1412 1413 1414 1415 1416 1417 1418 | 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 | + - + + | #endif } - (void)of_removeTimer: (OFTimer *)timer forMode: (OFRunLoopMode)mode { OFRunLoopState *state = stateForMode(self, mode, false); /* {} required to avoid -Wmisleading-indentation false positive. */ |
︙ |