]> granicus.if.org Git - php/commitdiff
fix folding
authorAntony Dovgal <tony2001@php.net>
Tue, 29 Jul 2008 10:52:08 +0000 (10:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 29 Jul 2008 10:52:08 +0000 (10:52 +0000)
ext/phar/dirstream.c
ext/phar/phar.c
ext/phar/phar.phar
ext/phar/phar_object.c
ext/phar/stream.c
ext/phar/tar.c
ext/phar/util.c
ext/phar/zip.c

index 4635e67fa3808e4a735068ea225765a1006b4253..8218c9ca71529b5f866401850093a1e01b9541b7 100644 (file)
@@ -660,3 +660,12 @@ int phar_wrapper_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_
        return 1;
 }
 /* }}} */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
index 0cdcc6354deafd7cbe1d6004ef56faa5267ca323..f9126c7dd05be96eff8339687b439e3ef0f08e19 100644 (file)
@@ -98,7 +98,7 @@ ZEND_INI_MH(phar_ini_modify_handler) /* {{{ */
 HashTable cached_phars;
 HashTable cached_alias;
 
-static void phar_split_cache_list(TSRMLS_D)
+static void phar_split_cache_list(TSRMLS_D) /* {{{ */
 {
        char *tmp;
        char *key, *lasts, *end;
@@ -1221,6 +1221,7 @@ check_file:
        return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC);
 
 }
+/* }}} */
 
 int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */
 {
@@ -1420,7 +1421,7 @@ int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_l
 }
 /* }}}*/
 
-static inline char *phar_strnstr(const char *buf, int buf_len, const char *search, int search_len)
+static inline char *phar_strnstr(const char *buf, int buf_len, const char *search, int search_len) /* {{{ */
 {
        const char *c;
        int so_far = 0;
@@ -1442,6 +1443,7 @@ static inline char *phar_strnstr(const char *buf, int buf_len, const char *searc
                }
        } while (1);
 }
+/* }}} */
 
 /**
  * Scan an open fp for the required __HALT_COMPILER(); ?> token and verify
@@ -1601,7 +1603,7 @@ static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *a
  * if not, check to see if its dirname() exists (i.e. "/path/to") and is a directory
  * succeed if we are creating the file, otherwise fail.
  */
-static int phar_analyze_path(const char *fname, const char *ext, int ext_len, int for_create TSRMLS_DC)
+static int phar_analyze_path(const char *fname, const char *ext, int ext_len, int for_create TSRMLS_DC) /* {{{ */
 {
        php_stream_statbuf ssb;
        char *realpath, old, *a = (char *)(ext + ext_len);
@@ -1685,9 +1687,10 @@ static int phar_analyze_path(const char *fname, const char *ext, int ext_len, in
                return FAILURE;
        }
 }
+/* }}} */
 
 /* check for ".phar" in extension */
-static int phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create TSRMLS_DC)
+static int phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create TSRMLS_DC) /* {{{ */
 {
        char test[51];
        const char *pos;
@@ -1723,6 +1726,7 @@ static int phar_check_str(const char *fname, const char *ext_str, int ext_len, i
        }
        return FAILURE;
 }
+/* }}} */
 
 /*
  * if executable is 1, only returns SUCCESS if the extension is one of the tar/zip .phar extensions
@@ -1885,7 +1889,7 @@ next_extension:
 }
 /* }}} */
 
