Re: How my codes comply with gcc code formatting?

2014-03-05 Thread David Malcolm
On Wed, 2014-03-05 at 15:46 +0800, lin zuojian wrote: On Wed, Mar 05, 2014 at 11:29:07AM +0400, Yury Gribov wrote: That is not true. The indentation style is: http://www.gnu.org/prep/standards/standards.html#Formatting ... The above also mentions particular options for GNU indent which

Re: How my codes comply with gcc code formatting?

2014-03-05 Thread Markus Trippelsdorf
On 2014.03.05 at 11:18 -0500, David Malcolm wrote: On Wed, 2014-03-05 at 15:46 +0800, lin zuojian wrote: On Wed, Mar 05, 2014 at 11:29:07AM +0400, Yury Gribov wrote: That is not true. The indentation style is: http://www.gnu.org/prep/standards/standards.html#Formatting ... The

Re: How my codes comply with gcc code formatting?

2014-03-05 Thread Marc Glisse
On Wed, 5 Mar 2014, David Malcolm wrote: On Wed, 2014-03-05 at 15:46 +0800, lin zuojian wrote: On Wed, Mar 05, 2014 at 11:29:07AM +0400, Yury Gribov wrote: That is not true. The indentation style is: http://www.gnu.org/prep/standards/standards.html#Formatting ... The above also mentions

How my codes comply with gcc code formatting?

2014-03-04 Thread lin zuojian
Hi, I have summited a patch in this ml.But the difficult part may be the code formatting.I am using vim as my editor. -- Regards lin zuojian.

Re: How my codes comply with gcc code formatting?

2014-03-04 Thread Marek Polacek
On Wed, Mar 05, 2014 at 11:31:59AM +0800, lin zuojian wrote: Hi, I have summited a patch in this ml.But the difficult part may be the code formatting.I am using vim as my editor. I'm not sure what you asking for here. But to learn how to format your code, I think just look at the GCC

Re: How my codes comply with gcc code formatting?

2014-03-04 Thread lin zuojian
On Wed, Mar 05, 2014 at 07:28:35AM +0100, Marek Polacek wrote: On Wed, Mar 05, 2014 at 11:31:59AM +0800, lin zuojian wrote: Hi, I have summited a patch in this ml.But the difficult part may be the code formatting.I am using vim as my editor. I'm not sure what you asking for here.

Re: How my codes comply with gcc code formatting?

2014-03-04 Thread Yury Gribov
I'm not sure what you asking for here. But to learn how to format your code, I think just look at the GCC source code and model your code after that. I am not understanding the standard.For example,should I use \t instead of space?Should I use 4 spaces as indent or 2? My understanding

Re: How my codes comply with gcc code formatting?

2014-03-04 Thread Jakub Jelinek
On Wed, Mar 05, 2014 at 10:56:39AM +0400, Yury Gribov wrote: I'm not sure what you asking for here. But to learn how to format your code, I think just look at the GCC source code and model your code after that. I am not understanding the standard.For example,should I use \t instead

Re: How my codes comply with gcc code formatting?

2014-03-04 Thread Yury Gribov
That is not true. The indentation style is: http://www.gnu.org/prep/standards/standards.html#Formatting ... The above also mentions particular options for GNU indent which set various rules. Ah, good to know. So, are contributors expected to run indent on their changes before sending patches?

Re: How my codes comply with gcc code formatting?

2014-03-04 Thread lin zuojian
On Wed, Mar 05, 2014 at 11:29:07AM +0400, Yury Gribov wrote: That is not true. The indentation style is: http://www.gnu.org/prep/standards/standards.html#Formatting ... The above also mentions particular options for GNU indent which set various rules. Ah, good to know. So, are