Commit 4b0c696
committed
attr.c: simplify macroexpand_one()
The double-loop wants to do an early return immediately when one
matching macro is found. Eliminate the extra variable 'a' used for
that purpose and rewrite the "assign the found item to 'a' to make
it non-NULL and force the loop(s) to terminate" with a direct return
from there.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 034d35c commit 4b0c696
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
709 | 708 | | |
710 | 709 | | |
711 | 710 | | |
712 | 711 | | |
713 | 712 | | |
714 | 713 | | |
715 | | - | |
716 | | - | |
| 714 | + | |
| 715 | + | |
717 | 716 | | |
718 | 717 | | |
719 | 718 | | |
720 | 719 | | |
721 | | - | |
| 720 | + | |
722 | 721 | | |
723 | | - | |
724 | | - | |
725 | | - | |
| 722 | + | |
726 | 723 | | |
727 | 724 | | |
728 | 725 | | |
| |||
0 commit comments