Hmm. function w/o PHPAPI is used in var.c I'll commit new patch soon. -- Yasuo Ohgaki
Yasuo Ohgaki wrote: > yohgaki Wed Oct 2 22:55:19 2002 EDT > > Modified files: > /php4/main output.c > Log: > Made some functions inline. > Added static for unexported functions. > > > Index: php4/main/output.c > diff -u php4/main/output.c:1.129 php4/main/output.c:1.130 > --- php4/main/output.c:1.129 Wed Oct 2 21:36:44 2002 > +++ php4/main/output.c Wed Oct 2 22:55:19 2002 > @@ -18,7 +18,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: output.c,v 1.129 2002/10/03 01:36:44 yohgaki Exp $ */ > +/* $Id: output.c,v 1.130 2002/10/03 02:55:19 yohgaki Exp $ */ > > #include "php.h" > #include "ext/standard/head.h" > @@ -45,7 +45,7 @@ > php_output_globals output_globals; > #endif > > -static int php_default_output_func(const char *str, uint str_len TSRMLS_DC) > +static inline int php_default_output_func(const char *str, uint str_len TSRMLS_DC) > { > fwrite(str, 1, str_len, stderr); > return str_len; > @@ -579,7 +579,7 @@ > > /* {{{ php_ob_append > */ > -static void php_ob_append(const char *text, uint text_length TSRMLS_DC) > +static inline void php_ob_append(const char *text, uint text_length TSRMLS_DC) > { > char *target; > int original_ob_text_length; > @@ -612,7 +612,7 @@ > /* }}} */ > > #if 0 > -static void php_ob_prepend(const char *text, uint text_length) > +static inline void php_ob_prepend(const char *text, uint text_length) > { > char *p, *start; > TSRMLS_FETCH(); > @@ -635,7 +635,7 @@ > > /* {{{ php_ob_get_buffer > * Return the current output buffer */ > -int php_ob_get_buffer(zval *p TSRMLS_DC) > +static int php_ob_get_buffer(zval *p TSRMLS_DC) > { > if (OG(ob_nesting_level)==0) { > return FAILURE; > @@ -647,7 +647,7 @@ > > /* {{{ php_ob_get_length > * Return the size of the current output buffer */ > -int php_ob_get_length(zval *p TSRMLS_DC) > +static int php_ob_get_length(zval *p TSRMLS_DC) > { > if (OG(ob_nesting_level) == 0) { > return FAILURE; > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php