@@ -47,8 +47,8 @@ size_t stringsink_string(void *_sink, const void *hd, const char *ptr,
47
47
stringsink * sink = _sink ;
48
48
size_t new_size = sink -> size ;
49
49
50
- UPB_UNUSED (hd );
51
- UPB_UNUSED (handle );
50
+ PHP_PROTO_UNUSED (hd );
51
+ PHP_PROTO_UNUSED (handle );
52
52
53
53
while (sink -> len + len > new_size ) {
54
54
new_size *= 2 ;
@@ -243,7 +243,7 @@ DEFINE_APPEND_HANDLER(double, double)
243
243
static void * appendstr_handler (void * closure ,
244
244
const void * hd ,
245
245
size_t size_hint ) {
246
- UPB_UNUSED (hd );
246
+ PHP_PROTO_UNUSED (hd );
247
247
248
248
stringfields_parseframe_t * frame =
249
249
(stringfields_parseframe_t * )malloc (sizeof (stringfields_parseframe_t ));
@@ -354,7 +354,7 @@ static void new_php_string(zval* value_ptr, const char* str, size_t len) {
354
354
static void * str_handler (void * closure ,
355
355
const void * hd ,
356
356
size_t size_hint ) {
357
- UPB_UNUSED (hd );
357
+ PHP_PROTO_UNUSED (hd );
358
358
359
359
stringfields_parseframe_t * frame =
360
360
(stringfields_parseframe_t * )malloc (sizeof (stringfields_parseframe_t ));
@@ -763,7 +763,7 @@ static bool oneofstr_end_handler(void *closure, const void *hd) {
763
763
static void * oneofstr_handler (void * closure ,
764
764
const void * hd ,
765
765
size_t size_hint ) {
766
- UPB_UNUSED (hd );
766
+ PHP_PROTO_UNUSED (hd );
767
767
768
768
stringfields_parseframe_t * frame =
769
769
(stringfields_parseframe_t * )malloc (sizeof (stringfields_parseframe_t ));
@@ -1093,7 +1093,7 @@ static void putmap(zval* map, const upb_fielddef* f, upb_sink sink,
1093
1093
static upb_selector_t getsel (const upb_fielddef * f , upb_handlertype_t type ) {
1094
1094
upb_selector_t ret ;
1095
1095
bool ok = upb_handlers_getselector (f , type , & ret );
1096
- UPB_ASSERT (ok );
1096
+ PHP_PROTO_ASSERT (ok );
1097
1097
return ret ;
1098
1098
}
1099
1099
0 commit comments