tony2001 Fri Aug 3 14:30:59 2007 UTC
Modified files:
/php-src/main snprintf.c spprintf.c
Log:
'I32' and 'I' support (per request by Marcus)
http://cvs.php.net/viewvc.cgi/php-src/main/snprintf.c?r1=1.57&r2=1.58&diff_format=u
Index: php-src/main/snprintf.c
diff -u php-src/main/snprintf.c:1.57 php-src/main/snprintf.c:1.58
--- php-src/main/snprintf.c:1.57 Mon Jun 25 08:39:23 2007
+++ php-src/main/snprintf.c Fri Aug 3 14:30:59 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: snprintf.c,v 1.57 2007/06/25 08:39:23 dmitry Exp $ */
+/* $Id: snprintf.c,v 1.58 2007/08/03 14:30:59 tony2001 Exp $ */
#include "php.h"
@@ -714,7 +714,16 @@
modifier = LM_LONG_LONG;
} else
#endif
- modifier = LM_LONG;
+ if (*fmt == '3' && *(fmt+1) ==
'2') {
+ fmt += 2;
+ modifier = LM_LONG;
+ } else {
+#ifdef _WIN64
+ modifier = LM_LONG_LONG;
+#else
+ modifier = LM_LONG;
+#endif
+ }
break;
case 'l':
fmt++;
http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.48&r2=1.49&diff_format=u
Index: php-src/main/spprintf.c
diff -u php-src/main/spprintf.c:1.48 php-src/main/spprintf.c:1.49
--- php-src/main/spprintf.c:1.48 Fri Aug 3 09:51:05 2007
+++ php-src/main/spprintf.c Fri Aug 3 14:30:59 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spprintf.c,v 1.48 2007/08/03 09:51:05 tony2001 Exp $ */
+/* $Id: spprintf.c,v 1.49 2007/08/03 14:30:59 tony2001 Exp $ */
/* This is the spprintf implementation.
* It has emerged from apache snprintf. See original header:
@@ -347,7 +347,16 @@
modifier = LM_LONG_LONG;
} else
#endif
- modifier = LM_LONG;
+ if (*fmt == '3' && *(fmt+1) ==
'2') {
+ fmt += 2;
+ modifier = LM_LONG;
+ } else {
+#ifdef _WIN64
+ modifier = LM_LONG_LONG;
+#else
+ modifier = LM_LONG;
+#endif
+ }
break;
case 'l':
fmt++;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php