<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Sat, 5 Jan 2019 at 13:19, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Jan 4, 2019 at 9:11 PM Ben Coman <<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div dir="ltr"><div dir="ltr"><div>What is the preferred coding convention for function definitions...?</div><div>For example...</div><div dir="ltr"><br><div>static int convertCopy(char *from, int fromLen, char *to, int toLen, int term)<br></div></div></div></div></blockquote><div><br></div><div>I loathe this.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div>static int <br></div><div>convertCopy(char *from, int fromLen, char *to, int toLen, int term)<br></div></div></div></div></blockquote><div><br></div><div>Yes please.  </div></div></div></blockquote><div><br></div><div>Cool.  btw, the reason I ask is that I've been reviewing minheadless and several of the files Ronie copied into minheadless </div><div>he converted from the former to the latter.  To make it easier to diff between these, I'll have a go a converting </div><div>the original files to the same convention.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Being able to grep for function definitions bu searching for the name at beginning of line is very useful.  </div></div></div></blockquote><div><br></div><div>Ahh, nice trick!   Suddenly I've used that already a few time today.</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Yes, one can use project files to get more convenient searching than find and grep provide, but those are platform specific. If one really wants to search the entire code base across all platforms only find and grep work reliably.  And hence designing coding conventions for those tools, while apparently antiquated, makes solid sense in a complex cross-platform project, IMO & IME.</div></div><div><br></div>I should perhaps write up the coding conventions I prefer, but in the absence of that, one that I really like is 4-space tabs.</div></blockquote><div><br></div><div>Me too.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>What I would really like is a comprehensive list of editors people use and what conventions those editors support for specifying tab stops, if any.  We could then start adding those specifications to platform files and generated files alike.</div></div></blockquote><div><br></div><div>I use mostly `vi` because its the most common tool available.  But back when I was doing the MSVC minheadless</div><div>it was a comparative real joy clicking back and forth between error messages in Visual Studio to got straight to the related code.</div><div>The other Visual Studio feature I discovered that really improved workflow was shading of #ifdef'd out code. </div><div><br></div><div>cheers -ben</div></div></div>