#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(smart_str *xbuf, const char *fmt, va_list ap)
+static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) /* {{{ */
{
register char *s = NULL;
char *q;
}
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);
}
+/* }}} */
+
/*
* Local variables:
* tab-width: 4