Auto-generate files after cl/599313198

pull/15470/head
Protobuf Team Bot 10 months ago
parent 7c5ff29979
commit fe6a601598
  1. 12
      php/ext/google/protobuf/php-upb.c
  2. 12
      php/ext/google/protobuf/php-upb.h
  3. 12
      ruby/ext/google/protobuf_c/ruby-upb.c
  4. 12
      ruby/ext/google/protobuf_c/ruby-upb.h

@ -7855,7 +7855,7 @@ static void upb_Decoder_AddKnownMessageSetItem(
_upb_Decoder_ErrorJmp(d, kUpb_DecodeStatus_OutOfMemory);
}
upb_Message* submsg = _upb_Decoder_NewSubMessage(
d, &ext->ext->UPB_PRIVATE(sub), upb_MiniTableExtension_AsField(ext->ext),
d, &ext->ext->UPB_PRIVATE(sub), &ext->ext->UPB_PRIVATE(field),
(upb_TaggedMessagePtr*)&ext->data);
upb_DecodeStatus status = upb_Decode(
data, size, submsg, upb_MiniTableExtension_GetSubMessage(item_mt),
@ -7965,13 +7965,13 @@ static const upb_MiniTableField* _upb_Decoder_FindField(upb_Decoder* d,
size_t idx = ((size_t)field_number) - 1; // 0 wraps to SIZE_MAX
if (idx < t->UPB_PRIVATE(dense_below)) {
/* Fastest case: index into dense fields. */
// Fastest case: index into dense fields.
goto found;
}
if (t->UPB_PRIVATE(dense_below) < t->UPB_PRIVATE(field_count)) {
/* Linear search non-dense fields. Resume scanning from last_field_index
* since fields are usually in order. */
// Linear search non-dense fields. Resume scanning from last_field_index
// since fields are usually in order.
size_t last = *last_field_index;
for (idx = last; idx < t->UPB_PRIVATE(field_count); idx++) {
if (t->UPB_PRIVATE(fields)[idx].UPB_PRIVATE(number) == field_number) {
@ -7991,7 +7991,7 @@ static const upb_MiniTableField* _upb_Decoder_FindField(upb_Decoder* d,
case kUpb_ExtMode_Extendable: {
const upb_MiniTableExtension* ext =
upb_ExtensionRegistry_Lookup(d->extreg, t, field_number);
if (ext) return upb_MiniTableExtension_AsField(ext);
if (ext) return &ext->UPB_PRIVATE(field);
break;
}
case kUpb_ExtMode_IsMessageSet:
@ -8004,7 +8004,7 @@ static const upb_MiniTableField* _upb_Decoder_FindField(upb_Decoder* d,
}
}
return &none; /* Unknown field. */
return &none; // Unknown field.
found:
UPB_ASSERT(t->UPB_PRIVATE(fields)[idx].UPB_PRIVATE(number) == field_number);

@ -1911,9 +1911,9 @@ struct upb_MiniTableExtension {
extern "C" {
#endif
UPB_INLINE const struct upb_MiniTableField* UPB_PRIVATE(
_upb_MiniTableExtension_AsField)(const struct upb_MiniTableExtension* e) {
return (const struct upb_MiniTableField*)&e->UPB_PRIVATE(field);
UPB_INLINE upb_CType UPB_PRIVATE(_upb_MiniTableExtension_CType)(
const struct upb_MiniTableExtension* e) {
return UPB_PRIVATE(_upb_MiniTableField_CType)(&e->UPB_PRIVATE(field));
}
UPB_INLINE uint32_t UPB_PRIVATE(_upb_MiniTableExtension_Number)(
@ -1947,9 +1947,9 @@ typedef struct upb_MiniTableExtension upb_MiniTableExtension;
extern "C" {
#endif
UPB_API_INLINE const upb_MiniTableField* upb_MiniTableExtension_AsField(
const upb_MiniTableExtension* e) {
return UPB_PRIVATE(_upb_MiniTableExtension_AsField)(e);
UPB_API_INLINE upb_CType
upb_MiniTableExtension_CType(const upb_MiniTableExtension* e) {
return UPB_PRIVATE(_upb_MiniTableExtension_CType)(e);
}
UPB_API_INLINE uint32_t

@ -7370,7 +7370,7 @@ static void upb_Decoder_AddKnownMessageSetItem(
_upb_Decoder_ErrorJmp(d, kUpb_DecodeStatus_OutOfMemory);
}
upb_Message* submsg = _upb_Decoder_NewSubMessage(
d, &ext->ext->UPB_PRIVATE(sub), upb_MiniTableExtension_AsField(ext->ext),
d, &ext->ext->UPB_PRIVATE(sub), &ext->ext->UPB_PRIVATE(field),
(upb_TaggedMessagePtr*)&ext->data);
upb_DecodeStatus status = upb_Decode(
data, size, submsg, upb_MiniTableExtension_GetSubMessage(item_mt),
@ -7480,13 +7480,13 @@ static const upb_MiniTableField* _upb_Decoder_FindField(upb_Decoder* d,
size_t idx = ((size_t)field_number) - 1; // 0 wraps to SIZE_MAX
if (idx < t->UPB_PRIVATE(dense_below)) {
/* Fastest case: index into dense fields. */
// Fastest case: index into dense fields.
goto found;
}
if (t->UPB_PRIVATE(dense_below) < t->UPB_PRIVATE(field_count)) {
/* Linear search non-dense fields. Resume scanning from last_field_index
* since fields are usually in order. */
// Linear search non-dense fields. Resume scanning from last_field_index
// since fields are usually in order.
size_t last = *last_field_index;
for (idx = last; idx < t->UPB_PRIVATE(field_count); idx++) {
if (t->UPB_PRIVATE(fields)[idx].UPB_PRIVATE(number) == field_number) {
@ -7506,7 +7506,7 @@ static const upb_MiniTableField* _upb_Decoder_FindField(upb_Decoder* d,
case kUpb_ExtMode_Extendable: {
const upb_MiniTableExtension* ext =
upb_ExtensionRegistry_Lookup(d->extreg, t, field_number);
if (ext) return upb_MiniTableExtension_AsField(ext);
if (ext) return &ext->UPB_PRIVATE(field);
break;
}
case kUpb_ExtMode_IsMessageSet:
@ -7519,7 +7519,7 @@ static const upb_MiniTableField* _upb_Decoder_FindField(upb_Decoder* d,
}
}
return &none; /* Unknown field. */
return &none; // Unknown field.
found:
UPB_ASSERT(t->UPB_PRIVATE(fields)[idx].UPB_PRIVATE(number) == field_number);

@ -1913,9 +1913,9 @@ struct upb_MiniTableExtension {
extern "C" {
#endif
UPB_INLINE const struct upb_MiniTableField* UPB_PRIVATE(
_upb_MiniTableExtension_AsField)(const struct upb_MiniTableExtension* e) {
return (const struct upb_MiniTableField*)&e->UPB_PRIVATE(field);
UPB_INLINE upb_CType UPB_PRIVATE(_upb_MiniTableExtension_CType)(
const struct upb_MiniTableExtension* e) {
return UPB_PRIVATE(_upb_MiniTableField_CType)(&e->UPB_PRIVATE(field));
}
UPB_INLINE uint32_t UPB_PRIVATE(_upb_MiniTableExtension_Number)(
@ -1949,9 +1949,9 @@ typedef struct upb_MiniTableExtension upb_MiniTableExtension;
extern "C" {
#endif
UPB_API_INLINE const upb_MiniTableField* upb_MiniTableExtension_AsField(
const upb_MiniTableExtension* e) {
return UPB_PRIVATE(_upb_MiniTableExtension_AsField)(e);
UPB_API_INLINE upb_CType
upb_MiniTableExtension_CType(const upb_MiniTableExtension* e) {
return UPB_PRIVATE(_upb_MiniTableExtension_CType)(e);
}
UPB_API_INLINE uint32_t

Loading…
Cancel
Save