[PATCH v2 6/7] fixdep: refactor parse_dep_file()

2018-01-11 Thread Masahiro Yamada
parse_dep_file() has too much indentation, and puts the code far to the right. This commit refactors the code and reduces the one level of indentation. strrcmp() computes 'slen' by itself, but the caller already knows the length of the token, so 'slen' can be passed via function argument. With

[PATCH v2 6/7] fixdep: refactor parse_dep_file()

2018-01-11 Thread Masahiro Yamada
parse_dep_file() has too much indentation, and puts the code far to the right. This commit refactors the code and reduces the one level of indentation. strrcmp() computes 'slen' by itself, but the caller already knows the length of the token, so 'slen' can be passed via function argument. With