DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Matthew Hall <mhall@mhcomputing.net>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PKTGEN] OK to reindent the pktgen (mix of tabs and spaces, etc.)?
Date: Sun, 3 Jan 2016 15:06:09 -0800	[thread overview]
Message-ID: <20160103150609.0cfd0787@xeon-e3> (raw)
In-Reply-To: <56899BA7.60006@mhcomputing.net>

On Sun, 3 Jan 2016 14:07:35 -0800
Matthew Hall <mhall@mhcomputing.net> wrote:

> On 1/3/16 9:09 AM, Wiles, Keith wrote:
> > Pktgen is setup for tabs for 4 (with replace tabs with spaces), using tab stop of 8 is just wrong IMO :-)
> > Just started using kdevelop instead of eclipse, so I may have corrupted the style some :-(
> 
> The problem I found was a number of files had an incompatible 
> combination of the two formats.
> 
> Personally, I agree tab size 4 w/ spaces instead of tabs is easiest to 
> read and edit. But I could live with any space based system for the most 
> part. I find tab based systems are unpleasant because it is difficult 
> when tabs are used for one thing and spaces for another thing. This 
> annoyance also applies to DPDK and the kernel but it's too late for both 
> of those.
> 
> > At least it is suppose to be done that way. I will reformat the code (with tabs=4) and have a look at the output.
> 
> Thanks this will be a big help.
> 
> > I can run the astyle on the code and look at the output, if it looks OK I will submit it to the repo
> 
> Sounds great... it is no big hurry on my end but I want to start with a 
> clean slate before I get invested in the code, and start really hitting 
> it hard, and making patches.
> 
> The formatting command I provided is not perfect, but it was the best I 
> could do with the various popular indenter tools to try to avoid messing 
> up too much of the rest of the good code in the files in the process of 
> fixing the format.
> 
> You might be able to improve it a bit further w/ some additional 
> experimentation since you are the original maintainer of the code 
> obviously. Or perhaps reformat using tools in Eclipse or KDevelop? I had 
> good luck w/ Eclipse before with special configuration but I only mostly 
> used the Java mode not the C / C++ one which is less good.
> 
> Matthew.

Since DPDK mostly follows kernel style, why should this program be different?

  reply	other threads:[~2016-01-03 23:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-03 17:09 Wiles, Keith
2016-01-03 22:07 ` Matthew Hall
2016-01-03 23:06   ` Stephen Hemminger [this message]
2016-01-04  2:35   ` Wiles, Keith
2016-01-03 23:35 ` Ferruh Yigit
2016-01-04  0:15   ` Wiles, Keith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160103150609.0cfd0787@xeon-e3 \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=mhall@mhcomputing.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).