tony2001 Fri Aug 3 09:46:50 2007 UTC
Modified files:
/php-src/main spprintf.c
Log:
add I64 support to spprintf() (snprintf() already has it)
http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.46&r2=1.47&diff_format=u
Index: php-src/main/spprintf.c
diff -u php-src/main/spprintf.c:1.46 php-src/main/spprintf.c:1.47
--- php-src/main/spprintf.c:1.46 Mon Jun 25 08:39:23 2007
+++ php-src/main/spprintf.c Fri Aug 3 09:46:50 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spprintf.c,v 1.46 2007/06/25 08:39:23 dmitry Exp $ */
+/* $Id: spprintf.c,v 1.47 2007/08/03 09:46:50 tony2001 Exp $ */
/* This is the spprintf implementation.
* It has emerged from apache snprintf. See original header:
@@ -337,6 +337,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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php