-static int php_check_dots(const char *element, int n) 
+static int php_check_dots(const char *element, int n)  /* {{{ */
 {
        for(n--; n >= 0; --n) {
                if (element[n] != '.') {
@@ -1894,6 +1898,7 @@ static int php_check_dots(const char *element, int n)
        }
        return 0;
 }
+/* }}} */
 
 #define IS_DIRECTORY_UP(element, len) \
        (len >= 2 && !php_check_dots(element, len))
@@ -1905,7 +1910,7 @@ static int php_check_dots(const char *element, int n)
 
 #ifdef COMPILE_DL_PHAR
 /* stupid-ass non-extern declaration in tsrm_strtok.h breaks dumbass MS compiler */
-static inline int in_character_class(char ch, const char *delim)
+static inline int in_character_class(char ch, const char *delim) /* {{{ */
 {
        while (*delim) {
                if (*delim == ch) {
@@ -1915,8 +1920,9 @@ static inline int in_character_class(char ch, const char *delim)
        }
        return 0;
 }
+/* }}} */
 
-char *tsrm_strtok_r(char *s, const char *delim, char **last)
+char *tsrm_strtok_r(char *s, const char *delim, char **last) /* {{{ */
 {
        char *token;
 
@@ -1944,6 +1950,7 @@ char *tsrm_strtok_r(char *s, const char *delim, char **last)
        }
        return token;
 }
+/* }}} */
 #endif
 
 /**
@@ -2260,7 +2267,7 @@ static int phar_flush_clean_deleted_apply(void *data TSRMLS_DC) /* {{{ */
 
 #include "stub.h"
 
-char *phar_create_default_stub(const char *index_php, const char *web_index, size_t *len, char **error TSRMLS_DC)
+char *phar_create_default_stub(const char *index_php, const char *web_index, size_t *len, char **error TSRMLS_DC) /* {{{ */
 {
        char *stub = NULL;
        int index_len, web_len;
@@ -2304,9 +2311,10 @@ char *phar_create_default_stub(const char *index_php, const char *web_index, siz
        phar_get_stub(index_php, web_index, len, &stub, index_len+1, web_len+1 TSRMLS_CC);
        return stub;
 }
+/* }}} */
 
 #ifndef PHAR_HAVE_OPENSSL
-static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC)
+static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC) /* {{{ */
 {
        zend_fcall_info fci;
        zend_fcall_info_cache fcc;
@@ -2415,6 +2423,7 @@ static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end,
                        return FAILURE;
        }
 }
+/* }}} */
 #endif /* #ifndef PHAR_HAVE_OPENSSL */
 
 /**
index 30ad018170c63730cbcb642cdf65bf81ba7fd61b..f95dd4c0dcfe1695d7bcc266e9568a07c1426ad4 100755 (executable)
Binary files a/ext/phar/phar.phar and b/ext/phar/phar.phar differ
index 2fc16df876b9846a95e1846a559003474427c4e0..add4495c4930ae5c85f722fccae7f5d3f5355966 100755 (executable)
@@ -1174,6 +1174,7 @@ PHP_METHOD(Phar, __construct)
 #endif /* HAVE_SPL */
 }
 /* }}} */
+/* }}} */
 
 /* {{{ proto array Phar::getSupportedSignatures()
  * Return array of supported signature types
@@ -1675,6 +1676,7 @@ PHP_METHOD(Phar, buildFromDirectory)
                php_stream_close(pass.fp);
        }
 }
+/* }}} */
 
 /* {{{ proto array Phar::buildFromIterator(Iterator iter[, string base_directory])
  * Construct a phar archive from an iterator.  The iterator must return a series of strings
@@ -1807,7 +1809,7 @@ static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS
 }
 /* }}} */
 
-static zval *phar_rename_archive(phar_archive_data *phar, char *ext, zend_bool compress TSRMLS_DC)
+static zval *phar_rename_archive(phar_archive_data *phar, char *ext, zend_bool compress TSRMLS_DC) /* {{{ */
 {
        char *oldname = NULL, *oldpath = NULL;
        char *basename = NULL, *basepath = NULL;
@@ -1979,6 +1981,7 @@ its_ok:
        
        return ret;
 }
