Changes for BeOS, QNX and long long, by Chris Herborth.

This commit is contained in:
Guido van Rossum 1998-08-04 22:46:29 +00:00
parent 7d896ab1bb
commit 1a8791e0b8
12 changed files with 559 additions and 1 deletions

View file

@ -499,6 +499,20 @@ convertsimple1(arg, p_format, p_va)
break;
}
#if HAVE_LONG_LONG
case 'L': /* long long */
{
long long *p = va_arg( *p_va, long long * );
long long ival = PyLong_AsLongLong( arg );
if( ival == (long long)-1 && PyErr_Occurred() ) {
return "long<L>";
} else {
*p = ival;
}
break;
}
#endif
case 'f': /* float */
{
float *p = va_arg(*p_va, float *);
@ -988,6 +1002,14 @@ skipitem(p_format, p_va)
break;
}
#if HAVE_LONG_LONG
case 'L': /* long long int */
{
(void) va_arg(*p_va, long long *);
break;
}
#endif
case 'f': /* float */
{
(void) va_arg(*p_va, float *);