Auto-generate files after cl/600639423

pull/15500/head
Protobuf Team Bot 10 months ago
parent 373ffa6622
commit 23c618aa7d
  1. 4
      php/ext/google/protobuf/php-upb.c
  2. 9
      php/ext/google/protobuf/php-upb.h
  3. 4
      ruby/ext/google/protobuf_c/ruby-upb.c
  4. 9
      ruby/ext/google/protobuf_c/ruby-upb.h

@ -11091,7 +11091,7 @@ int upb_Unicode_ToUTF8(uint32_t cp, char* out) {
// Must be last.
const struct upb_Extension* _upb_Message_Getext(
const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getext)(
const struct upb_Message* msg, const upb_MiniTableExtension* e) {
size_t n;
const struct upb_Extension* ext = UPB_PRIVATE(_upb_Message_Getexts)(msg, &n);
@ -11123,7 +11123,7 @@ const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getexts)(
struct upb_Extension* _upb_Message_GetOrCreateExtension(
struct upb_Message* msg, const upb_MiniTableExtension* e, upb_Arena* a) {
struct upb_Extension* ext =
(struct upb_Extension*)_upb_Message_Getext(msg, e);
(struct upb_Extension*)UPB_PRIVATE(_upb_Message_Getext)(msg, e);
if (ext) return ext;
if (!UPB_PRIVATE(_upb_Message_Realloc)(msg, sizeof(struct upb_Extension), a))
return NULL;

@ -2011,7 +2011,7 @@ const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getexts)(
// Returns an extension for a message with a given mini table,
// or NULL if no extension exists with this mini table.
const struct upb_Extension* _upb_Message_Getext(
const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getext)(
const struct upb_Message* msg, const upb_MiniTableExtension* ext);
#ifdef __cplusplus
@ -2739,7 +2739,7 @@ UPB_INLINE bool UPB_PRIVATE(_upb_Message_HasBaseField)(
UPB_INLINE bool UPB_PRIVATE(_upb_Message_HasExtension)(
const struct upb_Message* msg, const upb_MiniTableExtension* ext) {
UPB_ASSERT(upb_MiniTableField_HasPresence(&ext->UPB_PRIVATE(field)));
return _upb_Message_Getext(msg, ext) != NULL;
return UPB_PRIVATE(_upb_Message_Getext)(msg, ext) != NULL;
}
static UPB_FORCEINLINE void _upb_Message_GetNonExtensionField(
@ -2759,7 +2759,8 @@ static UPB_FORCEINLINE void _upb_Message_GetNonExtensionField(
UPB_INLINE void _upb_Message_GetExtensionField(
const struct upb_Message* msg, const upb_MiniTableExtension* mt_ext,
const void* default_val, void* val) {
const struct upb_Extension* ext = _upb_Message_Getext(msg, mt_ext);
const struct upb_Extension* ext =
UPB_PRIVATE(_upb_Message_Getext)(msg, mt_ext);
const upb_MiniTableField* f = &mt_ext->UPB_PRIVATE(field);
UPB_ASSUME(upb_MiniTableField_IsExtension(f));
@ -2815,7 +2816,7 @@ UPB_INLINE void UPB_PRIVATE(_upb_Message_ClearExtension)(
const struct upb_Extension* base =
UPB_PTR_AT(in, in->ext_begin, struct upb_Extension);
struct upb_Extension* ext =
(struct upb_Extension*)_upb_Message_Getext(msg, e);
(struct upb_Extension*)UPB_PRIVATE(_upb_Message_Getext)(msg, e);
if (ext) {
*ext = *base;
in->ext_begin += sizeof(struct upb_Extension);

@ -10605,7 +10605,7 @@ int upb_Unicode_ToUTF8(uint32_t cp, char* out) {
// Must be last.
const struct upb_Extension* _upb_Message_Getext(
const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getext)(
const struct upb_Message* msg, const upb_MiniTableExtension* e) {
size_t n;
const struct upb_Extension* ext = UPB_PRIVATE(_upb_Message_Getexts)(msg, &n);
@ -10637,7 +10637,7 @@ const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getexts)(
struct upb_Extension* _upb_Message_GetOrCreateExtension(
struct upb_Message* msg, const upb_MiniTableExtension* e, upb_Arena* a) {
struct upb_Extension* ext =
(struct upb_Extension*)_upb_Message_Getext(msg, e);
(struct upb_Extension*)UPB_PRIVATE(_upb_Message_Getext)(msg, e);
if (ext) return ext;
if (!UPB_PRIVATE(_upb_Message_Realloc)(msg, sizeof(struct upb_Extension), a))
return NULL;

@ -2013,7 +2013,7 @@ const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getexts)(
// Returns an extension for a message with a given mini table,
// or NULL if no extension exists with this mini table.
const struct upb_Extension* _upb_Message_Getext(
const struct upb_Extension* UPB_PRIVATE(_upb_Message_Getext)(
const struct upb_Message* msg, const upb_MiniTableExtension* ext);
#ifdef __cplusplus
@ -2741,7 +2741,7 @@ UPB_INLINE bool UPB_PRIVATE(_upb_Message_HasBaseField)(
UPB_INLINE bool UPB_PRIVATE(_upb_Message_HasExtension)(
const struct upb_Message* msg, const upb_MiniTableExtension* ext) {
UPB_ASSERT(upb_MiniTableField_HasPresence(&ext->UPB_PRIVATE(field)));
return _upb_Message_Getext(msg, ext) != NULL;
return UPB_PRIVATE(_upb_Message_Getext)(msg, ext) != NULL;
}
static UPB_FORCEINLINE void _upb_Message_GetNonExtensionField(
@ -2761,7 +2761,8 @@ static UPB_FORCEINLINE void _upb_Message_GetNonExtensionField(
UPB_INLINE void _upb_Message_GetExtensionField(
const struct upb_Message* msg, const upb_MiniTableExtension* mt_ext,
const void* default_val, void* val) {
const struct upb_Extension* ext = _upb_Message_Getext(msg, mt_ext);
const struct upb_Extension* ext =
UPB_PRIVATE(_upb_Message_Getext)(msg, mt_ext);
const upb_MiniTableField* f = &mt_ext->UPB_PRIVATE(field);
UPB_ASSUME(upb_MiniTableField_IsExtension(f));
@ -2817,7 +2818,7 @@ UPB_INLINE void UPB_PRIVATE(_upb_Message_ClearExtension)(
const struct upb_Extension* base =
UPB_PTR_AT(in, in->ext_begin, struct upb_Extension);
struct upb_Extension* ext =
(struct upb_Extension*)_upb_Message_Getext(msg, e);
(struct upb_Extension*)UPB_PRIVATE(_upb_Message_Getext)(msg, e);
if (ext) {
*ext = *base;
in->ext_begin += sizeof(struct upb_Extension);

Loading…
Cancel
Save