+/* }}} */
 
 static zval *phar_convert_to_other(phar_archive_data *source, int convert, char *ext, php_uint32 flags TSRMLS_DC) /* {{{ */
 {
@@ -3655,7 +3658,7 @@ PHP_METHOD(Phar, delMetadata)
        php_check_open_basedir(filename TSRMLS_CC)
 #endif
 
-static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len, char **error TSRMLS_DC)
+static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len, char **error TSRMLS_DC) /* {{{ */
 {
        php_stream_statbuf ssb;
        int len;
@@ -3784,6 +3787,7 @@ static int phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *
        efree(fullpath);
        return SUCCESS;
 }
+/* }}} */
 
 /* {{{ proto bool Phar::extractTo(string pathto[[, mixed files], bool overwrite])
  * Extract one or more file from a phar archive, optionally overwriting existing files
index fe863fd1a5981d7c5ef72055b9c1ce22ec3e459d..0c77583e21d30e328b3e10d8a2e292adfe3d9a07 100644 (file)
@@ -972,3 +972,12 @@ static int phar_wrapper_rename(php_stream_wrapper *wrapper, char *url_from, char
        return 1;
 }
 /* }}} */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
index 6bd5e8f4ec4eb41b767a3455ba5916615fe0bd15..e1e733582da0dc38f47477addbbb3c7644bd60d8 100644 (file)
@@ -97,7 +97,7 @@ static php_uint32 phar_tar_checksum(char *buf, int len) /* {{{ */
 }
 /* }}} */
 
-int phar_is_tar(char *buf, char *fname)
+int phar_is_tar(char *buf, char *fname) /* {{{ */
 {
        tar_header *header = (tar_header *) buf;
        php_uint32 checksum = phar_tar_number(header->checksum, sizeof(header->checksum));
@@ -119,6 +119,7 @@ int phar_is_tar(char *buf, char *fname)
        }
        return ret;
 }
+/* }}} */
 
 int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */
 {
@@ -152,8 +153,9 @@ int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_l
        }
        return FAILURE;
 }
+/* }}} */
 
-int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp TSRMLS_DC)
+int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */
 {
        char *metadata;
        size_t save = php_stream_tell(fp), read;
@@ -186,6 +188,7 @@ int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp TSRMLS_DC)
        php_stream_seek(fp, save, SEEK_SET);
        return SUCCESS;
 }
+/* }}} */
 
 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) /* {{{ */
 {
@@ -555,7 +558,7 @@ struct _phar_pass_tar_info {
        char **error;
 };
 
-int phar_tar_writeheaders(void *pDest, void *argument TSRMLS_DC)
+int phar_tar_writeheaders(void *pDest, void *argument TSRMLS_DC) /* {{{ */
 {
        tar_header header;
        size_t pos;
@@ -674,8 +677,9 @@ int phar_tar_writeheaders(void *pDest, void *argument TSRMLS_DC)
        entry->offset = entry->offset_abs = pos;
        return ZEND_HASH_APPLY_KEEP;
 }
+/* }}} */
 
-int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error, php_stream *fp TSRMLS_DC)
+int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error, php_stream *fp TSRMLS_DC) /* {{{ */
 {
        php_serialize_data_t metadata_hash;
 
@@ -702,8 +706,9 @@ int phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error, p
        }
        return ZEND_HASH_APPLY_KEEP;
 }
+/* }}} */
 
-int phar_tar_setupmetadata(void *pDest, void *argument TSRMLS_DC)
+int phar_tar_setupmetadata(void *pDest, void *argument TSRMLS_DC) /* {{{ */
 {
        int lookfor_len;
        struct _phar_pass_tar_info *i = (struct _phar_pass_tar_info *)argument;
@@ -755,6 +760,7 @@ int phar_tar_setupmetadata(void *pDest, void *argument TSRMLS_DC)
 
        return phar_tar_setmetadata(entry->metadata, metadata, error, fp TSRMLS_CC);
 }
