Page MenuHomePhabricator

Standardize inline and static declaration order.
ClosedPublic

Authored by deadalnix on Jul 31 2017, 12:34.

Details

Summary

Just readability patch. No semantic change. It seems like clang-format likes it better as well.

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
statictype
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 636
Build 636: arc lint + arc unit

Event Timeline

CCulianu added a subscriber: CCulianu.

Jesus wept. Core... core.. core...

Really.. REALLY!? REALLY?!?!!1one

I can't.. even.. believe.. this was in the original bitcoin sources.

So ugly.

YES. Thank you for this cleanup. OMFG. I almost wanted to vomit at the original. So much suck.

int static foo;

WHO DOES THIS?! I have been reading C sources since 1990 and .. even esoteric stuff like K&R style function declarations have a place. But this.. this. Noone. Ever. Codes this way.

Thank you for fixing this!!!!!!!!!!!

(PS: Went over all the changes visually, as well as compiled and works.)

This revision is now accepted and ready to land.Aug 3 2017, 17:37
This revision was automatically updated to reflect the committed changes.