[Toybox] [PATCH] vi: Code style cleanup
jarno Mäkipää
jmakip87 at gmail.com
Sun Mar 24 12:06:03 PDT 2019
Variable initialization to start of blocks
Space after if,for,while: if() -> if ()
Space after comma on function calls:
write(fd,buf,count); -> write(fd, buf, count);
Spaces surrounding variable initialization
Pointer * binding to variable instead of type: int* i -> int *i
Spaces surrounding compare operators
No spaces surrounding arimetic operators
Some aligntment whitespace fixes
Still messy and needs more cleanup, but there is bigger issues to solve
first.
---
toys/pending/vi.c | 369 +++++++++++++++++++++++-----------------------
1 file changed, 186 insertions(+), 183 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190324/223bc49b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vi-Code-style-cleanup.patch
Type: text/x-patch
Size: 23948 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190324/223bc49b/attachment-0002.bin>
More information about the Toybox
mailing list