At 23:48 06/03/2001 -0700, Zak Greant wrote:
>Andi wrote:
>[snip]
>
> > Yep. Let's start doing some damage. bzip2 is a very good victim.
>
>bzclose      -> bz_close
>bzcompress   -> bz_compress
>bzdecompress -> bz_decompress
>bzerrno      -> bz_errno
>bzerror      -> bz_error
>bzerrstr     -> bz_errstr
>bzflush      -> bz_flush
>bzopen       -> bz_open
>bzread       -> bz_read
>bzwrite      -> bz_write
>
>Can anyone see a problem with the proposed name changes?

*** What is the difference between error ad errstr ?
Maybe errstr should be changed to errmsg ? (Did I say that elsewhere ? ;-)
As the file extension is .bz2, maybe the prefix should be bz2_ as well 
(it's an algorithm, not a version right ?)

Comparing Gzip and Bzip2 functions :

bz_close                gz_close
bz_compress             gz_compress
bz_decompress           gz_uncompress   --> Something must be done here.
bz_errno                -
bz_error                -
bz_errstr               -
bz_flush                ?
bz_open         gz_open
bz_read         gz_read
bz_write                gz_write, gz_puts
-                       gz_eof
-                       gz_file
-                       gz_getc
-                       gz_gets
-                       gz_getss
-                       gz_passthru
-                       gz_rewind
-                       gz_seek
-                       gz_tell
-                       gz_readfile


hellekin


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to