| [reply] |
I don't understand why you are now talking about sv_setnv(): this doesn't appear in the typemap you showed above.
The standard typemap for outputting integer values will do either sv_setiv($arg, (IV)$var) or sv_setuv($arg, (UV)$var) depending on whether the integer type is signed or not. The IV or UV types are usually defined as being the largest integer type that the compiler supports: they're large enough to hold a pointer, and often larger than a plain int (8 bytes versus 4 bytes).
Dave.
| [reply] |
I don't understand why you are now talking about sv_setnv(): this doesn't appear in the typemap you showed above.
Sorry, I mean sv_setuv.
The standard typemap for outputting integer values will do either sv_setiv($arg, (IV)$var) or sv_setuv($arg, (UV)$var) depending on whether the integer type is signed or not. The IV or UV types are usually defined as being the largest integer type that the compiler supports: they're large enough to hold a pointer, and often larger than a plain int (8 bytes versus 4 bytes).
Oh, I fully understand it! Thanks so much for your patient answer!
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
| [reply] |