Re: [systemd-devel] [PATCH] use #pragma once instead of foo*foo define guards

2013-11-18 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Nov 18, 2013 at 07:58:43AM -0800, Shawn Landden wrote: > --- > src/core/killall.h | 5 + > src/core/switch-root.h | 5 + > src/core/syscall-list.h | 5 + > src/core/transaction.h | 5 + > src/login/logind-action.h | 5 + > sr

[systemd-devel] [PATCH] use #pragma once instead of foo*foo define guards

2013-11-18 Thread Shawn Landden
--- src/core/killall.h | 5 + src/core/switch-root.h | 5 + src/core/syscall-list.h | 5 + src/core/transaction.h | 5 + src/login/logind-action.h | 5 + src/login/logind-button.h | 5 + src/login/logind-inhibit.h | 5

Re: [systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-19 Thread Lennart Poettering
On Wed, 18.07.12 10:07, Shawn Landden (shawnland...@gmail.com) wrote: > #pragma once has been "un-deprecated" in gcc since 3.3, and is widely > supported > in other compilers. > > I've been using and maintaining (rebasing) this patch for a while now, as > it annoyed me to see #ifndef fooblahfoo

Re: [systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-18 Thread Cristian Rodríguez
El 18/07/12 07:31, Lucas De Marchi escribió: > On Wed, Jul 18, 2012 at 7:47 AM, Kay Sievers wrote: >> On Wed, Jul 18, 2012 at 12:39 PM, Lennart Poettering >> wrote: >>> On Tue, 17.07.12 17:14, Shawn Landden (shawnland...@gmail.com) wrote: >> >>> Hmm, so I am not completely opposed to this (though

[systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-18 Thread Shawn Landden
#pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported in other compilers. I've been using and maintaining (rebasing) this patch for a while now, as it annoyed me to see #ifndef fooblahfoo, etc all over the place, almost arrogant about the annoyance of having to define al

[systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-18 Thread Shawn Landden
#pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported in other compilers. I've been using and maintaining (rebasing) this patch for a while now, as it annoyed me to see #ifndef fooblahfoo, etc all over the place, almost arrogant about the annoyance of having to define al

Re: [systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-18 Thread Lucas De Marchi
On Wed, Jul 18, 2012 at 7:47 AM, Kay Sievers wrote: > On Wed, Jul 18, 2012 at 12:39 PM, Lennart Poettering > wrote: >> On Tue, 17.07.12 17:14, Shawn Landden (shawnland...@gmail.com) wrote: > >> Hmm, so I am not completely opposed to this (though I also don't see the >> big benefit). But before we

Re: [systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-18 Thread Kay Sievers
On Wed, Jul 18, 2012 at 12:39 PM, Lennart Poettering wrote: > On Tue, 17.07.12 17:14, Shawn Landden (shawnland...@gmail.com) wrote: > Hmm, so I am not completely opposed to this (though I also don't see the > big benefit). But before we merge anything like this: I think the > externally visible h

Re: [systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-18 Thread Lennart Poettering
On Tue, 17.07.12 17:14, Shawn Landden (shawnland...@gmail.com) wrote: > #pragma once has been "un-deprecated" in gcc since 3.3, and is widely > supported > in other compilers. > > I've been using and maintaining (rebasing) this patch for a while now, as > it annoyed me to see #ifndef fooblahfoo

Re: [systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-18 Thread Zbigniew Jędrzejewski-Szmek
On 07/18/2012 02:14 AM, Shawn Landden wrote: > #pragma once has been "un-deprecated" in gcc since 3.3, and is widely > supported > in other compilers. > 101 files changed, 101 insertions(+), 403 deletions(-) Looking at http://en.wikipedia.org/wiki/Pragma_once#Portability, this doesn't seem lik

[systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

2012-07-17 Thread Shawn Landden
#pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported in other compilers. I've been using and maintaining (rebasing) this patch for a while now, as it annoyed me to see #ifndef fooblahfoo, etc all over the place, almost arrogant about the annoyance of having to define al