cvs: php-src /main spprintf.c

From: Date: Fri, 03 Aug 2007 09:51:05 +0000
Subject: cvs: php-src /main spprintf.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-45708@lists.php.net to get a copy of this message
tony2001 Fri Aug 3 09:51:05 2007 UTC Modified files: /php-src/main spprintf.c Log: fix folding http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.47&r2=1.48&diff_format=u Index: php-src/main/spprintf.c diff -u php-src/main/spprintf.c:1.47 php-src/main/spprintf.c:1.48 --- php-src/main/spprintf.c:1.47 Fri Aug 3 09:46:50 2007 +++ php-src/main/spprintf.c Fri Aug 3 09:51:05 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spprintf.c,v 1.47 2007/08/03 09:46:50 tony2001 Exp $ */ +/* $Id: spprintf.c,v 1.48 2007/08/03 09:51:05 tony2001 Exp $ */ /* This is the spprintf implementation. * It has emerged from apache snprintf. See original header: @@ -113,6 +113,8 @@ #include "ext/standard/php_smart_str.h" +/* {{{ macros */ + /* * NUM_BUF_SIZE is the size of the buffer used for arithmetic conversions * @@ -205,12 +207,12 @@ } \ } while (0) - +/* }}} */ /* * Do format conversion placing the output in buffer */ -static void xbuf_format_converter(int unicode, smart_str *xbuf, const char *fmt, va_list ap) +static void xbuf_format_converter(int unicode, smart_str *xbuf, const char *fmt, va_list ap) /* {{{ */ { register char *s = NULL; register UChar *u = NULL; @@ -837,12 +839,12 @@ } return; } - +/* }}} */ /* * This is the general purpose conversion function. */ -PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) +PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */ { smart_str xbuf = {0}; @@ -857,9 +859,9 @@ return xbuf.len; } +/* }}} */ - -PHPAPI int spprintf(char **pbuf, size_t max_len, const char *format, ...) +PHPAPI int spprintf(char **pbuf, size_t max_len, const char *format, ...) /* {{{ */ { int cc; va_list ap; @@ -869,8 +871,9 @@ va_end(ap); return (cc); } +/* }}} */ -PHPAPI int vuspprintf(UChar **pbuf, size_t max_len, const char *format, va_list ap) +PHPAPI int vuspprintf(UChar **pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */ { smart_str xbuf = {0}; @@ -885,8 +888,9 @@ return xbuf.len / sizeof(UChar); } +/* }}} */ -PHPAPI int uspprintf(UChar **pbuf, size_t max_len, const char *format, ...) +PHPAPI int uspprintf(UChar **pbuf, size_t max_len, const char *format, ...) /* {{{ */ { int cc; va_list ap; @@ -896,8 +900,9 @@ va_end(ap); return (cc); } +/* }}} */ -PHPAPI int vzspprintf(zend_uchar type, zstr *pbuf, size_t max_len, const char *format, va_list ap) +PHPAPI int vzspprintf(zend_uchar type, zstr *pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */ { if (type == IS_UNICODE) { return vuspprintf(&pbuf->u, max_len, format, ap); @@ -905,8 +910,9 @@ return vspprintf(&pbuf->s, max_len, format, ap); } } +/* }}} */ -PHPAPI int zspprintf( zend_uchar type, zstr *pbuf, size_t max_len, const char *format, ...) +PHPAPI int zspprintf( zend_uchar type, zstr *pbuf, size_t max_len, const char *format, ...) /* {{{ */ { int cc; va_list ap; @@ -916,6 +922,7 @@ va_end(ap); return (cc); } +/* }}} */ /* * Local variables:

« previous php.cvs (#45708) next »