Auto-generate files after cl/642420355

pull/17034/head
Protobuf Team Bot 6 months ago
parent 1227db3dbe
commit bbf52275db
  1. 6
      php/ext/google/protobuf/php-upb.c
  2. 6
      php/ext/google/protobuf/php-upb.h
  3. 6
      ruby/ext/google/protobuf_c/ruby-upb.c
  4. 6
      ruby/ext/google/protobuf_c/ruby-upb.h

@ -386,13 +386,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds
/* As described in: https://stackoverflow.com/a/22366882 */ /* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \ #define UPB_LINKARR_APPEND(name) \
__attribute__((retain, used, section("__DATA,la_" #name))) __attribute__((retain, used, section("__DATA,__la_" #name)))
#define UPB_LINKARR_DECLARE(name, type) \ #define UPB_LINKARR_DECLARE(name, type) \
extern type const __start_linkarr_##name __asm( \ extern type const __start_linkarr_##name __asm( \
"section$start$__DATA$la_" #name); \ "section$start$__DATA$__la_" #name); \
extern type const __stop_linkarr_##name __asm( \ extern type const __stop_linkarr_##name __asm( \
"section$end$__DATA$" \ "section$end$__DATA$" \
"la_" #name); \ "__la_" #name); \
UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1]
#define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)

@ -385,13 +385,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds
/* As described in: https://stackoverflow.com/a/22366882 */ /* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \ #define UPB_LINKARR_APPEND(name) \
__attribute__((retain, used, section("__DATA,la_" #name))) __attribute__((retain, used, section("__DATA,__la_" #name)))
#define UPB_LINKARR_DECLARE(name, type) \ #define UPB_LINKARR_DECLARE(name, type) \
extern type const __start_linkarr_##name __asm( \ extern type const __start_linkarr_##name __asm( \
"section$start$__DATA$la_" #name); \ "section$start$__DATA$__la_" #name); \
extern type const __stop_linkarr_##name __asm( \ extern type const __stop_linkarr_##name __asm( \
"section$end$__DATA$" \ "section$end$__DATA$" \
"la_" #name); \ "__la_" #name); \
UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1]
#define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)

@ -386,13 +386,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds
/* As described in: https://stackoverflow.com/a/22366882 */ /* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \ #define UPB_LINKARR_APPEND(name) \
__attribute__((retain, used, section("__DATA,la_" #name))) __attribute__((retain, used, section("__DATA,__la_" #name)))
#define UPB_LINKARR_DECLARE(name, type) \ #define UPB_LINKARR_DECLARE(name, type) \
extern type const __start_linkarr_##name __asm( \ extern type const __start_linkarr_##name __asm( \
"section$start$__DATA$la_" #name); \ "section$start$__DATA$__la_" #name); \
extern type const __stop_linkarr_##name __asm( \ extern type const __stop_linkarr_##name __asm( \
"section$end$__DATA$" \ "section$end$__DATA$" \
"la_" #name); \ "__la_" #name); \
UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1]
#define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)

@ -387,13 +387,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds
/* As described in: https://stackoverflow.com/a/22366882 */ /* As described in: https://stackoverflow.com/a/22366882 */
#define UPB_LINKARR_APPEND(name) \ #define UPB_LINKARR_APPEND(name) \
__attribute__((retain, used, section("__DATA,la_" #name))) __attribute__((retain, used, section("__DATA,__la_" #name)))
#define UPB_LINKARR_DECLARE(name, type) \ #define UPB_LINKARR_DECLARE(name, type) \
extern type const __start_linkarr_##name __asm( \ extern type const __start_linkarr_##name __asm( \
"section$start$__DATA$la_" #name); \ "section$start$__DATA$__la_" #name); \
extern type const __stop_linkarr_##name __asm( \ extern type const __stop_linkarr_##name __asm( \
"section$end$__DATA$" \ "section$end$__DATA$" \
"la_" #name); \ "__la_" #name); \
UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1]
#define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_START(name) (&__start_linkarr_##name)
#define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)

Loading…
Cancel
Save