[vbox-dev] [PATCH] fixes and improvements to solaris (guest) shared folders

Ramshankar ramshankar at sun.com
Wed Jun 23 01:54:43 PDT 2010

On Tue, 2010-06-22 at 02:17 -0700, Life is hard, and then you die wrote:
> On Tue, Jun 22, 2010 at 09:29:24AM +0200, Christian Pötzsch wrote:
> > On 06/22/10 00:35, Life is hard, and then you die wrote:
> > > As an aside, I've tried to figure out what the prevailing coding style
> > > is and follow it, but especially when it comes to tabs/spaces and
> > > indentation it wasn't always clear; it would be helpful if there were a
> > > basic style guide on the wiki or something (and if the code consistently
> > > followed it).
> > The coding style guide is located in doc/VBox-CodingGuidelines.cpp.
> Ah, missed that - thanks!
> Hmm, there are several things I didn't find in there:
>  - tabs vs spaces (yes, you answered that below, but shouldn't that be
>    in the doc too?)
>  - indent (same comment as above)
>  - bracing style (seems to be ANSI-style, according to the examples
>    and the majority of code)
>  - max line length (80 chars?)
>  - indentation of wrapped lines - I've seen both fixed, 4 char indentation
>    as well as align with paren in previous line.
> > No tabs, 4 spaces indentation. Not all the source code follow this strictly
> > yet, but it is improving.
> Ok. The vast majority of lines in the source files I edited were of
> the tab variety, and hence that's what I used - I can easily redo the
> patches to use spaces on all the affected lines, if you'd like. Would
> you like a patch that first fixes all the tabs, indentation, and
> bracing? (just for .../solaris/SharedFolders/).

The coding style followed in the solaris Shared Folders is actually the
Solaris kernel coding style from the original developer wrote it this
way, and back then it was written this way as it might end up being part
of Solaris itself.

So for the moment, please preserve this coding style for solaris shared
folders, i.e. tabs and braces.

I'll take a look at the patches you provided and get back to you
regarding them. Thanks a lot for the effort and time on this.


>   Cheers,
>   Ronald
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev

More information about the vbox-dev mailing list