You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@corinthia.apache.org by Ian C <ia...@amham.net> on 2015/06/07 10:50:04 UTC
hash pragma
Hi All,
I am in the process of restructuring the ODF code to parallel that of the
Word processing code.
A small item, in my day job, I am used to using #pragma once instead of the
#defines in the header files.
See http://en.wikipedia.org/wiki/Pragma_once for a discussion and a list of
supported compilers. Which is almost all.
What do we think about using it?
--
Cheers,
Ian C
RE: hash pragma
Posted by "Dennis E. Hamilton" <de...@acm.org>.
Although #pragma once is supported in Visual Studio since at least VS 2003, it is interesting that the MSDN page applicable to the recent VS 2015 RC release has more details:
<https://msdn.microsoft.com/en-us/library/4141z1cx(v=vs.140).aspx>.
This is more support for making the change though, not less.
- Dennis
-----Original Message-----
From: Peter Kelly [mailto:pmkelly@apache.org]
Sent: Sunday, June 7, 2015 03:01
To: dev@corinthia.incubator.apache.org
Subject: Re: hash pragma
> On 7 Jun 2015, at 4:35 pm, Ian C <ia...@amham.net> wrote:
>
> On Sun, Jun 7, 2015 at 5:27 PM, jan i <ja...@apache.org> wrote:
>
>> I have several other projects where I use #pragma so I am all for it.
>> However we should NOT have double standards, so if we go for it, we need
>> to change all header files in one commit.
>>
> That could make it more difficult. Unless we have a script whiz.
> Or someone with a lot or time and patience : -)
I’ll volunteer, it won’t take me long :)
I agree it’s a good idea and we should do it. I didn’t realise until now that it was so widely supported.
—
Dr Peter M. Kelly
pmkelly@apache.org
PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)
Re: hash pragma
Posted by Peter Kelly <pm...@apache.org>.
> On 7 Jun 2015, at 4:35 pm, Ian C <ia...@amham.net> wrote:
>
> On Sun, Jun 7, 2015 at 5:27 PM, jan i <ja...@apache.org> wrote:
>
>> I have several other projects where I use #pragma so I am all for it.
>> However we should NOT have double standards, so if we go for it, we need
>> to change all header files in one commit.
>>
> That could make it more difficult. Unless we have a script whiz.
> Or someone with a lot or time and patience : -)
I’ll volunteer, it won’t take me long :)
I agree it’s a good idea and we should do it. I didn’t realise until now that it was so widely supported.
—
Dr Peter M. Kelly
pmkelly@apache.org
PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)
Re: hash pragma
Posted by Ian C <ia...@amham.net>.
On Sun, Jun 7, 2015 at 5:27 PM, jan i <ja...@apache.org> wrote:
> On 7 June 2015 at 10:50, Ian C <ia...@amham.net> wrote:
>
> > Hi All,
> >
> > I am in the process of restructuring the ODF code to parallel that of the
> > Word processing code.
> >
> I hope you and gabriela coordinate ?
>
Yeah, we chat...
>
> >
> > A small item, in my day job, I am used to using #pragma once instead of
> the
> > #defines in the header files.
> >
> > See http://en.wikipedia.org/wiki/Pragma_once for a discussion and a list
> > of
> > supported compilers. Which is almost all.
> >
> > What do we think about using it?
> >
> I have several other projects where I use #pragma so I am all for it.
> However we should NOT have double standards, so if we go for it, we need
> to change all header files in one commit.
>
That could make it more difficult. Unless we have a script whiz.
Or someone with a lot or time and patience : -)
rgds
> jan I.
>
> >
> > --
> > Cheers,
> >
> > Ian C
> >
>
--
Cheers,
Ian C
Re: hash pragma
Posted by jan i <ja...@apache.org>.
On 7 June 2015 at 10:50, Ian C <ia...@amham.net> wrote:
> Hi All,
>
> I am in the process of restructuring the ODF code to parallel that of the
> Word processing code.
>
I hope you and gabriela coordinate ?
>
> A small item, in my day job, I am used to using #pragma once instead of the
> #defines in the header files.
>
> See http://en.wikipedia.org/wiki/Pragma_once for a discussion and a list
> of
> supported compilers. Which is almost all.
>
> What do we think about using it?
>
I have several other projects where I use #pragma so I am all for it.
However we should NOT have double standards, so if we go for it, we need
to change all header files in one commit.
rgds
jan I.
>
> --
> Cheers,
>
> Ian C
>