chrisdolan has asked for the wisdom of the Perl Monks concerning the following question:
What's the right way to specify a "long long" (aka signed 64-bit int) in an XS typemap file for a 32-bit Perl? I've found it varyingly declared as:
Specifically, I'm trying to get this bit of XS to work with a stock Apple-provided Perl for a QuickTime utility function:
QTTime QTMakeTime(timeValue, timeScale) long long timeValue long timeScale
(Side note: a good way to phrase this search in google is: site:search.cpan.org "long long" inurl:typemap)
Update: To summarize the thread, there is no right way, but there are a bunch of possible hacks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Supporting long long types in XS
by Joost (Canon) on Nov 21, 2006 at 17:53 UTC | |
by tye (Sage) on Nov 21, 2006 at 18:29 UTC | |
by Joost (Canon) on Nov 21, 2006 at 20:10 UTC | |
by ikegami (Patriarch) on Nov 21, 2006 at 20:24 UTC | |
by BrowserUk (Patriarch) on Nov 21, 2006 at 20:27 UTC | |
by Anonymous Monk on Nov 21, 2006 at 20:51 UTC | |
|