summaryrefslogtreecommitdiff
path: root/main/spprintf.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-08-03 09:51:12 +0000
committerAntony Dovgal <tony2001@php.net>2007-08-03 09:51:12 +0000
commit4a43566b19f0d274da73ed3646ce8587e0d3a26a (patch)
treebcd98fc8e779952c2dfeffc76d4dafa283a9d846 /main/spprintf.c
parent57daf22d8fef6a5af3048509db101048ddeffbe7 (diff)
downloadphp-git-4a43566b19f0d274da73ed3646ce8587e0d3a26a.tar.gz
fix folding
Diffstat (limited to 'main/spprintf.c')
-rw-r--r--main/spprintf.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/main/spprintf.c b/main/spprintf.c
index 2bc3cb96fd..23d695d0dc 100644
--- a/main/spprintf.c
+++ b/main/spprintf.c
@@ -112,6 +112,8 @@
#include "ext/standard/php_smart_str.h"
+/* {{{ macros */
+
/*
* NUM_BUF_SIZE is the size of the buffer used for arithmetic conversions
*
@@ -176,12 +178,12 @@
} \
} 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;
@@ -745,12 +747,12 @@ skip_output:
}
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};
@@ -765,9 +767,9 @@ PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap
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;
@@ -777,6 +779,8 @@ PHPAPI int spprintf(char **pbuf, size_t max_len, const char *format, ...)
va_end(ap);
return (cc);
}
+/* }}} */
+
/*
* Local variables:
* tab-width: 4