Re: cvs: php-src /main snprintf.c
| From: | Marcus Boerger | Date: | Thu, 12 Apr 2007 22:47:45 +0000 |
| Subject: | Re: cvs: php-src /main snprintf.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-43854@lists.php.net to get a copy of this message | ||
Hello Antony,
under windows, where this is coming from (iirc), there is "__int64". Is
that mapped to SIZEOF_LONG_LONG and don't you need to check for the
actual value being 8?
best regards
marcus
Friday, April 13, 2007, 12:00:56 AM, you wrote:
> tony2001 Thu Apr 12 22:00:56 2007 UTC
> Modified files:
> /php-src/main snprintf.c
> Log:
> add support for %I64(u|d) to sprintf() utilities
>
>
>
> http://cvs.php.net/viewvc.cgi/php-src/main/snprintf.c?r1=1.54&r2=1.55&diff_format=u
> Index: php-src/main/snprintf.c
> diff -u php-src/main/snprintf.c:1.54 php-src/main/snprintf.c:1.55
> --- php-src/main/snprintf.c:1.54 Mon Apr 9 15:35:49 2007
> +++ php-src/main/snprintf.c Thu Apr 12 22:00:56 2007
> @@ -16,7 +16,7 @@
> +----------------------------------------------------------------------+
> */
>
> -/* $Id: snprintf.c,v 1.54 2007/04/09 15:35:49 dmitry Exp $ */
> +/* $Id: snprintf.c,v 1.55 2007/04/12 22:00:56 tony2001 Exp $ */
>
>
> #include "php.h"
> @@ -706,6 +706,16 @@
> fmt++;
> modifier = LM_LONG_DOUBLE;
> break;
> + case 'I':
> + fmt++;
> +#if SIZEOF_LONG_LONG
> + if (*fmt == '6' && *(fmt+1) ==
> '4') {
> + fmt += 2;
> + modifier = LM_LONG_LONG;
> + } else
> +#endif
> + modifier = LM_LONG;
> + break;
> case 'l':
> fmt++;
> #if SIZEOF_LONG_LONG
Best regards,
Marcus