]> granicus.if.org Git - php/commitdiff
fix folding
authorAntony Dovgal <tony2001@php.net>
Fri, 3 Aug 2007 09:51:12 +0000 (09:51 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 3 Aug 2007 09:51:12 +0000 (09:51 +0000)
main/spprintf.c

index 2bc3cb96fd3c0df61ff3c1eb5d62e497f075b289..23d695d0dc721f9bc7cde3d18d0b2a9edf70c78c 100644 (file)
 
 #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;
@@ -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