Re: [Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-29 Thread Martin Basti
On 27.05.2016 17:33, Nathaniel McCallum wrote: On Tue, 2016-05-24 at 12:25 -0400, Nathaniel McCallum wrote: On Tue, 2016-05-24 at 11:01 -0400, Nathaniel McCallum wrote: On Tue, 2016-05-24 at 16:55 +0200, Martin Kosek wrote: On 05/24/2016 04:29 PM, Nathaniel McCallum wrote: Using a pragma in

Re: [Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-27 Thread Nathaniel McCallum
On Tue, 2016-05-24 at 12:25 -0400, Nathaniel McCallum wrote: > On Tue, 2016-05-24 at 11:01 -0400, Nathaniel McCallum wrote: > > On Tue, 2016-05-24 at 16:55 +0200, Martin Kosek wrote: > > > On 05/24/2016 04:29 PM, Nathaniel McCallum wrote: > > > > Using a pragma instead of guards is easier to write,

Re: [Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-24 Thread Nathaniel McCallum
On Tue, 2016-05-24 at 11:01 -0400, Nathaniel McCallum wrote: > On Tue, 2016-05-24 at 16:55 +0200, Martin Kosek wrote: > > On 05/24/2016 04:29 PM, Nathaniel McCallum wrote: > > > Using a pragma instead of guards is easier to write, less error > > > prone > > > and avoids name clashes (a source of ve

Re: [Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-24 Thread Nathaniel McCallum
On Tue, 2016-05-24 at 16:55 +0200, Martin Kosek wrote: > On 05/24/2016 04:29 PM, Nathaniel McCallum wrote: > > Using a pragma instead of guards is easier to write, less error > > prone > > and avoids name clashes (a source of very subtle bugs). This pragma > > is supported on almost all compilers,

Re: [Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-24 Thread Christian Heimes
On 2016-05-24 16:29, Nathaniel McCallum wrote: > Using a pragma instead of guards is easier to write, less error prone > and avoids name clashes (a source of very subtle bugs). This pragma > is supported on almost all compilers, including all the compilers we > care about: https://en.wikipedia.org/

Re: [Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-24 Thread Martin Kosek
On 05/24/2016 04:29 PM, Nathaniel McCallum wrote: > Using a pragma instead of guards is easier to write, less error prone > and avoids name clashes (a source of very subtle bugs). This pragma > is supported on almost all compilers, including all the compilers we > care about: https://en.wikipedia.o

Re: [Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-24 Thread Nathaniel McCallum
On Tue, 2016-05-24 at 10:29 -0400, Nathaniel McCallum wrote: > Using a pragma instead of guards is easier to write, less error prone > and avoids name clashes (a source of very subtle bugs). This pragma > is supported on almost all compilers, including all the compilers we > care about: https://en.

[Freeipa-devel] [PATCH 0094] Migrate from #ifndef guards to #pragma once

2016-05-24 Thread Nathaniel McCallum
Using a pragma instead of guards is easier to write, less error prone and avoids name clashes (a source of very subtle bugs). This pragma is supported on almost all compilers, including all the compilers we care about: https://en.wikipedia.org/wiki/Pragma_once#Portability.From 29adf64e366535f087b60