Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 8416381

Browse files
committed
Remove bogus {{{ }}}
Change-Id: I086b4a18f813c8bad9580c51be2f90640d1643ee Reviewed-on: http://review.couchbase.org/28694 Reviewed-by: Trond Norbye <trond.norbye@gmail.com> Tested-by: Trond Norbye <trond.norbye@gmail.com>
1 parent d05264f commit 8416381

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

convert.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void pcbc_json_encode(smart_str *buf, zval *value TSRMLS_DC)
3131
}
3232

3333
PHP_COUCHBASE_LOCAL
34-
char *php_couchbase_zval_to_payload(zval *value, size_t *payload_len, unsigned int *flags, int serializer, int compressor TSRMLS_DC) /* {{{ */
34+
char *php_couchbase_zval_to_payload(zval *value, size_t *payload_len, unsigned int *flags, int serializer, int compressor TSRMLS_DC)
3535
{
3636
char *payload = NULL;
3737
smart_str buf = {0};
@@ -163,10 +163,9 @@ char *php_couchbase_zval_to_payload(zval *value, size_t *payload_len, unsigned i
163163
smart_str_free(&buf);
164164
return payload;
165165
}
166-
/* }}} */
167166

168167
PHP_COUCHBASE_LOCAL
169-
int php_couchbase_zval_from_payload(zval *value, char *payload, size_t payload_len, unsigned int flags, int serializer, int ignoreflags TSRMLS_DC) /* {{{ */
168+
int php_couchbase_zval_from_payload(zval *value, char *payload, size_t payload_len, unsigned int flags, int serializer, int ignoreflags TSRMLS_DC)
170169
{
171170
int compressor;
172171
zend_bool payload_emalloc = 0;
@@ -306,7 +305,6 @@ int php_couchbase_zval_from_payload(zval *value, char *payload, size_t payload_l
306305

307306
return 1;
308307
}
309-
/* }}} */
310308

311309
/*
312310
* Local variables:

couchbase.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void pcbc_stop_loop(struct _php_couchbase_res *res)
3232

3333

3434
PHP_COUCHBASE_LOCAL
35-
void php_couchbase_res_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
35+
void php_couchbase_res_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
3636
{
3737
php_couchbase_res *couchbase_res = (php_couchbase_res *)rsrc->ptr;
3838
if (couchbase_res) {
@@ -47,10 +47,10 @@ void php_couchbase_res_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
4747
free(couchbase_res);
4848
}
4949
}
50-
/* }}} */
50+
5151

5252
PHP_COUCHBASE_LOCAL
53-
void php_couchbase_pres_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
53+
void php_couchbase_pres_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
5454
{
5555
php_couchbase_res *couchbase_res = (php_couchbase_res *)rsrc->ptr;
5656
if (couchbase_res) {
@@ -65,10 +65,10 @@ void php_couchbase_pres_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
6565
free(couchbase_res);
6666
}
6767
}
68-
/* }}} */
68+
6969

7070
/* callbacks */
71-
static void php_couchbase_error_callback(lcb_t handle, lcb_error_t error, const char *errinfo) /* {{{ */
71+
static void php_couchbase_error_callback(lcb_t handle, lcb_error_t error, const char *errinfo)
7272
{
7373
php_couchbase_res *res = (php_couchbase_res *)lcb_get_cookie(handle);
7474
if (res) {
@@ -86,7 +86,7 @@ static void php_couchbase_error_callback(lcb_t handle, lcb_error_t error, const
8686
pcbc_stop_loop(res);
8787
}
8888
}
89-
/* }}} */
89+
9090

9191
PHP_COUCHBASE_LOCAL
9292
void php_couchbase_setup_callbacks(lcb_t handle)
@@ -123,7 +123,7 @@ int pcbc_check_expiry(INTERNAL_FUNCTION_PARAMETERS, int oo, long expiry, long *o
123123
}
124124

125125
PHP_COUCHBASE_LOCAL
126-
void php_couchbase_get_result_message_impl(INTERNAL_FUNCTION_PARAMETERS, int oo) /* {{{ */
126+
void php_couchbase_get_result_message_impl(INTERNAL_FUNCTION_PARAMETERS, int oo)
127127
{
128128
php_couchbase_res *res;
129129
char *str;
@@ -140,7 +140,6 @@ void php_couchbase_get_result_message_impl(INTERNAL_FUNCTION_PARAMETERS, int oo)
140140
}
141141
RETURN_STRINGL(str, str_len, 0);
142142
}
143-
/* }}} */
144143

145144
/*
146145
* Local variables:

stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static void php_couchbase_stat_callback(lcb_t handle,
6565
}
6666

6767
PHP_COUCHBASE_LOCAL
68-
void php_couchbase_stats_impl(INTERNAL_FUNCTION_PARAMETERS, int oo) /* {{{ */
68+
void php_couchbase_stats_impl(INTERNAL_FUNCTION_PARAMETERS, int oo)
6969
{
7070
php_couchbase_res *couchbase_res;
7171
lcb_error_t retval;

views.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
#include "internal.h"
2020
#include "views.h"
2121

22-
/* {{{ static void php_couchbase_complete_callback(...)
23-
*/
24-
2522
/* append a string literal to a smart_str */
2623
#define APPEND_URI_s(u, s) \
2724
smart_str_appendl(u, s, sizeof(s)-1)
@@ -50,7 +47,7 @@ static void php_couchbase_complete_callback(lcb_http_request_t request,
5047
return;
5148
}
5249

53-
/** We have one extra byte in 'data' */
50+
/* We have one extra byte in 'data' */
5451
hti = emalloc(sizeof(*hti) + resp->v.v0.nbytes);
5552
hti->ndata = resp->v.v0.nbytes;
5653

@@ -249,7 +246,7 @@ void timer_callback(lcb_timer_t timer, lcb_t instance, const void *cookie)
249246
}
250247

251248
PHP_COUCHBASE_LOCAL
252-
void php_couchbase_view_impl(INTERNAL_FUNCTION_PARAMETERS, int oo, int uri_only) /* {{{ */
249+
void php_couchbase_view_impl(INTERNAL_FUNCTION_PARAMETERS, int oo, int uri_only)
253250
{
254251
zval *options = NULL;
255252
char *doc_name = NULL, *view_name = NULL;
@@ -380,7 +377,6 @@ void php_couchbase_callbacks_view_init(lcb_t handle)
380377
lcb_set_http_complete_callback(handle, php_couchbase_complete_callback);
381378
}
382379

383-
/* }}} */
384380
/*
385381
* Local variables:
386382
* tab-width: 4

0 commit comments

Comments
 (0)