<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 14 Apr 2018, at 07:29, Hollow111 <<a href="mailto:hollow653@gmail.com" class="">hollow653@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hello. I'd like to ask about 'one kind of corrections”.</div></div></blockquote><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><br class="">Arguments which you carry to the next line, should start right below previous:<br class=""><br class="">void f(x int, ….<br class="">         <span class="Apple-converted-space"> </span>y char, ….<br class="">         <span class="Apple-converted-space"> </span>z double …);<br class=""></blockquote><div class=""><br class=""></div><div class="">I couldnt find this in <span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); float: none; display: inline;" class=""><span class=""> </span>"C style guide" (<a href="https://tarantool.io/en/doc/2.0/dev_guide/c_style_guide.html" class="">https://tarantool.io/en/doc/2.0/dev_guide/c_style_guide.html</a>)</span></div><div class="">Moreover according to this guide:</div><div class="">"Outside of comments, documentation and except in Kconfig, spaces are never used for indentation...".</div><div class="">Which means we're supposed to violate this rule</div></div></div></div></div></blockquote><div><br class=""></div><div>In fact, they are used. Probably, we should update and clarify this point in docs.</div><div>You use tabs as much as possible. To precisely align argument lists, you have</div><div>to use spaces:</div><div><br class=""></div><div><div>return_value very_long_function_name_bla_bla_bla(int first_argument,</div><div><span class="Apple-tab-span" style="white-space:pre">                                         </span> int second_argument)</div><div><br class=""></div><div>To make ’second_argument’ be under first, you should use 8 tabs + 1 space.</div><div>Overall, you can inspect other source files from box/ to understand how</div><div>source files should be formatted. Also, I advise you to make spaces and tabs visible.</div><div>For instance, see how it was done in box/space.c 106 : space_create()</div></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><div class="gmail_quote"><div class="">in case first argument is positioned not on the same range </div><div class="">from left corner of screen as any amount of 8-character tabs. </div><div class="">Maybe I'm wrong at smth but I'd like to have an explanation.</div></div></div></div></div></blockquote></div><br class=""></body></html>