Skip to content

Commit b3a45d4

Browse files
committed
fix folding
1 parent 17573c6 commit b3a45d4

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ext/curl/interface.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx
930930
}
931931
/* }}} */
932932

933-
static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx)
933+
static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */
934934
{
935935
php_curl *ch = (php_curl *) ctx;
936936

@@ -946,6 +946,7 @@ static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, v
946946

947947
return 0;
948948
}
949+
/* }}} */
949950

950951
#if CURLOPT_PASSWDFUNCTION != 0
951952
/* {{{ curl_passwd
@@ -1220,7 +1221,7 @@ PHP_FUNCTION(curl_copy_handle)
12201221
}
12211222
/* }}} */
12221223

1223-
static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *return_value TSRMLS_DC)
1224+
static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *return_value TSRMLS_DC) /* {{{ */
12241225
{
12251226
CURLcode error=CURLE_OK;
12261227

@@ -1659,6 +1660,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu
16591660
return 0;
16601661
}
16611662
}
1663+
/* }}} */
16621664

16631665
/* {{{ proto bool curl_setopt(resource ch, int option, mixed value) U
16641666
Set an option for a cURL transfer */

ext/curl/multi.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ void _php_curl_multi_cleanup_list(void *data) /* {{{ */
122122
/* }}} */
123123

124124
/* Used internally as comparison routine passed to zend_list_del_element */
125-
static int curl_compare_resources( zval *z1, zval **z2 )
125+
static int curl_compare_resources( zval *z1, zval **z2 ) /* {{{ */
126126
{
127127
return (Z_TYPE_P( z1 ) == Z_TYPE_PP( z2 ) &&
128128
Z_TYPE_P( z1 ) == IS_RESOURCE &&
129129
Z_LVAL_P( z1 ) == Z_LVAL_PP( z2 ) );
130130
}
131-
131+
/* }}} */
132132

133133
/* {{{ proto int curl_multi_remove_handle(resource mh, resource ch) U
134134
Remove a multi handle from a set of cURL handles */
@@ -155,14 +155,15 @@ PHP_FUNCTION(curl_multi_remove_handle)
155155
}
156156
/* }}} */
157157

158-
static void _make_timeval_struct(struct timeval *to, double timeout)
158+
static void _make_timeval_struct(struct timeval *to, double timeout) /* {{{ */
159159
{
160160
unsigned long conv;
161161

162162
conv = (unsigned long) (timeout * 1000000.0);
163163
to->tv_sec = conv / 1000000;
164164
to->tv_usec = conv % 1000000;
165165
}
166+
/* }}} */
166167

167168
/* {{{ proto int curl_multi_select(resource mh[, double timeout]) U
168169
Get all the sockets associated with the cURL extension, which can then be "selected" */
@@ -319,7 +320,7 @@ PHP_FUNCTION(curl_multi_close)
319320
}
320321
/* }}} */
321322

322-
void _php_curl_multi_close(zend_rsrc_list_entry *rsrc TSRMLS_DC)
323+
void _php_curl_multi_close(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
323324
{
324325
php_curlm *mh = (php_curlm *) rsrc->ptr;
325326
if (mh) {
@@ -329,6 +330,7 @@ void _php_curl_multi_close(zend_rsrc_list_entry *rsrc TSRMLS_DC)
329330
rsrc->ptr = NULL;
330331
}
331332
}
333+
/* }}} */
332334

333335
#endif
334336

0 commit comments

Comments
 (0)