+/* }}} */
 
 int phar_tar_flush(phar_archive_data *phar, char *user_stub, long len, int defaultstub, char **error TSRMLS_DC) /* {{{ */
 {
@@ -1124,3 +1130,12 @@ nostub:
        return EOF;
 }
 /* }}} */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
index da1a504cf0573cc3347e41ea24a7e8c7e330b8d9..d7067e2e8cfc3e2471c016279250edff93277279 100644 (file)
@@ -43,7 +43,7 @@ extern php_stream_wrapper php_stream_phar_wrapper;
 #endif
 
 /* for links to relative location, prepend cwd of the entry */
-static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC)
+static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC) /* {{{ */
 {
        char *p, *ret = NULL;
        if (!entry->link) {
@@ -60,8 +60,9 @@ static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC)
        }
        return entry->link;
 }
+/* }}} */
 
-phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC)
+phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC) /* {{{ */
 {
        phar_entry_info *link_entry;
        char *link = phar_get_link_location(entry TSRMLS_CC);
@@ -83,9 +84,10 @@ phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC)
                return NULL;
        }
 }
+/* }}} */
 
 /* retrieve a phar_entry_info's current file pointer for reading contents */
-php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC)
+php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC) /* {{{ */
 {
        if (follow_links && entry->link) {
                phar_entry_info *link_entry = phar_get_link_source(entry TSRMLS_CC);
@@ -112,8 +114,9 @@ php_stream *phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC)
                return entry->fp;
        }
 }
+/* }}} */
 
-int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC)
+int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC) /* {{{ */
 {
        php_stream *fp = phar_get_efp(entry, follow_links TSRMLS_CC);
        off_t temp, eoffset;
@@ -151,9 +154,10 @@ int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t positi
        }
        return php_stream_seek(fp, temp, SEEK_SET);
 }
+/* }}} */
 
 /* mount an absolute path or uri to a path internal to the phar archive */
-int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC)
+int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */
 {
        phar_entry_info entry = {0};
        php_stream_statbuf ssb;
@@ -230,6 +234,7 @@ int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len,
        efree(entry.filename);
        return FAILURE;
 }
+/* }}} */
 
 char *phar_find_in_include_path(char *filename, int filename_len, phar_archive_data **pphar TSRMLS_DC) /* {{{ */
 {
@@ -775,7 +780,7 @@ phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char
 /* }}} */
 
 /* initialize a phar_archive_data's read-only fp for existing phar data */
-int phar_open_archive_fp(phar_archive_data *phar TSRMLS_DC) 
+int phar_open_archive_fp(phar_archive_data *phar TSRMLS_DC)  /* {{{ */
 {
        if (phar_get_pharfp(phar TSRMLS_CC)) {
                return SUCCESS;
@@ -798,9 +803,10 @@ int phar_open_archive_fp(phar_archive_data *phar TSRMLS_DC)
        }
        return SUCCESS;
 }
+/* }}} */
 
 /* copy file data from an existing to a new phar_entry_info that is not in the manifest */
-int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error TSRMLS_DC)
+int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **error TSRMLS_DC) /* {{{ */
 {
        phar_entry_info *link;
 
@@ -832,10 +838,11 @@ int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **er
        }
        return SUCCESS;
 }
+/* }}} */
 
 /* open and decompress a compressed phar entry
  */
-int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC) 
+int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC)  /* {{{ */
 {
        php_stream_filter *filter;
        phar_archive_data *phar = entry->phar;
@@ -912,6 +919,7 @@ int phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TS
 
        return SUCCESS;
 }
+/* }}} */
 
 #if defined(PHP_VERSION_ID) && PHP_VERSION_ID < 50202
 typedef struct {
@@ -996,7 +1004,7 @@ int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry,
 }
 /* }}} */
 
-int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC)
+int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) /* {{{ */
 {
        php_stream *fp;
        phar_entry_info *link;
@@ -1034,12 +1042,12 @@ int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC)
        entry->is_modified = 1;
        return SUCCESS;
 }
