summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.h
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-11-09 16:04:34 +0000
committerNuno Lopes <nlopess@php.net>2006-11-09 16:04:34 +0000
commitd6802e102277afe72f6091f4f971bad47119d1a5 (patch)
treebf31725ddbfb635b184c426fc32a9887f91be9f1 /ext/zip/php_zip.h
parent371400ae15817061b7f2e819965831199ce16c6f (diff)
downloadphp-git-d6802e102277afe72f6091f4f971bad47119d1a5.tar.gz
statification of local functions and variables.
also remove a few uneeded global variables interesting new warnings: /cvs/php5/ext/xmlwriter/php_xmlwriter.c:391: warning: 'xmlwriter_objects_clone' defined but not used /cvs/php5/ext/xmlwriter/php_xmlwriter.c:1281: warning: 'zif_xmlwriter_start_dtd_entity' defined but not used /cvs/php5/ext/xmlwriter/php_xmlwriter.c:1325: warning: 'zif_xmlwriter_end_dtd_entity' defined but not used /cvs/php5/ext/xmlwriter/php_xmlwriter.c:1333: warning: 'zif_xmlwriter_write_dtd_entity' defined but not used
Diffstat (limited to 'ext/zip/php_zip.h')
-rw-r--r--ext/zip/php_zip.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/ext/zip/php_zip.h b/ext/zip/php_zip.h
index 2b194f7583..3b18328d57 100644
--- a/ext/zip/php_zip.h
+++ b/ext/zip/php_zip.h
@@ -24,24 +24,12 @@
extern zend_module_entry zip_module_entry;
#define phpext_zip_ptr &zip_module_entry
-#ifdef PHP_WIN32
-#define PHP_ZIP_API __declspec(dllexport)
-#else
-#define PHP_ZIP_API
-#endif
-
#ifdef ZTS
#include "TSRM.h"
#endif
#include "lib/zip.h"
-#ifndef ZEND_ENGINE_2_1
-# if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 0)
-# define ZEND_ENGINE_2_1
-# endif
-#endif
-
typedef struct _ze_zip_rsrc {
struct zip *za;
int index_current;
@@ -55,7 +43,6 @@ typedef struct _ze_zip_read_rsrc {
struct zip_stat sb;
} zip_read_rsrc;
-#ifdef ZEND_ENGINE_2_1
#define ZIPARCHIVE_ME(name, arg_info, flags) ZEND_FENTRY(name, c_ziparchive_ ##name, arg_info, flags)
#define ZIPARCHIVE_METHOD(name) ZEND_NAMED_FUNCTION(c_ziparchive_##name)
@@ -70,24 +57,10 @@ typedef struct _ze_zip_object {
int filename_len;
} ze_zip_object;
-zend_class_entry *zip_class_entry_ce;
-
php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
php_stream *php_stream_zip_open(char *filename, char *path, char *mode STREAMS_DC TSRMLS_DC);
extern php_stream_wrapper php_stream_zip_wrapper;
-#endif
-
-PHP_FUNCTION(zip_open);
-PHP_FUNCTION(zip_read);
-PHP_FUNCTION(zip_close);
-PHP_FUNCTION(zip_entry_read);
-PHP_FUNCTION(zip_entry_filesize);
-PHP_FUNCTION(zip_entry_name);
-PHP_FUNCTION(zip_entry_compressedsize);
-PHP_FUNCTION(zip_entry_compressionmethod);
-PHP_FUNCTION(zip_entry_open);
-PHP_FUNCTION(zip_entry_close);
#endif /* PHP_ZIP_H */