@@ -68,8 +68,8 @@ PHP_MINIT_FUNCTION(bson)
68
68
}
69
69
70
70
/* Forward declarations */
71
- bool php_phongo_bson_visit_document (const bson_iter_t * iter __attribute__(( unused )) , const char * key , const bson_t * v_document , void * data );
72
- bool php_phongo_bson_visit_array (const bson_iter_t * iter __attribute__(( unused )) , const char * key , const bson_t * v_document , void * data );
71
+ bool php_phongo_bson_visit_document (const bson_iter_t * iter ARG_UNUSED , const char * key , const bson_t * v_document , void * data );
72
+ bool php_phongo_bson_visit_array (const bson_iter_t * iter ARG_UNUSED , const char * key , const bson_t * v_document , void * data );
73
73
74
74
/* {{{ Santa's Little Helper: Object getters */
75
75
void php_phongo_objectid_get_id (zval * object , bson_oid_t * oid TSRMLS_DC )
@@ -163,18 +163,18 @@ char *php_phongo_regex_get_flags(zval *object TSRMLS_DC)
163
163
}
164
164
/* }}} */
165
165
#if 0
166
- bool php_phongo_bson_visit_before (const bson_iter_t * iter __attribute__(( unused )) , const char * key , void * data ) /* {{{ */
166
+ bool php_phongo_bson_visit_before (const bson_iter_t * iter ARG_UNUSED , const char * key , void * data ) /* {{{ */
167
167
{
168
168
return false;
169
169
}
170
170
/* }}} */
171
- bool php_phongo_bson_visit_after (const bson_iter_t * iter __attribute__(( unused )) , const char * key , void * data ) /* {{{ */
171
+ bool php_phongo_bson_visit_after (const bson_iter_t * iter ARG_UNUSED , const char * key , void * data ) /* {{{ */
172
172
{
173
173
return false;
174
174
}
175
175
/* }}} */
176
176
#endif
177
- void php_phongo_bson_visit_corrupt (const bson_iter_t * iter __attribute__(( unused )) , void * data ) /* {{{ */
177
+ void php_phongo_bson_visit_corrupt (const bson_iter_t * iter ARG_UNUSED , void * data ) /* {{{ */
178
178
{
179
179
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
180
180
@@ -183,7 +183,7 @@ void php_phongo_bson_visit_corrupt(const bson_iter_t *iter __attribute__((unused
183
183
zval_ptr_dtor (& retval );
184
184
}
185
185
/* }}} */
186
- bool php_phongo_bson_visit_double (const bson_iter_t * iter __attribute__(( unused )) , const char * key , double v_double , void * data ) /* {{{ */
186
+ bool php_phongo_bson_visit_double (const bson_iter_t * iter ARG_UNUSED , const char * key , double v_double , void * data ) /* {{{ */
187
187
{
188
188
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
189
189
@@ -192,7 +192,7 @@ bool php_phongo_bson_visit_double(const bson_iter_t *iter __attribute__((unused)
192
192
return false;
193
193
}
194
194
/* }}} */
195
- bool php_phongo_bson_visit_utf8 (const bson_iter_t * iter __attribute__(( unused )) , const char * key , size_t v_utf8_len , const char * v_utf8 , void * data ) /* {{{ */
195
+ bool php_phongo_bson_visit_utf8 (const bson_iter_t * iter ARG_UNUSED , const char * key , size_t v_utf8_len , const char * v_utf8 , void * data ) /* {{{ */
196
196
{
197
197
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
198
198
@@ -201,7 +201,7 @@ bool php_phongo_bson_visit_utf8(const bson_iter_t *iter __attribute__((unused)),
201
201
return false;
202
202
}
203
203
/* }}} */
204
- bool php_phongo_bson_visit_binary (const bson_iter_t * iter __attribute__(( unused )) , const char * key , bson_subtype_t v_subtype , size_t v_binary_len , const uint8_t * v_binary , void * data ) /* {{{ */
204
+ bool php_phongo_bson_visit_binary (const bson_iter_t * iter ARG_UNUSED , const char * key , bson_subtype_t v_subtype , size_t v_binary_len , const uint8_t * v_binary , void * data ) /* {{{ */
205
205
{
206
206
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
207
207
zval * zchild = NULL ;
@@ -226,7 +226,7 @@ bool php_phongo_bson_visit_binary(const bson_iter_t *iter __attribute__((unused)
226
226
}
227
227
/* }}} */
228
228
#if 0
229
- bool php_phongo_bson_visit_undefined (const bson_iter_t * iter __attribute__(( unused )) , const char * key , void * data ) /* {{{ */
229
+ bool php_phongo_bson_visit_undefined (const bson_iter_t * iter ARG_UNUSED , const char * key , void * data ) /* {{{ */
230
230
{
231
231
printf ("Not Implemented\n" );
232
232
@@ -235,7 +235,7 @@ bool php_phongo_bson_visit_undefined(const bson_iter_t *iter __attribute__((unus
235
235
/* }}} */
236
236
#endif
237
237
238
- bool php_phongo_bson_visit_oid (const bson_iter_t * iter __attribute__(( unused )) , const char * key , const bson_oid_t * v_oid , void * data ) /* {{{ */
238
+ bool php_phongo_bson_visit_oid (const bson_iter_t * iter ARG_UNUSED , const char * key , const bson_oid_t * v_oid , void * data ) /* {{{ */
239
239
{
240
240
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
241
241
zval * zchild = NULL ;
@@ -251,7 +251,7 @@ bool php_phongo_bson_visit_oid(const bson_iter_t *iter __attribute__((unused)),
251
251
return false;
252
252
}
253
253
/* }}} */
254
- bool php_phongo_bson_visit_bool (const bson_iter_t * iter __attribute__(( unused )) , const char * key , bool v_bool , void * data ) /* {{{ */
254
+ bool php_phongo_bson_visit_bool (const bson_iter_t * iter ARG_UNUSED , const char * key , bool v_bool , void * data ) /* {{{ */
255
255
{
256
256
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
257
257
@@ -260,7 +260,7 @@ bool php_phongo_bson_visit_bool(const bson_iter_t *iter __attribute__((unused)),
260
260
return false;
261
261
}
262
262
/* }}} */
263
- bool php_phongo_bson_visit_date_time (const bson_iter_t * iter __attribute__(( unused )) , const char * key , int64_t msec_since_epoch , void * data ) /* {{{ */
263
+ bool php_phongo_bson_visit_date_time (const bson_iter_t * iter ARG_UNUSED , const char * key , int64_t msec_since_epoch , void * data ) /* {{{ */
264
264
{
265
265
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
266
266
zval * zchild = NULL ;
@@ -276,7 +276,7 @@ bool php_phongo_bson_visit_date_time(const bson_iter_t *iter __attribute__((unus
276
276
return false;
277
277
}
278
278
/* }}} */
279
- bool php_phongo_bson_visit_null (const bson_iter_t * iter __attribute__(( unused )) , const char * key , void * data ) /* {{{ */
279
+ bool php_phongo_bson_visit_null (const bson_iter_t * iter ARG_UNUSED , const char * key , void * data ) /* {{{ */
280
280
{
281
281
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
282
282
@@ -285,7 +285,7 @@ bool php_phongo_bson_visit_null(const bson_iter_t *iter __attribute__((unused)),
285
285
return false;
286
286
}
287
287
/* }}} */
288
- bool php_phongo_bson_visit_regex (const bson_iter_t * iter __attribute__(( unused )) , const char * key , const char * v_regex , const char * v_options , void * data ) /* {{{ */
288
+ bool php_phongo_bson_visit_regex (const bson_iter_t * iter ARG_UNUSED , const char * key , const char * v_regex , const char * v_options , void * data ) /* {{{ */
289
289
{
290
290
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
291
291
zval * zchild = NULL ;
@@ -302,15 +302,15 @@ bool php_phongo_bson_visit_regex(const bson_iter_t *iter __attribute__((unused))
302
302
}
303
303
/* }}} */
304
304
#if 0
305
- bool php_phongo_bson_visit_dbpointer (const bson_iter_t * iter __attribute__(( unused )) , const char * key , size_t v_collection_len , const char * v_collection , const bson_oid_t * v_oid , void * data ) /* {{{ */
305
+ bool php_phongo_bson_visit_dbpointer (const bson_iter_t * iter ARG_UNUSED , const char * key , size_t v_collection_len , const char * v_collection , const bson_oid_t * v_oid , void * data ) /* {{{ */
306
306
{
307
307
printf ("Not Implemented\n" );
308
308
309
309
return true;
310
310
}
311
311
/* }}} */
312
312
#endif
313
- bool php_phongo_bson_visit_code (const bson_iter_t * iter __attribute__(( unused )) , const char * key , size_t v_code_len , const char * v_code , void * data ) /* {{{ */
313
+ bool php_phongo_bson_visit_code (const bson_iter_t * iter ARG_UNUSED , const char * key , size_t v_code_len , const char * v_code , void * data ) /* {{{ */
314
314
{
315
315
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
316
316
zval * zchild = NULL ;
@@ -327,15 +327,15 @@ bool php_phongo_bson_visit_code(const bson_iter_t *iter __attribute__((unused)),
327
327
}
328
328
/* }}} */
329
329
#if 0
330
- bool php_phongo_bson_visit_symbol (const bson_iter_t * iter __attribute__(( unused )) , const char * key , size_t v_symbol_len , const char * v_symbol , void * data ) /* {{{ */
330
+ bool php_phongo_bson_visit_symbol (const bson_iter_t * iter ARG_UNUSED , const char * key , size_t v_symbol_len , const char * v_symbol , void * data ) /* {{{ */
331
331
{
332
332
printf ("Not Implemented\n" );
333
333
334
334
return true;
335
335
}
336
336
/* }}} */
337
337
#endif
338
- bool php_phongo_bson_visit_codewscope (const bson_iter_t * iter __attribute__(( unused )) , const char * key , size_t v_code_len , const char * v_code , const bson_t * v_scope , void * data ) /* {{{ */
338
+ bool php_phongo_bson_visit_codewscope (const bson_iter_t * iter ARG_UNUSED , const char * key , size_t v_code_len , const char * v_code , const bson_t * v_scope , void * data ) /* {{{ */
339
339
{
340
340
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
341
341
zval * zchild = NULL ;
@@ -351,7 +351,7 @@ bool php_phongo_bson_visit_codewscope(const bson_iter_t *iter __attribute__((unu
351
351
return false;
352
352
}
353
353
/* }}} */
354
- bool php_phongo_bson_visit_int32 (const bson_iter_t * iter __attribute__(( unused )) , const char * key , int32_t v_int32 , void * data ) /* {{{ */
354
+ bool php_phongo_bson_visit_int32 (const bson_iter_t * iter ARG_UNUSED , const char * key , int32_t v_int32 , void * data ) /* {{{ */
355
355
{
356
356
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
357
357
@@ -360,7 +360,7 @@ bool php_phongo_bson_visit_int32(const bson_iter_t *iter __attribute__((unused))
360
360
return false;
361
361
}
362
362
/* }}} */
363
- bool php_phongo_bson_visit_timestamp (const bson_iter_t * iter __attribute__(( unused )) , const char * key , uint32_t v_timestamp , uint32_t v_increment , void * data ) /* {{{ */
363
+ bool php_phongo_bson_visit_timestamp (const bson_iter_t * iter ARG_UNUSED , const char * key , uint32_t v_timestamp , uint32_t v_increment , void * data ) /* {{{ */
364
364
{
365
365
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
366
366
zval * zchild = NULL ;
@@ -376,7 +376,7 @@ bool php_phongo_bson_visit_timestamp(const bson_iter_t *iter __attribute__((unus
376
376
return false;
377
377
}
378
378
/* }}} */
379
- bool php_phongo_bson_visit_int64 (const bson_iter_t * iter __attribute__(( unused )) , const char * key , int64_t v_int64 , void * data ) /* {{{ */
379
+ bool php_phongo_bson_visit_int64 (const bson_iter_t * iter ARG_UNUSED , const char * key , int64_t v_int64 , void * data ) /* {{{ */
380
380
{
381
381
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
382
382
@@ -392,7 +392,7 @@ bool php_phongo_bson_visit_int64(const bson_iter_t *iter __attribute__((unused))
392
392
return false;
393
393
}
394
394
/* }}} */
395
- bool php_phongo_bson_visit_maxkey (const bson_iter_t * iter __attribute__(( unused )) , const char * key , void * data ) /* {{{ */
395
+ bool php_phongo_bson_visit_maxkey (const bson_iter_t * iter ARG_UNUSED , const char * key , void * data ) /* {{{ */
396
396
{
397
397
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
398
398
zval * zchild = NULL ;
@@ -408,7 +408,7 @@ bool php_phongo_bson_visit_maxkey(const bson_iter_t *iter __attribute__((unused)
408
408
return false;
409
409
}
410
410
/* }}} */
411
- bool php_phongo_bson_visit_minkey (const bson_iter_t * iter __attribute__(( unused )) , const char * key , void * data ) /* {{{ */
411
+ bool php_phongo_bson_visit_minkey (const bson_iter_t * iter ARG_UNUSED , const char * key , void * data ) /* {{{ */
412
412
{
413
413
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
414
414
zval * zchild = NULL ;
@@ -454,7 +454,7 @@ static const bson_visitor_t php_bson_visitors = {
454
454
};
455
455
456
456
457
- bool php_phongo_bson_visit_document (const bson_iter_t * iter __attribute__(( unused )) , const char * key , const bson_t * v_document , void * data )
457
+ bool php_phongo_bson_visit_document (const bson_iter_t * iter ARG_UNUSED , const char * key , const bson_t * v_document , void * data )
458
458
{
459
459
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
460
460
bson_iter_t child ;
@@ -489,7 +489,7 @@ bool php_phongo_bson_visit_document(const bson_iter_t *iter __attribute__((unuse
489
489
}
490
490
491
491
492
- bool php_phongo_bson_visit_array (const bson_iter_t * iter __attribute__(( unused )) , const char * key , const bson_t * v_array , void * data )
492
+ bool php_phongo_bson_visit_array (const bson_iter_t * iter ARG_UNUSED , const char * key , const bson_t * v_array , void * data )
493
493
{
494
494
zval * retval = ((php_phongo_bson_state * )data )-> zchild ;
495
495
bson_iter_t child ;
0 commit comments