Re: Re: ctype function (re?)naming
| From: | Hellekin O. Wolf | Date: | Wed, 07 Mar 2001 10:07:23 +0000 |
| Subject: | Re: Re: ctype function (re?)naming | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev php.qa |
| Request: | Send a blank email to php-dev+get-48142@lists.php.net to get a copy of this message | ||
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.*** 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 :bzclose -> bz_closebzcompress -> bz_compress bzdecompress -> bz_decompressbzerrno -> bz_errno bzerror -> bz_error bzerrstr -> bz_errstr bzflush -> bz_flush bzopen -> bz_open bzread -> bz_read bzwrite -> bz_writeCan anyone see a problem with the proposed name changes?
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_readfilehellekin