Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- ptrdiff_t in Perl modules
- Ilya Zakharevich
April 7, 2009, 9:16 am
rate this thread
What is the history of this type: is it guarantied to be defined in
C code of Perl modules, or do I need to manually calculate it at
configuration time based on %Config? IIRC, Perl requires ANSI C; is
ptrdiff_t required by ANSI C?
I see that in the C code for the portable part of perl itself
ptrdiff_t is not used...
Re: ptrdiff_t in Perl modules
I'm hardly an authority on this, but the ptrdiff_t type will be
available on any ANSI C compiler so long as stddef.h has been
On my Win32 perls, stddef.h gets pulled in via perl.h, and the
ptrdiff_t type is therefore "defined in C code of Perl modules" for
Win32, without having to make any special provisions in the code.
I expect that the same is true of other operating systems, but I don't
know that for sure.
- » Namespace advice for social network analysis tools
- — Previous thread in » PERL Modules Announcements