summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-08-08 22:32:24 +0000
committerAntony Dovgal <tony2001@php.net>2007-08-08 22:32:24 +0000
commit08286bcb9f937b1104ec0611d35bfdcbb18b0ba3 (patch)
tree92c532ba3f969118f2d813ebebd6400b24acb57f
parent45e907a0eeae9524bc9a3acd0d5c64f405241c1d (diff)
downloadphp-git-08286bcb9f937b1104ec0611d35bfdcbb18b0ba3.tar.gz
fix ws & folding
-rw-r--r--ext/standard/file.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index a153d1cf87..30ca3977dd 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -146,6 +146,7 @@ PHPAPI int php_le_stream_context(void)
}
/* }}} */
+
/* {{{ Module-Stuff */
static ZEND_RSRC_DTOR_FUNC(file_context_dtor)
@@ -302,15 +303,14 @@ PHP_MINIT_FUNCTION(file)
/* }}} */
-PHP_MSHUTDOWN_FUNCTION(file)
+PHP_MSHUTDOWN_FUNCTION(file) /* {{{ */
{
#ifndef ZTS
file_globals_dtor(&file_globals TSRMLS_CC);
#endif
return SUCCESS;
}
-
-
+/* }}} */
/* {{{ proto bool flock(resource fp, int operation [, int &wouldblock])
Portable file locking */
@@ -1387,10 +1387,7 @@ PHPAPI PHP_FUNCTION(fseek)
/* }}} */
-/* {{{ proto int mkdir(char *dir int mode)
-*/
-
-PHPAPI int php_mkdir_ex(char *dir, long mode, int options TSRMLS_DC)
+PHPAPI int php_mkdir_ex(char *dir, long mode, int options TSRMLS_DC) /* {{{ */
{
int ret;
@@ -1741,10 +1738,11 @@ PHP_FUNCTION(copy)
}
/* }}} */
-PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC)
+PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC) /* {{{ */
{
return php_copy_file_ex(src, dest, ENFORCE_SAFE_MODE TSRMLS_CC);
}
+/* }}} */
/* {{{ php_copy_file
*/
@@ -1859,7 +1857,7 @@ PHPAPI PHP_FUNCTION(fread)
}
/* }}} */
-static const char *php_fgetcsv_lookup_trailing_spaces(const char *ptr, size_t len, const char delimiter TSRMLS_DC)
+static const char *php_fgetcsv_lookup_trailing_spaces(const char *ptr, size_t len, const char delimiter TSRMLS_DC) /* {{{ */
{
int inc_len;
unsigned char last_chars[2] = { 0, 0 };
@@ -1895,6 +1893,7 @@ quit_loop:
}
return ptr;
}
+/* }}} */
#define FPUTCSV_FLD_CHK(c) memchr(Z_STRVAL_PP(field), c, Z_STRLEN_PP(field))
@@ -2090,11 +2089,7 @@ PHP_FUNCTION(fgetcsv)
}
/* }}} */
-
-PHPAPI void php_fgetcsv(php_stream *stream, /* {{{ */
- char delimiter, char enclosure,
- size_t buf_len, char *buf,
- zval *return_value TSRMLS_DC)
+PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, size_t buf_len, char *buf, zval *return_value TSRMLS_DC) /* {{{ */
{
char *temp, *tptr, *bptr, *line_end, *limit;
const char escape_char = '\\';