#include "ext/standard/php_smart_str.h"
+/* {{{ macros */
+
/*
* NUM_BUF_SIZE is the size of the buffer used for arithmetic conversions
*
} \
} 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;
}
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};
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;
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};
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;
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);
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;
va_end(ap);
return (cc);
}
+/* }}} */
/*
* Local variables: