diff options
author | Sascha Schumann <sas@php.net> | 1999-05-21 10:06:25 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-05-21 10:06:25 +0000 |
commit | b57dc275950b228f2399990471c4f22b7d154c6c (patch) | |
tree | a89fe99e356b218591b0b0b392862e0b9ddd4e7e /ext/zlib | |
parent | 4fe8fe715e4347a4063a57e1a9fd6dc013ca9ee0 (diff) | |
download | php-git-b57dc275950b228f2399990471c4f22b7d154c6c.tar.gz |
- run ext sources through conv_proto
- add necessary phpext_*_ptr
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/php3_zlib.h | 30 | ||||
-rw-r--r-- | ext/zlib/zlib.c | 34 |
2 files changed, 32 insertions, 32 deletions
diff --git a/ext/zlib/php3_zlib.h b/ext/zlib/php3_zlib.h index 48257a35d2..8bfd046aef 100644 --- a/ext/zlib/php3_zlib.h +++ b/ext/zlib/php3_zlib.h @@ -40,21 +40,21 @@ extern php3_module_entry php3_zlib_module_entry; extern int php3_minit_zlib(INIT_FUNC_ARGS); extern int php3_mshutdown_zlib(SHUTDOWN_FUNC_ARGS); -extern void php3_info_zlib(ZEND_MODULE_INFO_FUNC_ARGS); -extern void php3_gzopen(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzclose(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzeof(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzread(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzgetc(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzgets(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzgetss(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzwrite(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzrewind(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gztell(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzseek(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzpassthru(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_readgzfile(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gzfile(INTERNAL_FUNCTION_PARAMETERS); +void php3_info_zlib(ZEND_MODULE_INFO_FUNC_ARGS); +PHP_FUNCTION(gzopen); +PHP_FUNCTION(gzclose); +PHP_FUNCTION(gzeof); +PHP_FUNCTION(gzread); +PHP_FUNCTION(gzgetc); +PHP_FUNCTION(gzgets); +PHP_FUNCTION(gzgetss); +PHP_FUNCTION(gzwrite); +PHP_FUNCTION(gzrewind); +PHP_FUNCTION(gztell); +PHP_FUNCTION(gzseek); +PHP_FUNCTION(gzpassthru); +PHP_FUNCTION(readgzfile); +PHP_FUNCTION(gzfile); #else #define zlib_module_ptr NULL diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index c72c07c26d..a0e565d49d 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -310,7 +310,7 @@ static gzFile *php3_gzopen_with_path(char *filename, char *mode, char *path, cha /* {{{ proto array gzfile(string filename) Read und uncompress entire .gz-file into an array */ -void php3_gzfile(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzfile) { pval *filename, *arg2; gzFile zp; char *slashed, buf[8192]; @@ -350,7 +350,7 @@ void php3_gzfile(INTERNAL_FUNCTION_PARAMETERS) { /* Now loop through the file and do the magic quotes thing if needed */ memset(buf,0,8191); - while((int)gzgets(zp, buf, 8191)) { + while(gzgets(zp, buf, 8191) != NULL) { if (PG(magic_quotes_runtime)) { int len; @@ -366,7 +366,7 @@ void php3_gzfile(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto int gzopen(string filename, string mode [, int use_include_path]) Open a .gz-file and return a .gz-file pointer */ -void php3_gzopen(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzopen) { pval *arg1, *arg2, *arg3; gzFile *zp; char *p; @@ -414,7 +414,7 @@ void php3_gzopen(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto int gzclose(int zp) Close an open .gz-file pointer */ -void php3_gzclose(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzclose) { pval *arg1; int id, type; gzFile *zp; @@ -437,7 +437,7 @@ void php3_gzclose(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto int gzeof(int zp) Test for end-of-file on a .gz-file pointer */ -void php3_gzeof(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzeof) { pval *arg1; gzFile *zp; int id, type; @@ -464,7 +464,7 @@ void php3_gzeof(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto string gzgets(int zp, int length) Get a line from .gz-file pointer */ -void php3_gzgets(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzgets) { pval *arg1, *arg2; gzFile *zp; int id, len, type; @@ -487,7 +487,7 @@ void php3_gzgets(INTERNAL_FUNCTION_PARAMETERS) { buf = emalloc(sizeof(char) * (len + 1)); /* needed because recv doesnt put a null at the end*/ memset(buf,0,len+1); - if (!((int)gzgets(zp, buf, len))) { + if (!(gzgets(zp, buf, len) != NULL)) { efree(buf); RETVAL_FALSE; } else { @@ -505,7 +505,7 @@ void php3_gzgets(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto string gzgetc(int zp) Get a character from .gz-file pointer */ -void php3_gzgetc(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzgetc) { pval *arg1; gzFile *zp; int id, type, c; @@ -541,7 +541,7 @@ void php3_gzgetc(INTERNAL_FUNCTION_PARAMETERS) { /* Strip any HTML tags while reading */ /* {{{ proto string gzgetss(int zp, int length) Get a line from file pointer and strip HTML tags */ -void php3_gzgetss(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(gzgetss) { pval *fd, *bytes; gzFile *zp; @@ -568,7 +568,7 @@ void php3_gzgetss(INTERNAL_FUNCTION_PARAMETERS) buf = emalloc(sizeof(char) * (len + 1)); /*needed because recv doesnt set null char at end*/ memset(buf,0,len+1); - if (!((int)gzgets(zp, buf, len))) { + if (!(gzgets(zp, buf, len) != NULL)) { efree(buf); RETURN_FALSE; } @@ -658,7 +658,7 @@ void php3_gzgetss(INTERNAL_FUNCTION_PARAMETERS) /* {{{ proto int gzwrite(int zp, string str [, int length]) Binary-safe .gz-file write */ -void php3_gzwrite(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzwrite) { pval *arg1, *arg2, *arg3=NULL; gzFile *zp; int ret,id,type; @@ -707,7 +707,7 @@ void php3_gzwrite(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto int gzrewind(int zp) Rewind the position of a .gz-file pointer */ -void php3_gzrewind(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzrewind) { pval *arg1; int id,type; gzFile *zp; @@ -730,7 +730,7 @@ void php3_gzrewind(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto int gztell(int zp) Get .gz-file pointer's read/write position */ -void php3_gztell(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gztell) { pval *arg1; int id, type; long pos; @@ -754,7 +754,7 @@ void php3_gztell(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto int gzseek(int zp, int offset) Seek on a file pointer */ -void php3_gzseek(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzseek) { pval *arg1, *arg2; int ret,id,type; long pos; @@ -783,7 +783,7 @@ void php3_gzseek(INTERNAL_FUNCTION_PARAMETERS) { */ /* {{{ proto int readgzfile(string filename [, int use_include_path]) Output a .gz-file */ -void php3_readgzfile(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(readgzfile) { pval *arg1, *arg2; char buf[8192]; gzFile *zp; @@ -834,7 +834,7 @@ void php3_readgzfile(INTERNAL_FUNCTION_PARAMETERS) { */ /* {{{ proto int gzpassthru(int zp) Output all remaining data from a .gz-file pointer */ -void php3_gzpassthru(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(gzpassthru) { pval *arg1; gzFile *zp; char buf[8192]; @@ -864,7 +864,7 @@ void php3_gzpassthru(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ proto int gzread(int zp, int length) Binary-safe file read */ -void php3_gzread(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(gzread) { pval *arg1, *arg2; gzFile *zp; |