+/* }}} */
 
 /**
  * helper function to open an internal file's fp just-in-time
  */
-phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, php_stream *fp,
-                                     char **error, int for_write TSRMLS_DC)
+phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, php_stream *fp, char **error, int for_write TSRMLS_DC) /* {{{ */
 {
        if (error) {
                *error = NULL;
@@ -1054,6 +1062,7 @@ phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry,
        }
        return entry;
 }
+/* }}} */
 
 int phar_free_alias(phar_archive_data *phar, char *alias, int alias_len TSRMLS_DC) /* {{{ */
 {
@@ -1448,7 +1457,7 @@ phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, in
 
 static const char hexChars[] = "0123456789ABCDEF";
 
-static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC)
+static int phar_hex_str(const char *digest, size_t digest_len, char **signature TSRMLS_DC) /* {{{ */
 {
        int pos = -1;
        size_t len = 0;
@@ -1462,8 +1471,10 @@ static int phar_hex_str(const char *digest, size_t digest_len, char **signature
        (*signature)[++pos] = '\0';
        return pos;
 }
+/* }}} */
+
 #ifndef PHAR_HAVE_OPENSSL
-static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC)
+static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC) /* {{{ */
 {
        zend_fcall_info fci;
        zend_fcall_info_cache fcc;
@@ -1572,6 +1583,7 @@ static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end,
                        return FAILURE;
        }
 }
+/* }}} */
 #endif /* #ifndef PHAR_HAVE_OPENSSL */
 
 int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ */
@@ -2001,6 +2013,7 @@ static void phar_update_cached_entry(void *data, void *argument) /* {{{ */
                }
        }
 }
+/* }}} */
 
 static void phar_copy_cached_phar(phar_archive_data **pphar TSRMLS_DC) /* {{{ */
 {
@@ -2073,3 +2086,12 @@ int phar_copy_on_write(phar_archive_data **pphar TSRMLS_DC) /* {{{ */
        return SUCCESS;
 }
 /* }}} */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
index e0ac5f2668f2acf1af23661c984dd312dd05c217..f235297da99719f71081ff0e708d12aa9934f34b 100644 (file)
@@ -34,7 +34,7 @@
 # define PHAR_SET_16(buffer) (buffer)
 #endif
 
-static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_uint16 len TSRMLS_DC)
+static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_uint16 len TSRMLS_DC) /* {{{ */
 {
        union {
                phar_zip_extra_field_header header;
@@ -72,6 +72,7 @@ static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_ui
        } while (len);
        return SUCCESS;
 }
+/* }}} */
 
 /*
   extracted from libzip
@@ -106,7 +107,7 @@ static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_ui
   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-static time_t phar_zip_d2u_time(int dtime, int ddate)
+static time_t phar_zip_d2u_time(int dtime, int ddate) /* {{{ */
 {
     struct tm *tm, tmbuf;
     time_t now;
@@ -124,8 +125,9 @@ static time_t phar_zip_d2u_time(int dtime, int ddate)
 
     return mktime(tm);
 }
+/* }}} */
 
-static void phar_zip_u2d_time(time_t time, php_uint16 *dtime, php_uint16 *ddate)
+static void phar_zip_u2d_time(time_t time, php_uint16 *dtime, php_uint16 *ddate) /* {{{ */
 {
     struct tm *tm, tmbuf;
 
@@ -133,6 +135,7 @@ static void phar_zip_u2d_time(time_t time, php_uint16 *dtime, php_uint16 *ddate)
     *ddate = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday;
     *dtime = ((tm->tm_hour)<<11) + ((tm->tm_min)<<5) + ((tm->tm_sec)>>1);
 }
+/* }}} */
 
 /**
  * Does not check for a previously opened phar in the cache.
@@ -1142,3 +1145,12 @@ nostub:
        return EOF;
 }
 /* }}} */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */