cvs: php4 /ext/bz2 bz2.c
| From: | Wez Furlong | Date: | Thu, 21 Mar 2002 02:34:06 +0000 |
| Subject: | cvs: php4 /ext/bz2 bz2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10509@lists.php.net to get a copy of this message | ||
wez Wed Mar 20 21:34:06 2002 EDT
Modified files:
/php4/ext/bz2 bz2.c
Log:
Added fold markers.
Index: php4/ext/bz2/bz2.c
diff -u php4/ext/bz2/bz2.c:1.38 php4/ext/bz2/bz2.c:1.39
--- php4/ext/bz2/bz2.c:1.38 Wed Mar 20 21:27:41 2002
+++ php4/ext/bz2/bz2.c Wed Mar 20 21:34:06 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: bz2.c,v 1.38 2002/03/21 02:27:41 wez Exp $ */
+/* $Id: bz2.c,v 1.39 2002/03/21 02:34:06 wez Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -78,6 +78,8 @@
php_stream *stream;
};
+/* {{{ BZip2 stream implementation */
+
static size_t php_bz2iop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC)
{
struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
@@ -116,6 +118,7 @@
struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
return BZ2_bzflush(self->bz_file);
}
+/* }}} */
php_stream_ops php_stream_bz2io_ops = {
php_bz2iop_write, php_bz2iop_read,
@@ -124,6 +127,7 @@
NULL, "BZip2"
};
+/* {{{ Bzip2 stream openers */
PHPAPI php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, char *mode, php_stream *innerstream
STREAMS_DC TSRMLS_DC)
{
struct php_bz2_stream_data_t *self;
@@ -183,6 +187,8 @@
return NULL;
}
+
+/* }}} */
php_stream_wrapper php_stream_bzip2_wrapper = {
_php_stream_bz2open,