Skip to content

Commit

Permalink
Auto-generate files after cl/669513564
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Aug 31, 2024
1 parent 8422e97 commit 6ec8f87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 44 deletions.
19 changes: 1 addition & 18 deletions php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DEPRECATED
#endif

// begin:google_only
// #define UPB_IS_GOOGLE3
// end:google_only

#if defined(UPB_IS_GOOGLE3) && \
(!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0)
#define UPB_DESC(sym) proto2_##sym
Expand All @@ -346,6 +342,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init
#endif

#undef UPB_IS_GOOGLE3

// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
Expand Down Expand Up @@ -14350,20 +14347,6 @@ static bool _upb_FieldDef_InferLegacyFeatures(
ret = true;
}

// begin:google_only
// #if UPB_BOOTSTRAP_STAGE != 0
// if (syntax == kUpb_Syntax_Proto3 &&
// UPB_DESC(FieldOptions_has_enforce_utf8)(options) &&
// !UPB_DESC(FieldOptions_enforce_utf8)(options)) {
// int val = UPB_DESC(FeatureSet_UNVERIFIED);
// UPB_DESC(FeatureSet_set_utf8_validation(features, val));
// ret = true;
// }
// #endif
// // clang-format off
// end:google_only
// clang-format on

return ret;
}

Expand Down
5 changes: 1 addition & 4 deletions php/ext/google/protobuf/php-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DEPRECATED
#endif

// begin:google_only
// #define UPB_IS_GOOGLE3
// end:google_only

#if defined(UPB_IS_GOOGLE3) && \
(!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0)
#define UPB_DESC(sym) proto2_##sym
Expand All @@ -345,6 +341,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init
#endif

#undef UPB_IS_GOOGLE3

// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
Expand Down
19 changes: 1 addition & 18 deletions ruby/ext/google/protobuf_c/ruby-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DEPRECATED
#endif

// begin:google_only
// #define UPB_IS_GOOGLE3
// end:google_only

#if defined(UPB_IS_GOOGLE3) && \
(!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0)
#define UPB_DESC(sym) proto2_##sym
Expand All @@ -346,6 +342,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init
#endif

#undef UPB_IS_GOOGLE3

// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
Expand Down Expand Up @@ -13838,20 +13835,6 @@ static bool _upb_FieldDef_InferLegacyFeatures(
ret = true;
}

// begin:google_only
// #if UPB_BOOTSTRAP_STAGE != 0
// if (syntax == kUpb_Syntax_Proto3 &&
// UPB_DESC(FieldOptions_has_enforce_utf8)(options) &&
// !UPB_DESC(FieldOptions_enforce_utf8)(options)) {
// int val = UPB_DESC(FeatureSet_UNVERIFIED);
// UPB_DESC(FeatureSet_set_utf8_validation(features, val));
// ret = true;
// }
// #endif
// // clang-format off
// end:google_only
// clang-format on

return ret;
}

Expand Down
5 changes: 1 addition & 4 deletions ruby/ext/google/protobuf_c/ruby-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DEPRECATED
#endif

// begin:google_only
// #define UPB_IS_GOOGLE3
// end:google_only

#if defined(UPB_IS_GOOGLE3) && \
(!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0)
#define UPB_DESC(sym) proto2_##sym
Expand All @@ -347,6 +343,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init
#endif

#undef UPB_IS_GOOGLE3

// Linker arrays combine elements from multiple translation units into a single
// array that can be iterated over at runtime.
Expand Down

0 comments on commit 6ec8f87

Please sign in to comment.