From: Wez Furlong Date: Sat, 16 Mar 2002 01:37:24 +0000 (+0000) Subject: change * formatting X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1371 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc264db92197bfcb15bbb97f01be237a32a7fb57;p=php change * formatting --- diff --git a/ext/zlib/php_zlib.h b/ext/zlib/php_zlib.h index bedc65c587..10a40cd96a 100644 --- a/ext/zlib/php_zlib.h +++ b/ext/zlib/php_zlib.h @@ -67,7 +67,7 @@ PHP_FUNCTION(ob_gzhandler); FILE *zlib_fopen_wrapper(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC); int php_enable_output_compression(int buffer_size TSRMLS_DC); -php_stream * php_stream_gzopen(char * path, char * mode, int options, char ** opened_path TSRMLS_DC); +php_stream *php_stream_gzopen(char *path, char *mode, int options, char **opened_path TSRMLS_DC); extern php_stream_ops php_stream_gzio_ops; extern php_stream_wrapper php_stream_gzip_wrapper; diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 1b39fb0399..a0c54fbd81 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -252,7 +252,7 @@ PHP_MINFO_FUNCTION(zlib) */ static gzFile php_gzopen_wrapper(char *path, char *mode, int options TSRMLS_DC) { - php_stream * stream = NULL; + php_stream *stream = NULL; int fd; stream = php_stream_open_wrapper(path, mode, options | REPORT_ERRORS, NULL TSRMLS_CC); @@ -280,7 +280,7 @@ PHP_FUNCTION(gzfile) char *slashed, buf[8192]; register int i=0; int use_include_path = 0; - php_stream * stream; + php_stream *stream; /* check args */ switch (ZEND_NUM_ARGS()) { diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index 5a59d023ab..061326816c 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -25,12 +25,12 @@ struct php_gz_stream_data_t { gzFile gz_file; - php_stream * stream; + php_stream *stream; }; -static size_t php_gziop_read(php_stream * stream, char * buf, size_t count) +static size_t php_gziop_read(php_stream *stream, char *buf, size_t count) { - struct php_gz_stream_data_t * self = (struct php_gz_stream_data_t *)stream->abstract; + struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *)stream->abstract; if (buf == NULL && count == 0) { if (gzeof(self->gz_file)) @@ -41,28 +41,28 @@ static size_t php_gziop_read(php_stream * stream, char * buf, size_t count) return gzread(self->gz_file, buf, count); } -static char * php_gziop_gets(php_stream * stream, char * buf, size_t size) +static char *php_gziop_gets(php_stream *stream, char *buf, size_t size) { - struct php_gz_stream_data_t * self = (struct php_gz_stream_data_t *)stream->abstract; + struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *)stream->abstract; return gzgets(self->gz_file, buf, size); } -static size_t php_gziop_write(php_stream * stream, const char * buf, size_t count) +static size_t php_gziop_write(php_stream *stream, const char *buf, size_t count) { - struct php_gz_stream_data_t * self = (struct php_gz_stream_data_t *)stream->abstract; + struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *)stream->abstract; return gzwrite(self->gz_file, (char*)buf, count); } -static int php_gziop_seek(php_stream * stream, off_t offset, int whence) +static int php_gziop_seek(php_stream *stream, off_t offset, int whence) { - struct php_gz_stream_data_t * self = (struct php_gz_stream_data_t *)stream->abstract; + struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *)stream->abstract; return gzseek(self->gz_file, offset, whence); } -static int php_gziop_close(php_stream * stream) +static int php_gziop_close(php_stream *stream) { - struct php_gz_stream_data_t * self = (struct php_gz_stream_data_t *)stream->abstract; + struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *)stream->abstract; int ret; ret = gzclose(self->gz_file); @@ -79,10 +79,10 @@ php_stream_ops php_stream_gzio_ops = { NULL, "ZLIB" }; -php_stream * php_stream_gzopen(char * path, char * mode, int options, char ** opened_path TSRMLS_DC) +php_stream *php_stream_gzopen(char *path, char *mode, int options, char **opened_path TSRMLS_DC) { - struct php_gz_stream_data_t * self; - php_stream * stream = NULL; + struct php_gz_stream_data_t *self; + php_stream *stream = NULL; self = emalloc(sizeof(*self));