Commit caa8c16
committed
ParseXS: refactor: fetch_para(): invert if
change
if (cond) {
... lots lines ...
}
to
if (!cond) {
goto read_next_line;
}
... lots lines ...
read_next_line:
which might be considered a bit regressive in a 'goto considered
harmful' sort of way, but will will help with further refactoring,
and emphasises that the current input line is discarded if the condition
isn't met (i.e. it strips out code comments, which wasn't obvious).1 parent 21e6471 commit caa8c16
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
| 665 | + | |
670 | 666 | | |
671 | 667 | | |
672 | 668 | | |
673 | 669 | | |
674 | 670 | | |
675 | 671 | | |
676 | | - | |
| 672 | + | |
677 | 673 | | |
678 | 674 | | |
679 | 675 | | |
| |||
683 | 679 | | |
684 | 680 | | |
685 | 681 | | |
686 | | - | |
687 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
688 | 692 | | |
689 | 693 | | |
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
693 | | - | |
| 697 | + | |
694 | 698 | | |
695 | 699 | | |
696 | 700 | | |
| |||
721 | 725 | | |
722 | 726 | | |
723 | 727 | | |
724 | | - | |
725 | 728 | | |
| 729 | + | |
| 730 | + | |
726 | 731 | | |
727 | 732 | | |
728 | 733 | | |
| |||
0 commit comments