Re: Lowercase or camelcase function names?
| From: | Johannes Findeisen | Date: | Tue, 08 Nov 2011 01:28:37 +0000 |
| Subject: | Re: Lowercase or camelcase function names? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8825@lists.php.net to get a copy of this message | ||
On Tue, 08 Nov 2011 01:23:20 +0100
Johannes Schlüter <johannes@schlueters.de> wrote:
[...]
> > > One thing I did not realize yesterday is that you're using the type
> > > "LONG". C only defines a type "long". Is LONG defined in pcsc?
> > > Will it
> > > be compatible to C's "long"? (C's long can be a bit
> > > "annoying" - on
> > > 32bit machines it is usually 32 bit. On 64bit Unix/Linux machines it
> > > usually is 64bits, on 64bit Windows it's 32bit)
> >
> > Yes, it is defined in pcsc. I found this in a file called
> > "wintypes.h"... :/
> >
> > typedef int32_t LONG;
> >
> > I think to remember that this is part of the SCard API (PC/SC)
> > definition.
>
> wintypes.h sounds like Windows. On Windows an int32_t as long is fine
> (also on 64bit), is there some otherp lace it's defined for other OSs?
> Mixing 32 and 64 bit types can be a mess otherwise.
I where to fast some hours ago...
The definition of "LONG" is in the same file. The first definition was
for __APPLE__ :/ I found this for "else" OS's:
typedef long LONG;
Johannes