Re: Coding Style for local variables

2024-06-20 Thread Stephen Hemminger
On Thu, 20 Jun 2024 11:02:21 +0200 Morten Brørup wrote: > > From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > > > > > 10/06/2024 18:31, Konstantin Ananyev: > > > > > Morten said: > > > > > > The coding sty

RE: Coding Style for local variables

2024-06-20 Thread Morten Brørup
> From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > > > 10/06/2024 18:31, Konstantin Ananyev: > > > > Morten said: > > > > > The coding style guide says: > > > > > > > > > > "Variables should be declared at the start

RE: Coding Style for local variables

2024-06-20 Thread Konstantin Ananyev
> > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > 10/06/2024 18:31, Konstantin Ananyev: > > > Morten said: > > > > The coding style guide says: > > > > > > > > "Variables should be declared at the start of a block of code rather > > > > than > > in the middle. The exception to this

RE: Coding Style for local variables

2024-06-20 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 10/06/2024 18:31, Konstantin Ananyev: > > Morten said: > > > The coding style guide says: > > > > > > "Variables should be declared at the start of a block of code rather than > in the middle. The exception to this is when the variable is >

Re: Coding Style for local variables

2024-06-19 Thread Thomas Monjalon
10/06/2024 18:31, Konstantin Ananyev: > Morten said: > > The coding style guide says: > > > > "Variables should be declared at the start of a block of code rather than > > in the middle. The exception to this is when the variable is > > const in which case the declaration must be at the point of

Re: Coding Style for local variables

2024-06-17 Thread Bruce Richardson
On Mon, Jun 10, 2024 at 05:10:01PM +0200, Morten Brørup wrote: > The coding style guide says: > > "Variables should be declared at the start of a block of code rather than in > the middle. The exception to this is when the variable is const in which case > the declaration must be at the point of

Re: Coding Style for local variables

2024-06-11 Thread Stephen Hemminger
On Tue, 11 Jun 2024 16:10:33 +0100 Ferruh Yigit wrote: > On 6/10/2024 4:10 PM, Morten Brørup wrote: > > The coding style guide says: > > > > "Variables should be declared at the start of a block of code rather than > > in the middle. The exception to this is when the variable is const in which

Re: Coding Style for local variables

2024-06-11 Thread Ferruh Yigit
On 6/10/2024 4:10 PM, Morten Brørup wrote: > The coding style guide says: > > "Variables should be declared at the start of a block of code rather than in > the middle. The exception to this is when the variable is const in which case > the declaration must be at the point of first use/assignmen

RE: Coding Style for local variables

2024-06-10 Thread Konstantin Ananyev
> The coding style guide says: > > "Variables should be declared at the start of a block of code rather than in > the middle. The exception to this is when the variable is > const in which case the declaration must be at the point of first > use/assignment. Declaring variable inside a for loo

Re: Coding Style for local variables

2024-06-10 Thread Tyler Retzlaff
On Mon, Jun 10, 2024 at 05:10:01PM +0200, Morten Brørup wrote: > The coding style guide says: > > "Variables should be declared at the start of a block of code rather than in > the middle. The exception to this is when the variable is const in which case > the declaration must be at the point of