diff --git a/tools/api/ReactNativeCPP.api b/tools/api/ReactNativeCPP.api index b4fc81ee932a49..4806db580b110c 100644 --- a/tools/api/ReactNativeCPP.api +++ b/tools/api/ReactNativeCPP.api @@ -2990,517 +2990,6 @@ NS_ASSUME_NONNULL_END @end /// @src {packages/react-native/React/Base/RCTUtils.h}: -extern "C" { -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; -typedef int __daddr_t; -typedef int __key_t; -typedef int __clockid_t; -typedef void *__timer_t; -typedef long int __blksize_t; -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; -typedef long int __fsword_t; -typedef long int __ssize_t; -typedef long int __syscall_slong_t; -typedef unsigned long int __syscall_ulong_t; -typedef __off64_t __loff_t; -typedef char *__caddr_t; -typedef long int __intptr_t; -typedef unsigned int __socklen_t; -typedef int __sig_atomic_t; -typedef float _Float32; -typedef double _Float64; -typedef double _Float32x; -typedef long double _Float64x; -typedef float float_t; -typedef double double_t; -extern int __fpclassify(double __value) noexcept(true) __attribute__((__const__)); -extern int __signbit(double __value) noexcept(true) __attribute__((__const__)); -extern int __isinf(double __value) noexcept(true) __attribute__((__const__)); -extern int __finite(double __value) noexcept(true) __attribute__((__const__)); -extern int __isnan(double __value) noexcept(true) __attribute__((__const__)); -extern int __iseqsig(double __x, double __y) noexcept(true); -extern int __issignaling(double __value) noexcept(true) __attribute__((__const__)); -extern double acos(double __x) noexcept(true); -extern double __acos(double __x) noexcept(true); -extern double asin(double __x) noexcept(true); -extern double __asin(double __x) noexcept(true); -extern double atan(double __x) noexcept(true); -extern double __atan(double __x) noexcept(true); -extern double atan2(double __y, double __x) noexcept(true); -extern double __atan2(double __y, double __x) noexcept(true); -extern double cos(double __x) noexcept(true); -extern double __cos(double __x) noexcept(true); -extern double sin(double __x) noexcept(true); -extern double __sin(double __x) noexcept(true); -extern double tan(double __x) noexcept(true); -extern double __tan(double __x) noexcept(true); -extern double cosh(double __x) noexcept(true); -extern double __cosh(double __x) noexcept(true); -extern double sinh(double __x) noexcept(true); -extern double __sinh(double __x) noexcept(true); -extern double tanh(double __x) noexcept(true); -extern double __tanh(double __x) noexcept(true); -extern double acosh(double __x) noexcept(true); -extern double __acosh(double __x) noexcept(true); -extern double asinh(double __x) noexcept(true); -extern double __asinh(double __x) noexcept(true); -extern double atanh(double __x) noexcept(true); -extern double __atanh(double __x) noexcept(true); -extern double exp(double __x) noexcept(true); -extern double __exp(double __x) noexcept(true); -extern double frexp(double __x, int *__exponent) noexcept(true); -extern double __frexp(double __x, int *__exponent) noexcept(true); -extern double ldexp(double __x, int __exponent) noexcept(true); -extern double __ldexp(double __x, int __exponent) noexcept(true); -extern double log(double __x) noexcept(true); -extern double __log(double __x) noexcept(true); -extern double log10(double __x) noexcept(true); -extern double __log10(double __x) noexcept(true); -extern double modf(double __x, double *__iptr) noexcept(true); -extern double __modf(double __x, double *__iptr) noexcept(true) __attribute__((__nonnull__(2))); -extern double expm1(double __x) noexcept(true); -extern double __expm1(double __x) noexcept(true); -extern double log1p(double __x) noexcept(true); -extern double __log1p(double __x) noexcept(true); -extern double logb(double __x) noexcept(true); -extern double __logb(double __x) noexcept(true); -extern double exp2(double __x) noexcept(true); -extern double __exp2(double __x) noexcept(true); -extern double log2(double __x) noexcept(true); -extern double __log2(double __x) noexcept(true); -extern double pow(double __x, double __y) noexcept(true); -extern double __pow(double __x, double __y) noexcept(true); -extern double sqrt(double __x) noexcept(true); -extern double __sqrt(double __x) noexcept(true); -extern double hypot(double __x, double __y) noexcept(true); -extern double __hypot(double __x, double __y) noexcept(true); -extern double cbrt(double __x) noexcept(true); -extern double __cbrt(double __x) noexcept(true); -extern double ceil(double __x) noexcept(true) __attribute__((__const__)); -extern double __ceil(double __x) noexcept(true) __attribute__((__const__)); -extern double fabs(double __x) noexcept(true) __attribute__((__const__)); -extern double __fabs(double __x) noexcept(true) __attribute__((__const__)); -extern double floor(double __x) noexcept(true) __attribute__((__const__)); -extern double __floor(double __x) noexcept(true) __attribute__((__const__)); -extern double fmod(double __x, double __y) noexcept(true); -extern double __fmod(double __x, double __y) noexcept(true); -extern int finite(double __value) noexcept(true) __attribute__((__const__)); -extern double drem(double __x, double __y) noexcept(true); -extern double __drem(double __x, double __y) noexcept(true); -extern double significand(double __x) noexcept(true); -extern double __significand(double __x) noexcept(true); -extern double copysign(double __x, double __y) noexcept(true) __attribute__((__const__)); -extern double __copysign(double __x, double __y) noexcept(true) __attribute__((__const__)); -extern double nan(const char *__tagb) noexcept(true); -extern double __nan(const char *__tagb) noexcept(true); -extern double j0(double) noexcept(true); -extern double __j0(double) noexcept(true); -extern double j1(double) noexcept(true); -extern double __j1(double) noexcept(true); -extern double jn(int, double) noexcept(true); -extern double __jn(int, double) noexcept(true); -extern double y0(double) noexcept(true); -extern double __y0(double) noexcept(true); -extern double y1(double) noexcept(true); -extern double __y1(double) noexcept(true); -extern double yn(int, double) noexcept(true); -extern double __yn(int, double) noexcept(true); -extern double erf(double) noexcept(true); -extern double __erf(double) noexcept(true); -extern double erfc(double) noexcept(true); -extern double __erfc(double) noexcept(true); -extern double lgamma(double) noexcept(true); -extern double __lgamma(double) noexcept(true); -extern double tgamma(double) noexcept(true); -extern double __tgamma(double) noexcept(true); -extern double gamma(double) noexcept(true); -extern double __gamma(double) noexcept(true); -extern double lgamma_r(double, int *__signgamp) noexcept(true); -extern double __lgamma_r(double, int *__signgamp) noexcept(true); -extern double rint(double __x) noexcept(true); -extern double __rint(double __x) noexcept(true); -extern double nextafter(double __x, double __y) noexcept(true); -extern double __nextafter(double __x, double __y) noexcept(true); -extern double nexttoward(double __x, long double __y) noexcept(true); -extern double __nexttoward(double __x, long double __y) noexcept(true); -extern double remainder(double __x, double __y) noexcept(true); -extern double __remainder(double __x, double __y) noexcept(true); -extern double scalbn(double __x, int __n) noexcept(true); -extern double __scalbn(double __x, int __n) noexcept(true); -extern int ilogb(double __x) noexcept(true); -extern int __ilogb(double __x) noexcept(true); -extern double scalbln(double __x, long int __n) noexcept(true); -extern double __scalbln(double __x, long int __n) noexcept(true); -extern double nearbyint(double __x) noexcept(true); -extern double __nearbyint(double __x) noexcept(true); -extern double round(double __x) noexcept(true) __attribute__((__const__)); -extern double __round(double __x) noexcept(true) __attribute__((__const__)); -extern double trunc(double __x) noexcept(true) __attribute__((__const__)); -extern double __trunc(double __x) noexcept(true) __attribute__((__const__)); -extern double remquo(double __x, double __y, int *__quo) noexcept(true); -extern double __remquo(double __x, double __y, int *__quo) noexcept(true); -extern long int lrint(double __x) noexcept(true); -extern long int __lrint(double __x) noexcept(true); -__extension__ extern long long int llrint(double __x) noexcept(true); -extern long long int __llrint(double __x) noexcept(true); -extern long int lround(double __x) noexcept(true); -extern long int __lround(double __x) noexcept(true); -__extension__ extern long long int llround(double __x) noexcept(true); -extern long long int __llround(double __x) noexcept(true); -extern double fdim(double __x, double __y) noexcept(true); -extern double __fdim(double __x, double __y) noexcept(true); -extern double fmax(double __x, double __y) noexcept(true) __attribute__((__const__)); -extern double __fmax(double __x, double __y) noexcept(true) __attribute__((__const__)); -extern double fmin(double __x, double __y) noexcept(true) __attribute__((__const__)); -extern double __fmin(double __x, double __y) noexcept(true) __attribute__((__const__)); -extern double fma(double __x, double __y, double __z) noexcept(true); -extern double __fma(double __x, double __y, double __z) noexcept(true); -extern double scalb(double __x, double __n) noexcept(true); -extern double __scalb(double __x, double __n) noexcept(true); -extern int __fpclassifyf(float __value) noexcept(true) __attribute__((__const__)); -extern int __signbitf(float __value) noexcept(true) __attribute__((__const__)); -extern int __isinff(float __value) noexcept(true) __attribute__((__const__)); -extern int __finitef(float __value) noexcept(true) __attribute__((__const__)); -extern int __isnanf(float __value) noexcept(true) __attribute__((__const__)); -extern int __iseqsigf(float __x, float __y) noexcept(true); -extern int __issignalingf(float __value) noexcept(true) __attribute__((__const__)); -extern float acosf(float __x) noexcept(true); -extern float __acosf(float __x) noexcept(true); -extern float asinf(float __x) noexcept(true); -extern float __asinf(float __x) noexcept(true); -extern float atanf(float __x) noexcept(true); -extern float __atanf(float __x) noexcept(true); -extern float atan2f(float __y, float __x) noexcept(true); -extern float __atan2f(float __y, float __x) noexcept(true); -extern float cosf(float __x) noexcept(true); -extern float __cosf(float __x) noexcept(true); -extern float sinf(float __x) noexcept(true); -extern float __sinf(float __x) noexcept(true); -extern float tanf(float __x) noexcept(true); -extern float __tanf(float __x) noexcept(true); -extern float coshf(float __x) noexcept(true); -extern float __coshf(float __x) noexcept(true); -extern float sinhf(float __x) noexcept(true); -extern float __sinhf(float __x) noexcept(true); -extern float tanhf(float __x) noexcept(true); -extern float __tanhf(float __x) noexcept(true); -extern float acoshf(float __x) noexcept(true); -extern float __acoshf(float __x) noexcept(true); -extern float asinhf(float __x) noexcept(true); -extern float __asinhf(float __x) noexcept(true); -extern float atanhf(float __x) noexcept(true); -extern float __atanhf(float __x) noexcept(true); -extern float expf(float __x) noexcept(true); -extern float __expf(float __x) noexcept(true); -extern float frexpf(float __x, int *__exponent) noexcept(true); -extern float __frexpf(float __x, int *__exponent) noexcept(true); -extern float ldexpf(float __x, int __exponent) noexcept(true); -extern float __ldexpf(float __x, int __exponent) noexcept(true); -extern float logf(float __x) noexcept(true); -extern float __logf(float __x) noexcept(true); -extern float log10f(float __x) noexcept(true); -extern float __log10f(float __x) noexcept(true); -extern float modff(float __x, float *__iptr) noexcept(true); -extern float __modff(float __x, float *__iptr) noexcept(true) __attribute__((__nonnull__(2))); -extern float expm1f(float __x) noexcept(true); -extern float __expm1f(float __x) noexcept(true); -extern float log1pf(float __x) noexcept(true); -extern float __log1pf(float __x) noexcept(true); -extern float logbf(float __x) noexcept(true); -extern float __logbf(float __x) noexcept(true); -extern float exp2f(float __x) noexcept(true); -extern float __exp2f(float __x) noexcept(true); -extern float log2f(float __x) noexcept(true); -extern float __log2f(float __x) noexcept(true); -extern float powf(float __x, float __y) noexcept(true); -extern float __powf(float __x, float __y) noexcept(true); -extern float sqrtf(float __x) noexcept(true); -extern float __sqrtf(float __x) noexcept(true); -extern float hypotf(float __x, float __y) noexcept(true); -extern float __hypotf(float __x, float __y) noexcept(true); -extern float cbrtf(float __x) noexcept(true); -extern float __cbrtf(float __x) noexcept(true); -extern float ceilf(float __x) noexcept(true) __attribute__((__const__)); -extern float __ceilf(float __x) noexcept(true) __attribute__((__const__)); -extern float fabsf(float __x) noexcept(true) __attribute__((__const__)); -extern float __fabsf(float __x) noexcept(true) __attribute__((__const__)); -extern float floorf(float __x) noexcept(true) __attribute__((__const__)); -extern float __floorf(float __x) noexcept(true) __attribute__((__const__)); -extern float fmodf(float __x, float __y) noexcept(true); -extern float __fmodf(float __x, float __y) noexcept(true); -extern int isinff(float __value) noexcept(true) __attribute__((__const__)); -extern int finitef(float __value) noexcept(true) __attribute__((__const__)); -extern float dremf(float __x, float __y) noexcept(true); -extern float __dremf(float __x, float __y) noexcept(true); -extern float significandf(float __x) noexcept(true); -extern float __significandf(float __x) noexcept(true); -extern float copysignf(float __x, float __y) noexcept(true) __attribute__((__const__)); -extern float __copysignf(float __x, float __y) noexcept(true) __attribute__((__const__)); -extern float nanf(const char *__tagb) noexcept(true); -extern float __nanf(const char *__tagb) noexcept(true); -extern int isnanf(float __value) noexcept(true) __attribute__((__const__)); -extern float j0f(float) noexcept(true); -extern float __j0f(float) noexcept(true); -extern float j1f(float) noexcept(true); -extern float __j1f(float) noexcept(true); -extern float jnf(int, float) noexcept(true); -extern float __jnf(int, float) noexcept(true); -extern float y0f(float) noexcept(true); -extern float __y0f(float) noexcept(true); -extern float y1f(float) noexcept(true); -extern float __y1f(float) noexcept(true); -extern float ynf(int, float) noexcept(true); -extern float __ynf(int, float) noexcept(true); -extern float erff(float) noexcept(true); -extern float __erff(float) noexcept(true); -extern float erfcf(float) noexcept(true); -extern float __erfcf(float) noexcept(true); -extern float lgammaf(float) noexcept(true); -extern float __lgammaf(float) noexcept(true); -extern float tgammaf(float) noexcept(true); -extern float __tgammaf(float) noexcept(true); -extern float gammaf(float) noexcept(true); -extern float __gammaf(float) noexcept(true); -extern float lgammaf_r(float, int *__signgamp) noexcept(true); -extern float __lgammaf_r(float, int *__signgamp) noexcept(true); -extern float rintf(float __x) noexcept(true); -extern float __rintf(float __x) noexcept(true); -extern float nextafterf(float __x, float __y) noexcept(true); -extern float __nextafterf(float __x, float __y) noexcept(true); -extern float nexttowardf(float __x, long double __y) noexcept(true); -extern float __nexttowardf(float __x, long double __y) noexcept(true); -extern float remainderf(float __x, float __y) noexcept(true); -extern float __remainderf(float __x, float __y) noexcept(true); -extern float scalbnf(float __x, int __n) noexcept(true); -extern float __scalbnf(float __x, int __n) noexcept(true); -extern int ilogbf(float __x) noexcept(true); -extern int __ilogbf(float __x) noexcept(true); -extern float scalblnf(float __x, long int __n) noexcept(true); -extern float __scalblnf(float __x, long int __n) noexcept(true); -extern float nearbyintf(float __x) noexcept(true); -extern float __nearbyintf(float __x) noexcept(true); -extern float roundf(float __x) noexcept(true) __attribute__((__const__)); -extern float __roundf(float __x) noexcept(true) __attribute__((__const__)); -extern float truncf(float __x) noexcept(true) __attribute__((__const__)); -extern float __truncf(float __x) noexcept(true) __attribute__((__const__)); -extern float remquof(float __x, float __y, int *__quo) noexcept(true); -extern float __remquof(float __x, float __y, int *__quo) noexcept(true); -extern long int lrintf(float __x) noexcept(true); -extern long int __lrintf(float __x) noexcept(true); -__extension__ extern long long int llrintf(float __x) noexcept(true); -extern long long int __llrintf(float __x) noexcept(true); -extern long int lroundf(float __x) noexcept(true); -extern long int __lroundf(float __x) noexcept(true); -__extension__ extern long long int llroundf(float __x) noexcept(true); -extern long long int __llroundf(float __x) noexcept(true); -extern float fdimf(float __x, float __y) noexcept(true); -extern float __fdimf(float __x, float __y) noexcept(true); -extern float fmaxf(float __x, float __y) noexcept(true) __attribute__((__const__)); -extern float __fmaxf(float __x, float __y) noexcept(true) __attribute__((__const__)); -extern float fminf(float __x, float __y) noexcept(true) __attribute__((__const__)); -extern float __fminf(float __x, float __y) noexcept(true) __attribute__((__const__)); -extern float fmaf(float __x, float __y, float __z) noexcept(true); -extern float __fmaf(float __x, float __y, float __z) noexcept(true); -extern float scalbf(float __x, float __n) noexcept(true); -extern float __scalbf(float __x, float __n) noexcept(true); -extern int __fpclassifyl(long double __value) noexcept(true) __attribute__((__const__)); -extern int __signbitl(long double __value) noexcept(true) __attribute__((__const__)); -extern int __isinfl(long double __value) noexcept(true) __attribute__((__const__)); -extern int __finitel(long double __value) noexcept(true) __attribute__((__const__)); -extern int __isnanl(long double __value) noexcept(true) __attribute__((__const__)); -extern int __iseqsigl(long double __x, long double __y) noexcept(true); -extern int __issignalingl(long double __value) noexcept(true) __attribute__((__const__)); -extern long double acosl(long double __x) noexcept(true); -extern long double __acosl(long double __x) noexcept(true); -extern long double asinl(long double __x) noexcept(true); -extern long double __asinl(long double __x) noexcept(true); -extern long double atanl(long double __x) noexcept(true); -extern long double __atanl(long double __x) noexcept(true); -extern long double atan2l(long double __y, long double __x) noexcept(true); -extern long double __atan2l(long double __y, long double __x) noexcept(true); -extern long double cosl(long double __x) noexcept(true); -extern long double __cosl(long double __x) noexcept(true); -extern long double sinl(long double __x) noexcept(true); -extern long double __sinl(long double __x) noexcept(true); -extern long double tanl(long double __x) noexcept(true); -extern long double __tanl(long double __x) noexcept(true); -extern long double coshl(long double __x) noexcept(true); -extern long double __coshl(long double __x) noexcept(true); -extern long double sinhl(long double __x) noexcept(true); -extern long double __sinhl(long double __x) noexcept(true); -extern long double tanhl(long double __x) noexcept(true); -extern long double __tanhl(long double __x) noexcept(true); -extern long double acoshl(long double __x) noexcept(true); -extern long double __acoshl(long double __x) noexcept(true); -extern long double asinhl(long double __x) noexcept(true); -extern long double __asinhl(long double __x) noexcept(true); -extern long double atanhl(long double __x) noexcept(true); -extern long double __atanhl(long double __x) noexcept(true); -extern long double expl(long double __x) noexcept(true); -extern long double __expl(long double __x) noexcept(true); -extern long double frexpl(long double __x, int *__exponent) noexcept(true); -extern long double __frexpl(long double __x, int *__exponent) noexcept(true); -extern long double ldexpl(long double __x, int __exponent) noexcept(true); -extern long double __ldexpl(long double __x, int __exponent) noexcept(true); -extern long double logl(long double __x) noexcept(true); -extern long double __logl(long double __x) noexcept(true); -extern long double log10l(long double __x) noexcept(true); -extern long double __log10l(long double __x) noexcept(true); -extern long double modfl(long double __x, long double *__iptr) noexcept(true); -extern long double __modfl(long double __x, long double *__iptr) noexcept(true) __attribute__((__nonnull__(2))); -extern long double expm1l(long double __x) noexcept(true); -extern long double __expm1l(long double __x) noexcept(true); -extern long double log1pl(long double __x) noexcept(true); -extern long double __log1pl(long double __x) noexcept(true); -extern long double logbl(long double __x) noexcept(true); -extern long double __logbl(long double __x) noexcept(true); -extern long double exp2l(long double __x) noexcept(true); -extern long double __exp2l(long double __x) noexcept(true); -extern long double log2l(long double __x) noexcept(true); -extern long double __log2l(long double __x) noexcept(true); -extern long double powl(long double __x, long double __y) noexcept(true); -extern long double __powl(long double __x, long double __y) noexcept(true); -extern long double sqrtl(long double __x) noexcept(true); -extern long double __sqrtl(long double __x) noexcept(true); -extern long double hypotl(long double __x, long double __y) noexcept(true); -extern long double __hypotl(long double __x, long double __y) noexcept(true); -extern long double cbrtl(long double __x) noexcept(true); -extern long double __cbrtl(long double __x) noexcept(true); -extern long double ceill(long double __x) noexcept(true) __attribute__((__const__)); -extern long double __ceill(long double __x) noexcept(true) __attribute__((__const__)); -extern long double fabsl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double __fabsl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double floorl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double __floorl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double fmodl(long double __x, long double __y) noexcept(true); -extern long double __fmodl(long double __x, long double __y) noexcept(true); -extern int isinfl(long double __value) noexcept(true) __attribute__((__const__)); -extern int finitel(long double __value) noexcept(true) __attribute__((__const__)); -extern long double dreml(long double __x, long double __y) noexcept(true); -extern long double __dreml(long double __x, long double __y) noexcept(true); -extern long double significandl(long double __x) noexcept(true); -extern long double __significandl(long double __x) noexcept(true); -extern long double copysignl(long double __x, long double __y) noexcept(true) __attribute__((__const__)); -extern long double __copysignl(long double __x, long double __y) noexcept(true) __attribute__((__const__)); -extern long double nanl(const char *__tagb) noexcept(true); -extern long double __nanl(const char *__tagb) noexcept(true); -extern int isnanl(long double __value) noexcept(true) __attribute__((__const__)); -extern long double j0l(long double) noexcept(true); -extern long double __j0l(long double) noexcept(true); -extern long double j1l(long double) noexcept(true); -extern long double __j1l(long double) noexcept(true); -extern long double jnl(int, long double) noexcept(true); -extern long double __jnl(int, long double) noexcept(true); -extern long double y0l(long double) noexcept(true); -extern long double __y0l(long double) noexcept(true); -extern long double y1l(long double) noexcept(true); -extern long double __y1l(long double) noexcept(true); -extern long double ynl(int, long double) noexcept(true); -extern long double __ynl(int, long double) noexcept(true); -extern long double erfl(long double) noexcept(true); -extern long double __erfl(long double) noexcept(true); -extern long double erfcl(long double) noexcept(true); -extern long double __erfcl(long double) noexcept(true); -extern long double lgammal(long double) noexcept(true); -extern long double __lgammal(long double) noexcept(true); -extern long double tgammal(long double) noexcept(true); -extern long double __tgammal(long double) noexcept(true); -extern long double gammal(long double) noexcept(true); -extern long double __gammal(long double) noexcept(true); -extern long double lgammal_r(long double, int *__signgamp) noexcept(true); -extern long double __lgammal_r(long double, int *__signgamp) noexcept(true); -extern long double rintl(long double __x) noexcept(true); -extern long double __rintl(long double __x) noexcept(true); -extern long double nextafterl(long double __x, long double __y) noexcept(true); -extern long double __nextafterl(long double __x, long double __y) noexcept(true); -extern long double nexttowardl(long double __x, long double __y) noexcept(true); -extern long double __nexttowardl(long double __x, long double __y) noexcept(true); -extern long double remainderl(long double __x, long double __y) noexcept(true); -extern long double __remainderl(long double __x, long double __y) noexcept(true); -extern long double scalbnl(long double __x, int __n) noexcept(true); -extern long double __scalbnl(long double __x, int __n) noexcept(true); -extern int ilogbl(long double __x) noexcept(true); -extern int __ilogbl(long double __x) noexcept(true); -extern long double scalblnl(long double __x, long int __n) noexcept(true); -extern long double __scalblnl(long double __x, long int __n) noexcept(true); -extern long double nearbyintl(long double __x) noexcept(true); -extern long double __nearbyintl(long double __x) noexcept(true); -extern long double roundl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double __roundl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double truncl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double __truncl(long double __x) noexcept(true) __attribute__((__const__)); -extern long double remquol(long double __x, long double __y, int *__quo) noexcept(true); -extern long double __remquol(long double __x, long double __y, int *__quo) noexcept(true); -extern long int lrintl(long double __x) noexcept(true); -extern long int __lrintl(long double __x) noexcept(true); -__extension__ extern long long int llrintl(long double __x) noexcept(true); -extern long long int __llrintl(long double __x) noexcept(true); -extern long int lroundl(long double __x) noexcept(true); -extern long int __lroundl(long double __x) noexcept(true); -__extension__ extern long long int llroundl(long double __x) noexcept(true); -extern long long int __llroundl(long double __x) noexcept(true); -extern long double fdiml(long double __x, long double __y) noexcept(true); -extern long double __fdiml(long double __x, long double __y) noexcept(true); -extern long double fmaxl(long double __x, long double __y) noexcept(true) __attribute__((__const__)); -extern long double __fmaxl(long double __x, long double __y) noexcept(true) __attribute__((__const__)); -extern long double fminl(long double __x, long double __y) noexcept(true) __attribute__((__const__)); -extern long double __fminl(long double __x, long double __y) noexcept(true) __attribute__((__const__)); -extern long double fmal(long double __x, long double __y, long double __z) noexcept(true); -extern long double __fmal(long double __x, long double __y, long double __z) noexcept(true); -extern long double scalbl(long double __x, long double __n) noexcept(true); -extern long double __scalbl(long double __x, long double __n) noexcept(true); -extern int signgam; -enum { FP_NAN = 0, FP_INFINITE = 1, FP_ZERO = 2, FP_SUBNORMAL = 3, FP_NORMAL = 4 }; -} NS_ASSUME_NONNULL_BEGIN RCT_EXTERN BOOL RCTIsNewArchEnabled(void); RCT_EXTERN void RCTSetNewArchEnabled(BOOL enabled); @@ -6178,590 +5667,6 @@ typedef struct { /// @src {packages/react-native/ReactAndroid/src/main/jni/first-party/fb/include/fb/Build.h}: -typedef long unsigned int size_t; - -extern "C" { -typedef float _Float32; -typedef double _Float64; -typedef double _Float32x; -typedef long double _Float64x; -typedef struct { - int quot; - int rem; -} div_t; -typedef struct { - long int quot; - long int rem; -} ldiv_t; -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) noexcept(true); -extern double atof(const char* __nptr) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -extern int atoi(const char* __nptr) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -extern long int atol(const char* __nptr) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -__extension__ extern long long int atoll(const char* __nptr) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern double strtod( - const char* __restrict __nptr, - char** __restrict __endptr) noexcept(true) __attribute__((__nonnull__(1))); -extern float strtof( - const char* __restrict __nptr, - char** __restrict __endptr) noexcept(true) __attribute__((__nonnull__(1))); -extern long double strtold( - const char* __restrict __nptr, - char** __restrict __endptr) noexcept(true) __attribute__((__nonnull__(1))); -extern long int strtol( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -extern unsigned long int strtoul( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern long long int strtoq( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern unsigned long long int strtouq( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern long long int strtoll( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern unsigned long long int strtoull( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -extern char* l64a(long int __n) noexcept(true); -extern long int a64l(const char* __s) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -extern "C" { -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; -typedef int __daddr_t; -typedef int __key_t; -typedef int __clockid_t; -typedef void* __timer_t; -typedef long int __blksize_t; -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; -typedef long int __fsword_t; -typedef long int __ssize_t; -typedef long int __syscall_slong_t; -typedef unsigned long int __syscall_ulong_t; -typedef __off64_t __loff_t; -typedef char* __caddr_t; -typedef long int __intptr_t; -typedef unsigned int __socklen_t; -typedef int __sig_atomic_t; -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; -typedef __loff_t loff_t; -typedef __ino_t ino_t; -typedef __dev_t dev_t; -typedef __gid_t gid_t; -typedef __mode_t mode_t; -typedef __nlink_t nlink_t; -typedef __uid_t uid_t; -typedef __off_t off_t; -typedef __pid_t pid_t; -typedef __id_t id_t; -typedef __ssize_t ssize_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; -typedef __key_t key_t; -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; -typedef __timer_t timer_t; -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - return ((__uint16_t)((((__bsx) >> 8) & 0xff) | (((__bsx) & 0xff) << 8))); -} -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - return ( - (((__bsx) & 0xff000000u) >> 24) | (((__bsx) & 0x00ff0000u) >> 8) | - (((__bsx) & 0x0000ff00u) << 8) | (((__bsx) & 0x000000ffu) << 24)); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - return ( - (((__bsx) & 0xff00000000000000ull) >> 56) | - (((__bsx) & 0x00ff000000000000ull) >> 40) | - (((__bsx) & 0x0000ff0000000000ull) >> 24) | - (((__bsx) & 0x000000ff00000000ull) >> 8) | - (((__bsx) & 0x00000000ff000000ull) << 8) | - (((__bsx) & 0x0000000000ff0000ull) << 24) | - (((__bsx) & 0x000000000000ff00ull) << 40) | - (((__bsx) & 0x00000000000000ffull) << 56)); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { - return __x; -} -static __inline __uint32_t __uint32_identity(__uint32_t __x) { - return __x; -} -static __inline __uint64_t __uint64_identity(__uint64_t __x) { - return __x; -} -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; -typedef __sigset_t sigset_t; -struct timeval { - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - __time_t tv_sec; - __syscall_slong_t tv_nsec; -}; -typedef __suseconds_t suseconds_t; -typedef long int __fd_mask; -typedef struct { - __fd_mask __fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; -} fd_set; -typedef __fd_mask fd_mask; -extern "C" { -extern int select( - int __nfds, - fd_set* __restrict __readfds, - fd_set* __restrict __writefds, - fd_set* __restrict __exceptfds, - struct timeval* __restrict __timeout); -extern int pselect( - int __nfds, - fd_set* __restrict __readfds, - fd_set* __restrict __writefds, - fd_set* __restrict __exceptfds, - const struct timespec* __restrict __timeout, - const __sigset_t* __restrict __sigmask); -} -typedef __blksize_t blksize_t; -typedef __blkcnt_t blkcnt_t; -typedef __fsblkcnt_t fsblkcnt_t; -typedef __fsfilcnt_t fsfilcnt_t; -typedef struct __pthread_internal_list { - struct __pthread_internal_list* __prev; - struct __pthread_internal_list* __next; -} __pthread_list_t; -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist* __next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - unsigned int __nusers; - int __kind; - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - int __cur_writer; - int __shared; - signed char __rwelision; - unsigned char __pad1[7]; - unsigned long int __pad2; - unsigned int __flags; -}; -struct __pthread_cond_s { - __extension__ union { - __extension__ unsigned long long int __wseq; - struct { - unsigned int __low; - unsigned int __high; - } __wseq32; - }; - __extension__ union { - __extension__ unsigned long long int __g1_start; - struct { - unsigned int __low; - unsigned int __high; - } __g1_start32; - }; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; -typedef struct { - int __data; -} __once_flag; -typedef unsigned long int pthread_t; -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; -typedef unsigned int pthread_key_t; -typedef int pthread_once_t; -union pthread_attr_t { - char __size[56]; - long int __align; -}; -typedef union pthread_attr_t pthread_attr_t; -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; -typedef volatile int pthread_spinlock_t; -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; -} -extern long int random(void) noexcept(true); -extern void srandom(unsigned int __seed) noexcept(true); -extern char* initstate( - unsigned int __seed, - char* __statebuf, - size_t __statelen) noexcept(true) __attribute__((__nonnull__(2))); -extern char* setstate(char* __statebuf) noexcept(true) - __attribute__((__nonnull__(1))); -struct random_data { - int32_t* fptr; - int32_t* rptr; - int32_t* state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t* end_ptr; -}; -extern int random_r( - struct random_data* __restrict __buf, - int32_t* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int srandom_r(unsigned int __seed, struct random_data* __buf) noexcept( - true) __attribute__((__nonnull__(2))); -extern int initstate_r( - unsigned int __seed, - char* __restrict __statebuf, - size_t __statelen, - struct random_data* __restrict __buf) noexcept(true) - __attribute__((__nonnull__(2, 4))); -extern int setstate_r( - char* __restrict __statebuf, - struct random_data* __restrict __buf) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int rand(void) noexcept(true); -extern void srand(unsigned int __seed) noexcept(true); -extern int rand_r(unsigned int* __seed) noexcept(true); -extern double drand48(void) noexcept(true); -extern double erand48(unsigned short int __xsubi[3]) noexcept(true) - __attribute__((__nonnull__(1))); -extern long int lrand48(void) noexcept(true); -extern long int nrand48(unsigned short int __xsubi[3]) noexcept(true) - __attribute__((__nonnull__(1))); -extern long int mrand48(void) noexcept(true); -extern long int jrand48(unsigned short int __xsubi[3]) noexcept(true) - __attribute__((__nonnull__(1))); -extern void srand48(long int __seedval) noexcept(true); -extern unsigned short int* seed48(unsigned short int __seed16v[3]) noexcept( - true) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) noexcept(true) - __attribute__((__nonnull__(1))); -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; -extern int drand48_r( - struct drand48_data* __restrict __buffer, - double* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int erand48_r( - unsigned short int __xsubi[3], - struct drand48_data* __restrict __buffer, - double* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int lrand48_r( - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int nrand48_r( - unsigned short int __xsubi[3], - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int mrand48_r( - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int jrand48_r( - unsigned short int __xsubi[3], - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int srand48_r( - long int __seedval, - struct drand48_data* __buffer) noexcept(true) - __attribute__((__nonnull__(2))); -extern int seed48_r( - unsigned short int __seed16v[3], - struct drand48_data* __buffer) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int lcong48_r( - unsigned short int __param[7], - struct drand48_data* __buffer) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern void* malloc(size_t __size) noexcept(true) __attribute__((__malloc__)); -extern void* calloc(size_t __nmemb, size_t __size) noexcept(true) - __attribute__((__malloc__)); -extern void* realloc(void* __ptr, size_t __size) noexcept(true) - __attribute__((__warn_unused_result__)); -extern void free(void* __ptr) noexcept(true); -extern void* reallocarray(void* __ptr, size_t __nmemb, size_t __size) noexcept( - true) __attribute__((__warn_unused_result__)); -extern void* reallocarray(void* __ptr, size_t __nmemb, size_t __size) noexcept( - true); - -extern "C" { -extern void* alloca(size_t __size) noexcept(true); -} -extern void* valloc(size_t __size) noexcept(true) __attribute__((__malloc__)); -extern int posix_memalign( - void** __memptr, - size_t __alignment, - size_t __size) noexcept(true) __attribute__((__nonnull__(1))); -extern void* aligned_alloc(size_t __alignment, size_t __size) noexcept(true) - __attribute__((__malloc__)); -extern void abort(void) noexcept(true) __attribute__((__noreturn__)); -extern int atexit(void (*__func)(void)) noexcept(true) - __attribute__((__nonnull__(1))); -extern "C++" int at_quick_exit(void (*__func)(void)) noexcept(true) __asm( - "at_quick_exit") __attribute__((__nonnull__(1))); -extern int on_exit( - void (*__func)(int __status, void* __arg), - void* __arg) noexcept(true) __attribute__((__nonnull__(1))); -extern void exit(int __status) noexcept(true) __attribute__((__noreturn__)); -extern void quick_exit(int __status) noexcept(true) - __attribute__((__noreturn__)); -extern void _Exit(int __status) noexcept(true) __attribute__((__noreturn__)); -extern char* getenv(const char* __name) noexcept(true) - __attribute__((__nonnull__(1))); -extern int putenv(char* __string) noexcept(true) - __attribute__((__nonnull__(1))); -extern int setenv( - const char* __name, - const char* __value, - int __replace) noexcept(true) __attribute__((__nonnull__(2))); -extern int unsetenv(const char* __name) noexcept(true) - __attribute__((__nonnull__(1))); -extern int clearenv(void) noexcept(true); -extern char* mktemp(char* __template) noexcept(true) - __attribute__((__nonnull__(1))); -extern int mkstemp(char* __template) __attribute__((__nonnull__(1))); -extern int mkstemps(char* __template, int __suffixlen) - __attribute__((__nonnull__(1))); -extern char* mkdtemp(char* __template) noexcept(true) - __attribute__((__nonnull__(1))); -extern int system(const char* __command); -extern char* realpath( - const char* __restrict __name, - char* __restrict __resolved) noexcept(true); -typedef int (*__compar_fn_t)(const void*, const void*); -extern void* bsearch( - const void* __key, - const void* __base, - size_t __nmemb, - size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 2, 5))); -extern void -qsort(void* __base, size_t __nmemb, size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 4))); -extern int abs(int __x) noexcept(true) __attribute__((__const__)); -extern long int labs(long int __x) noexcept(true) __attribute__((__const__)); -__extension__ extern long long int llabs(long long int __x) noexcept(true) - __attribute__((__const__)); -extern div_t div(int __numer, int __denom) noexcept(true) - __attribute__((__const__)); -extern ldiv_t ldiv(long int __numer, long int __denom) noexcept(true) - __attribute__((__const__)); -__extension__ extern lldiv_t lldiv( - long long int __numer, - long long int __denom) noexcept(true) __attribute__((__const__)); -extern char* ecvt( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* fcvt( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* gcvt(double __value, int __ndigit, char* __buf) noexcept(true) - __attribute__((__nonnull__(3))); -extern char* qecvt( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* qfcvt( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* qgcvt(long double __value, int __ndigit, char* __buf) noexcept( - true) __attribute__((__nonnull__(3))); -extern int ecvt_r( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int qecvt_r( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int mblen(const char* __s, size_t __n) noexcept(true); -extern int mbtowc( - wchar_t* __restrict __pwc, - const char* __restrict __s, - size_t __n) noexcept(true); -extern int wctomb(char* __s, wchar_t __wchar) noexcept(true); -extern size_t mbstowcs( - wchar_t* __restrict __pwcs, - const char* __restrict __s, - size_t __n) noexcept(true); -extern size_t wcstombs( - char* __restrict __s, - const wchar_t* __restrict __pwcs, - size_t __n) noexcept(true); -extern int rpmatch(const char* __response) noexcept(true) - __attribute__((__nonnull__(1))); -extern int getsubopt( - char** __restrict __optionp, - char* const* __restrict __tokens, - char** __restrict __valuep) noexcept(true) - __attribute__((__nonnull__(1, 2, 3))); -extern int getloadavg(double __loadavg[], int __nelem) noexcept(true) - __attribute__((__nonnull__(1))); -} namespace facebook { namespace build { struct Build { @@ -7036,675 +5941,6 @@ class StaticInitialized { } // namespace facebook /// @src {packages/react-native/ReactAndroid/src/main/jni/first-party/fb/include/fb/ThreadLocal.h}: -extern "C" { -extern int* __errno_location(void) noexcept(true) __attribute__((__const__)); -} -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; -typedef int __daddr_t; -typedef int __key_t; -typedef int __clockid_t; -typedef void* __timer_t; -typedef long int __blksize_t; -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; -typedef long int __fsword_t; -typedef long int __ssize_t; -typedef long int __syscall_slong_t; -typedef unsigned long int __syscall_ulong_t; -typedef __off64_t __loff_t; -typedef char* __caddr_t; -typedef long int __intptr_t; -typedef unsigned int __socklen_t; -typedef int __sig_atomic_t; -typedef long unsigned int size_t; - -typedef __time_t time_t; -struct timespec { - __time_t tv_sec; - __syscall_slong_t tv_nsec; -}; -typedef __pid_t pid_t; -struct sched_param { - int sched_priority; -}; - -extern "C" {} -typedef unsigned long int __cpu_mask; -typedef struct { - __cpu_mask __bits[1024 / (8 * sizeof(__cpu_mask))]; -} cpu_set_t; -extern "C" { -extern int __sched_cpucount(size_t __setsize, const cpu_set_t* __setp) noexcept( - true); -extern cpu_set_t* __sched_cpualloc(size_t __count) noexcept(true); -extern void __sched_cpufree(cpu_set_t* __set) noexcept(true); -} -extern "C" { -extern int sched_setparam( - __pid_t __pid, - const struct sched_param* __param) noexcept(true); -extern int sched_getparam(__pid_t __pid, struct sched_param* __param) noexcept( - true); -extern int sched_setscheduler( - __pid_t __pid, - int __policy, - const struct sched_param* __param) noexcept(true); -extern int sched_getscheduler(__pid_t __pid) noexcept(true); -extern int sched_yield(void) noexcept(true); -extern int sched_get_priority_max(int __algorithm) noexcept(true); -extern int sched_get_priority_min(int __algorithm) noexcept(true); -extern int sched_rr_get_interval(__pid_t __pid, struct timespec* __t) noexcept( - true); -} -typedef __clock_t clock_t; - -struct tm { - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - long int tm_gmtoff; - const char* tm_zone; -}; -typedef __clockid_t clockid_t; -typedef __timer_t timer_t; -struct itimerspec { - struct timespec it_interval; - struct timespec it_value; -}; -struct sigevent; -struct __locale_struct { - struct __locale_data* __locales[13]; - const unsigned short int* __ctype_b; - const int* __ctype_tolower; - const int* __ctype_toupper; - const char* __names[13]; -}; -typedef struct __locale_struct* __locale_t; - -typedef __locale_t locale_t; -extern "C" { -extern clock_t clock(void) noexcept(true); -extern time_t time(time_t* __timer) noexcept(true); -extern double difftime(time_t __time1, time_t __time0) noexcept(true) - __attribute__((__const__)); -extern time_t mktime(struct tm* __tp) noexcept(true); -extern size_t strftime( - char* __restrict __s, - size_t __maxsize, - const char* __restrict __format, - const struct tm* __restrict __tp) noexcept(true); -extern size_t strftime_l( - char* __restrict __s, - size_t __maxsize, - const char* __restrict __format, - const struct tm* __restrict __tp, - locale_t __loc) noexcept(true); -extern struct tm* gmtime(const time_t* __timer) noexcept(true); -extern struct tm* localtime(const time_t* __timer) noexcept(true); -extern struct tm* gmtime_r( - const time_t* __restrict __timer, - struct tm* __restrict __tp) noexcept(true); -extern struct tm* localtime_r( - const time_t* __restrict __timer, - struct tm* __restrict __tp) noexcept(true); -extern char* asctime(const struct tm* __tp) noexcept(true); -extern char* ctime(const time_t* __timer) noexcept(true); -extern char* asctime_r( - const struct tm* __restrict __tp, - char* __restrict __buf) noexcept(true); -extern char* ctime_r( - const time_t* __restrict __timer, - char* __restrict __buf) noexcept(true); -extern char* __tzname[2]; -extern int __daylight; -extern long int __timezone; -extern char* tzname[2]; -extern void tzset(void) noexcept(true); -extern int daylight; -extern long int timezone; -extern time_t timegm(struct tm* __tp) noexcept(true); -extern time_t timelocal(struct tm* __tp) noexcept(true); -extern int dysize(int __year) noexcept(true) __attribute__((__const__)); -extern int nanosleep( - const struct timespec* __requested_time, - struct timespec* __remaining); -extern int clock_getres(clockid_t __clock_id, struct timespec* __res) noexcept( - true); -extern int clock_gettime(clockid_t __clock_id, struct timespec* __tp) noexcept( - true); -extern int clock_settime( - clockid_t __clock_id, - const struct timespec* __tp) noexcept(true); -extern int clock_nanosleep( - clockid_t __clock_id, - int __flags, - const struct timespec* __req, - struct timespec* __rem); -extern int clock_getcpuclockid(pid_t __pid, clockid_t* __clock_id) noexcept( - true); -extern int timer_create( - clockid_t __clock_id, - struct sigevent* __restrict __evp, - timer_t* __restrict __timerid) noexcept(true); -extern int timer_delete(timer_t __timerid) noexcept(true); -extern int timer_settime( - timer_t __timerid, - int __flags, - const struct itimerspec* __restrict __value, - struct itimerspec* __restrict __ovalue) noexcept(true); -extern int timer_gettime( - timer_t __timerid, - struct itimerspec* __value) noexcept(true); -extern int timer_getoverrun(timer_t __timerid) noexcept(true); -extern int timespec_get(struct timespec* __ts, int __base) noexcept(true) - __attribute__((__nonnull__(1))); -} -typedef struct __pthread_internal_list { - struct __pthread_internal_list* __prev; - struct __pthread_internal_list* __next; -} __pthread_list_t; -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist* __next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - unsigned int __nusers; - int __kind; - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - int __cur_writer; - int __shared; - signed char __rwelision; - unsigned char __pad1[7]; - unsigned long int __pad2; - unsigned int __flags; -}; -struct __pthread_cond_s { - __extension__ union { - __extension__ unsigned long long int __wseq; - struct { - unsigned int __low; - unsigned int __high; - } __wseq32; - }; - __extension__ union { - __extension__ unsigned long long int __g1_start; - struct { - unsigned int __low; - unsigned int __high; - } __g1_start32; - }; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; -typedef struct { - int __data; -} __once_flag; -typedef unsigned long int pthread_t; -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; -typedef unsigned int pthread_key_t; -typedef int pthread_once_t; -union pthread_attr_t { - char __size[56]; - long int __align; -}; -typedef union pthread_attr_t pthread_attr_t; -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; -typedef volatile int pthread_spinlock_t; -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; -typedef long int __jmp_buf[8]; - -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; -struct __jmp_buf_tag { - __jmp_buf __jmpbuf; - int __mask_was_saved; - __sigset_t __saved_mask; -}; - -enum { PTHREAD_CREATE_JOINABLE, PTHREAD_CREATE_DETACHED }; -enum { - PTHREAD_MUTEX_TIMED_NP, - PTHREAD_MUTEX_RECURSIVE_NP, - PTHREAD_MUTEX_ERRORCHECK_NP, - PTHREAD_MUTEX_ADAPTIVE_NP, - PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, - PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, - PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, - PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL -}; -enum { - PTHREAD_MUTEX_STALLED, - PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, - PTHREAD_MUTEX_ROBUST, - PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST -}; -enum { PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT }; -enum { - PTHREAD_RWLOCK_PREFER_READER_NP, - PTHREAD_RWLOCK_PREFER_WRITER_NP, - PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, - PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP -}; -enum { PTHREAD_INHERIT_SCHED, PTHREAD_EXPLICIT_SCHED }; -enum { PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS }; -enum { PTHREAD_PROCESS_PRIVATE, PTHREAD_PROCESS_SHARED }; -struct _pthread_cleanup_buffer { - void (*__routine)(void*); - void* __arg; - int __canceltype; - struct _pthread_cleanup_buffer* __prev; -}; -enum { PTHREAD_CANCEL_ENABLE, PTHREAD_CANCEL_DISABLE }; -enum { PTHREAD_CANCEL_DEFERRED, PTHREAD_CANCEL_ASYNCHRONOUS }; -extern "C" { -extern int pthread_create( - pthread_t* __restrict __newthread, - const pthread_attr_t* __restrict __attr, - void* (*__start_routine)(void*), - void* __restrict __arg) noexcept(true) __attribute__((__nonnull__(1, 3))); -extern void pthread_exit(void* __retval) __attribute__((__noreturn__)); -extern int pthread_join(pthread_t __th, void** __thread_return); -extern int pthread_detach(pthread_t __th) noexcept(true); -extern pthread_t pthread_self(void) noexcept(true) __attribute__((__const__)); -extern int pthread_equal(pthread_t __thread1, pthread_t __thread2) noexcept( - true) __attribute__((__const__)); -extern int pthread_attr_init(pthread_attr_t* __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_attr_destroy(pthread_attr_t* __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_attr_getdetachstate( - const pthread_attr_t* __attr, - int* __detachstate) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_setdetachstate( - pthread_attr_t* __attr, - int __detachstate) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_attr_getguardsize( - const pthread_attr_t* __attr, - size_t* __guardsize) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_setguardsize( - pthread_attr_t* __attr, - size_t __guardsize) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_attr_getschedparam( - const pthread_attr_t* __restrict __attr, - struct sched_param* __restrict __param) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_setschedparam( - pthread_attr_t* __restrict __attr, - const struct sched_param* __restrict __param) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_getschedpolicy( - const pthread_attr_t* __restrict __attr, - int* __restrict __policy) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_setschedpolicy( - pthread_attr_t* __attr, - int __policy) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_attr_getinheritsched( - const pthread_attr_t* __restrict __attr, - int* __restrict __inherit) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_setinheritsched( - pthread_attr_t* __attr, - int __inherit) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_attr_getscope( - const pthread_attr_t* __restrict __attr, - int* __restrict __scope) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_setscope(pthread_attr_t* __attr, int __scope) noexcept( - true) __attribute__((__nonnull__(1))); -extern int pthread_attr_getstackaddr( - const pthread_attr_t* __restrict __attr, - void** __restrict __stackaddr) noexcept(true) - __attribute__((__nonnull__(1, 2))) __attribute__((__deprecated__)); -extern int pthread_attr_setstackaddr( - pthread_attr_t* __attr, - void* __stackaddr) noexcept(true) __attribute__((__nonnull__(1))) -__attribute__((__deprecated__)); -extern int pthread_attr_getstacksize( - const pthread_attr_t* __restrict __attr, - size_t* __restrict __stacksize) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_attr_setstacksize( - pthread_attr_t* __attr, - size_t __stacksize) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_attr_getstack( - const pthread_attr_t* __restrict __attr, - void** __restrict __stackaddr, - size_t* __restrict __stacksize) noexcept(true) - __attribute__((__nonnull__(1, 2, 3))); -extern int pthread_attr_setstack( - pthread_attr_t* __attr, - void* __stackaddr, - size_t __stacksize) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_setschedparam( - pthread_t __target_thread, - int __policy, - const struct sched_param* __param) noexcept(true) - __attribute__((__nonnull__(3))); -extern int pthread_getschedparam( - pthread_t __target_thread, - int* __restrict __policy, - struct sched_param* __restrict __param) noexcept(true) - __attribute__((__nonnull__(2, 3))); -extern int pthread_setschedprio(pthread_t __target_thread, int __prio) noexcept( - true); -extern int pthread_once( - pthread_once_t* __once_control, - void (*__init_routine)(void)) __attribute__((__nonnull__(1, 2))); -extern int pthread_setcancelstate(int __state, int* __oldstate); -extern int pthread_setcanceltype(int __type, int* __oldtype); -extern int pthread_cancel(pthread_t __th); -extern void pthread_testcancel(void); -struct __cancel_jmp_buf_tag { - __jmp_buf __cancel_jmp_buf; - int __mask_was_saved; -}; -typedef struct { - struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; - void* __pad[4]; -} __pthread_unwind_buf_t __attribute__((__aligned__)); -struct __pthread_cleanup_frame { - void (*__cancel_routine)(void*); - void* __cancel_arg; - int __do_it; - int __cancel_type; -}; -extern void __pthread_register_cancel(__pthread_unwind_buf_t* __buf); -extern void __pthread_unregister_cancel(__pthread_unwind_buf_t* __buf); -extern void __pthread_unwind_next(__pthread_unwind_buf_t* __buf) - __attribute__((__noreturn__)) __attribute__((__weak__)); -extern int __sigsetjmp(struct __jmp_buf_tag __env[1], int __savemask) noexcept( - true); -extern int pthread_mutex_init( - pthread_mutex_t* __mutex, - const pthread_mutexattr_t* __mutexattr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutex_destroy(pthread_mutex_t* __mutex) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutex_trylock(pthread_mutex_t* __mutex) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutex_lock(pthread_mutex_t* __mutex) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutex_timedlock( - pthread_mutex_t* __restrict __mutex, - const struct timespec* __restrict __abstime) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_mutex_unlock(pthread_mutex_t* __mutex) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutex_getprioceiling( - const pthread_mutex_t* __restrict __mutex, - int* __restrict __prioceiling) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_mutex_setprioceiling( - pthread_mutex_t* __restrict __mutex, - int __prioceiling, - int* __restrict __old_ceiling) noexcept(true) - __attribute__((__nonnull__(1, 3))); -extern int pthread_mutex_consistent(pthread_mutex_t* __mutex) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutexattr_init(pthread_mutexattr_t* __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutexattr_destroy(pthread_mutexattr_t* __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_mutexattr_getpshared( - const pthread_mutexattr_t* __restrict __attr, - int* __restrict __pshared) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_mutexattr_setpshared( - pthread_mutexattr_t* __attr, - int __pshared) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_mutexattr_gettype( - const pthread_mutexattr_t* __restrict __attr, - int* __restrict __kind) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int pthread_mutexattr_settype( - pthread_mutexattr_t* __attr, - int __kind) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_mutexattr_getprotocol( - const pthread_mutexattr_t* __restrict __attr, - int* __restrict __protocol) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_mutexattr_setprotocol( - pthread_mutexattr_t* __attr, - int __protocol) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_mutexattr_getprioceiling( - const pthread_mutexattr_t* __restrict __attr, - int* __restrict __prioceiling) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_mutexattr_setprioceiling( - pthread_mutexattr_t* __attr, - int __prioceiling) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_mutexattr_getrobust( - const pthread_mutexattr_t* __attr, - int* __robustness) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int pthread_mutexattr_setrobust( - pthread_mutexattr_t* __attr, - int __robustness) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_rwlock_init( - pthread_rwlock_t* __restrict __rwlock, - const pthread_rwlockattr_t* __restrict __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlock_destroy(pthread_rwlock_t* __rwlock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlock_rdlock(pthread_rwlock_t* __rwlock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlock_tryrdlock(pthread_rwlock_t* __rwlock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlock_timedrdlock( - pthread_rwlock_t* __restrict __rwlock, - const struct timespec* __restrict __abstime) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_rwlock_wrlock(pthread_rwlock_t* __rwlock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlock_trywrlock(pthread_rwlock_t* __rwlock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlock_timedwrlock( - pthread_rwlock_t* __restrict __rwlock, - const struct timespec* __restrict __abstime) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_rwlock_unlock(pthread_rwlock_t* __rwlock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlockattr_init(pthread_rwlockattr_t* __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_rwlockattr_destroy(pthread_rwlockattr_t* __attr) noexcept( - true) __attribute__((__nonnull__(1))); -extern int pthread_rwlockattr_getpshared( - const pthread_rwlockattr_t* __restrict __attr, - int* __restrict __pshared) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_rwlockattr_setpshared( - pthread_rwlockattr_t* __attr, - int __pshared) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_rwlockattr_getkind_np( - const pthread_rwlockattr_t* __restrict __attr, - int* __restrict __pref) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int pthread_rwlockattr_setkind_np( - pthread_rwlockattr_t* __attr, - int __pref) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_cond_init( - pthread_cond_t* __restrict __cond, - const pthread_condattr_t* __restrict __cond_attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_cond_destroy(pthread_cond_t* __cond) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_cond_signal(pthread_cond_t* __cond) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_cond_broadcast(pthread_cond_t* __cond) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_cond_wait( - pthread_cond_t* __restrict __cond, - pthread_mutex_t* __restrict __mutex) __attribute__((__nonnull__(1, 2))); -extern int pthread_cond_timedwait( - pthread_cond_t* __restrict __cond, - pthread_mutex_t* __restrict __mutex, - const struct timespec* __restrict __abstime) - __attribute__((__nonnull__(1, 2, 3))); -extern int pthread_condattr_init(pthread_condattr_t* __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_condattr_destroy(pthread_condattr_t* __attr) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_condattr_getpshared( - const pthread_condattr_t* __restrict __attr, - int* __restrict __pshared) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_condattr_setpshared( - pthread_condattr_t* __attr, - int __pshared) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_condattr_getclock( - const pthread_condattr_t* __restrict __attr, - __clockid_t* __restrict __clock_id) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_condattr_setclock( - pthread_condattr_t* __attr, - __clockid_t __clock_id) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_spin_init( - pthread_spinlock_t* __lock, - int __pshared) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_spin_destroy(pthread_spinlock_t* __lock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_spin_lock(pthread_spinlock_t* __lock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_spin_trylock(pthread_spinlock_t* __lock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_spin_unlock(pthread_spinlock_t* __lock) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_barrier_init( - pthread_barrier_t* __restrict __barrier, - const pthread_barrierattr_t* __restrict __attr, - unsigned int __count) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_barrier_destroy(pthread_barrier_t* __barrier) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_barrier_wait(pthread_barrier_t* __barrier) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_barrierattr_init(pthread_barrierattr_t* __attr) noexcept( - true) __attribute__((__nonnull__(1))); -extern int pthread_barrierattr_destroy(pthread_barrierattr_t* __attr) noexcept( - true) __attribute__((__nonnull__(1))); -extern int pthread_barrierattr_getpshared( - const pthread_barrierattr_t* __restrict __attr, - int* __restrict __pshared) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int pthread_barrierattr_setpshared( - pthread_barrierattr_t* __attr, - int __pshared) noexcept(true) __attribute__((__nonnull__(1))); -extern int pthread_key_create( - pthread_key_t* __key, - void (*__destr_function)(void*)) noexcept(true) - __attribute__((__nonnull__(1))); -extern int pthread_key_delete(pthread_key_t __key) noexcept(true); -extern void* pthread_getspecific(pthread_key_t __key) noexcept(true); -extern int pthread_setspecific( - pthread_key_t __key, - const void* __pointer) noexcept(true); -extern int pthread_getcpuclockid( - pthread_t __thread_id, - __clockid_t* __clock_id) noexcept(true) __attribute__((__nonnull__(2))); -extern int pthread_atfork( - void (*__prepare)(void), - void (*__parent)(void), - void (*__child)(void)) noexcept(true); -} namespace facebook { template class ThreadLocal { @@ -7728,10 +5964,10 @@ class ThreadLocal { } T* release() { T* obj = get(); - pthread_setspecific(m_key, __null); + pthread_setspecific(m_key, NULL); return obj; } - void reset(T* other = __null) { + void reset(T* other = NULL) { T* old = (T*)pthread_getspecific(m_key); if (old != other) { FBASSERT(m_cleanup); @@ -7817,14 +6053,6 @@ void initialize(const char* tag = "ReactNativeJNI"); /// @dep {packages/react-native/ReactAndroid/src/main/jni/first-party/jni-hack/jni.h} /// @src {packages/react-native/ReactAndroid/src/main/jni/first-party/jni-lib-merge/jni_lib_merge.h}: -typedef long int ptrdiff_t; -typedef long unsigned int size_t; -typedef struct { - long long __clang_max_align_nonce1 - __attribute__((__aligned__(__alignof__(long long)))); - long double __clang_max_align_nonce2 - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; struct pre_merge_jni_library { const char* name; int (*onload_func)(JNIEnv*, jclass); @@ -11441,187 +9669,6 @@ class HermesRuntimeTargetDelegate : public RuntimeTargetDelegate { /// @src {packages/react-native/ReactCommon/jsc/JSCRuntime.h}: -extern "C" { -typedef long unsigned int size_t; -extern void* memcpy( - void* __restrict __dest, - const void* __restrict __src, - size_t __n) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern void* memmove(void* __dest, const void* __src, size_t __n) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern void* memccpy( - void* __restrict __dest, - const void* __restrict __src, - int __c, - size_t __n) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern void* memset(void* __s, int __c, size_t __n) noexcept(true) - __attribute__((__nonnull__(1))); -extern int memcmp(const void* __s1, const void* __s2, size_t __n) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern "C++" { -extern void* memchr(void* __s, int __c, size_t __n) noexcept(true) __asm( - "memchr") __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern const void* memchr(const void* __s, int __c, size_t __n) noexcept( - true) __asm("memchr") __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -} -extern char* strcpy( - char* __restrict __dest, - const char* __restrict __src) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern char* strncpy( - char* __restrict __dest, - const char* __restrict __src, - size_t __n) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern char* strcat( - char* __restrict __dest, - const char* __restrict __src) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern char* strncat( - char* __restrict __dest, - const char* __restrict __src, - size_t __n) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern int strcmp(const char* __s1, const char* __s2) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern int strncmp(const char* __s1, const char* __s2, size_t __n) noexcept( - true) __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern int strcoll(const char* __s1, const char* __s2) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern size_t strxfrm( - char* __restrict __dest, - const char* __restrict __src, - size_t __n) noexcept(true) __attribute__((__nonnull__(2))); -struct __locale_struct { - struct __locale_data* __locales[13]; - const unsigned short int* __ctype_b; - const int* __ctype_tolower; - const int* __ctype_toupper; - const char* __names[13]; -}; -typedef struct __locale_struct* __locale_t; - -typedef __locale_t locale_t; -extern int strcoll_l(const char* __s1, const char* __s2, locale_t __l) noexcept( - true) __attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 3))); -extern size_t strxfrm_l( - char* __dest, - const char* __src, - size_t __n, - locale_t __l) noexcept(true) __attribute__((__nonnull__(2, 4))); -extern char* strdup(const char* __s) noexcept(true) __attribute__((__malloc__)) -__attribute__((__nonnull__(1))); -extern char* strndup(const char* __string, size_t __n) noexcept(true) - __attribute__((__malloc__)) __attribute__((__nonnull__(1))); -extern "C++" { -extern char* strchr(char* __s, int __c) noexcept(true) __asm("strchr") - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern const char* strchr(const char* __s, int __c) noexcept(true) __asm( - "strchr") __attribute__((__pure__)) __attribute__((__nonnull__(1))); -} -extern "C++" { -extern char* strrchr(char* __s, int __c) noexcept(true) __asm("strrchr") - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern const char* strrchr(const char* __s, int __c) noexcept(true) __asm( - "strrchr") __attribute__((__pure__)) __attribute__((__nonnull__(1))); -} -extern size_t strcspn(const char* __s, const char* __reject) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern size_t strspn(const char* __s, const char* __accept) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern "C++" { -extern char* strpbrk(char* __s, const char* __accept) noexcept(true) __asm( - "strpbrk") __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern const char* strpbrk(const char* __s, const char* __accept) noexcept( - true) __asm("strpbrk") __attribute__((__pure__)) -__attribute__((__nonnull__(1, 2))); -} -extern "C++" { -extern char* strstr(char* __haystack, const char* __needle) noexcept( - true) __asm("strstr") __attribute__((__pure__)) -__attribute__((__nonnull__(1, 2))); -extern const char* strstr( - const char* __haystack, - const char* __needle) noexcept(true) __asm("strstr") - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -} -extern char* strtok( - char* __restrict __s, - const char* __restrict __delim) noexcept(true) - __attribute__((__nonnull__(2))); -extern char* __strtok_r( - char* __restrict __s, - const char* __restrict __delim, - char** __restrict __save_ptr) noexcept(true) - __attribute__((__nonnull__(2, 3))); -extern char* strtok_r( - char* __restrict __s, - const char* __restrict __delim, - char** __restrict __save_ptr) noexcept(true) - __attribute__((__nonnull__(2, 3))); -extern size_t strlen(const char* __s) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -extern size_t strnlen(const char* __string, size_t __maxlen) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern char* strerror(int __errnum) noexcept(true); -extern int -strerror_r(int __errnum, char* __buf, size_t __buflen) noexcept(true) __asm__( - "" - "__xpg_strerror_r") __attribute__((__nonnull__(2))); -extern char* strerror_l(int __errnum, locale_t __l) noexcept(true); -extern "C" { -extern int bcmp(const void* __s1, const void* __s2, size_t __n) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern void bcopy(const void* __src, void* __dest, size_t __n) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern void bzero(void* __s, size_t __n) noexcept(true) - __attribute__((__nonnull__(1))); -extern char* index(const char* __s, int __c) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern char* rindex(const char* __s, int __c) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern int ffs(int __i) noexcept(true) __attribute__((__const__)); -extern int ffsl(long int __l) noexcept(true) __attribute__((__const__)); -__extension__ extern int ffsll(long long int __ll) noexcept(true) - __attribute__((__const__)); -extern int strcasecmp(const char* __s1, const char* __s2) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern int strncasecmp(const char* __s1, const char* __s2, size_t __n) noexcept( - true) __attribute__((__pure__)) __attribute__((__nonnull__(1, 2))); -extern int -strcasecmp_l(const char* __s1, const char* __s2, locale_t __loc) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1, 2, 3))); -extern int strncasecmp_l( - const char* __s1, - const char* __s2, - size_t __n, - locale_t __loc) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1, 2, 4))); -} -extern void explicit_bzero(void* __s, size_t __n) noexcept(true) - __attribute__((__nonnull__(1))); -extern char* strsep( - char** __restrict __stringp, - const char* __restrict __delim) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern char* strsignal(int __sig) noexcept(true); -extern char* __stpcpy( - char* __restrict __dest, - const char* __restrict __src) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern char* stpcpy( - char* __restrict __dest, - const char* __restrict __src) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern char* __stpncpy( - char* __restrict __dest, - const char* __restrict __src, - size_t __n) noexcept(true) __attribute__((__nonnull__(1, 2))); -extern char* stpncpy( - char* __restrict __dest, - const char* __restrict __src, - size_t __n) noexcept(true) __attribute__((__nonnull__(1, 2))); -} - namespace facebook { namespace jsc { std::unique_ptr makeJSCRuntime(); @@ -24158,590 +22205,6 @@ inline void fromRawValue( } // namespace facebook::react /// @src {packages/react-native/ReactCommon/react/renderer/components/view/conversions.h}: -typedef long unsigned int size_t; - -extern "C" { -typedef float _Float32; -typedef double _Float64; -typedef double _Float32x; -typedef long double _Float64x; -typedef struct { - int quot; - int rem; -} div_t; -typedef struct { - long int quot; - long int rem; -} ldiv_t; -__extension__ typedef struct { - long long int quot; - long long int rem; -} lldiv_t; -extern size_t __ctype_get_mb_cur_max(void) noexcept(true); -extern double atof(const char* __nptr) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -extern int atoi(const char* __nptr) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -extern long int atol(const char* __nptr) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -__extension__ extern long long int atoll(const char* __nptr) noexcept(true) - __attribute__((__pure__)) __attribute__((__nonnull__(1))); -extern double strtod( - const char* __restrict __nptr, - char** __restrict __endptr) noexcept(true) __attribute__((__nonnull__(1))); -extern float strtof( - const char* __restrict __nptr, - char** __restrict __endptr) noexcept(true) __attribute__((__nonnull__(1))); -extern long double strtold( - const char* __restrict __nptr, - char** __restrict __endptr) noexcept(true) __attribute__((__nonnull__(1))); -extern long int strtol( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -extern unsigned long int strtoul( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern long long int strtoq( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern unsigned long long int strtouq( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern long long int strtoll( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -__extension__ extern unsigned long long int strtoull( - const char* __restrict __nptr, - char** __restrict __endptr, - int __base) noexcept(true) __attribute__((__nonnull__(1))); -extern char* l64a(long int __n) noexcept(true); -extern long int a64l(const char* __s) noexcept(true) __attribute__((__pure__)) -__attribute__((__nonnull__(1))); -extern "C" { -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; -typedef __int8_t __int_least8_t; -typedef __uint8_t __uint_least8_t; -typedef __int16_t __int_least16_t; -typedef __uint16_t __uint_least16_t; -typedef __int32_t __int_least32_t; -typedef __uint32_t __uint_least32_t; -typedef __int64_t __int_least64_t; -typedef __uint64_t __uint_least64_t; -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; -typedef long int __intmax_t; -typedef unsigned long int __uintmax_t; -typedef unsigned long int __dev_t; -typedef unsigned int __uid_t; -typedef unsigned int __gid_t; -typedef unsigned long int __ino_t; -typedef unsigned long int __ino64_t; -typedef unsigned int __mode_t; -typedef unsigned long int __nlink_t; -typedef long int __off_t; -typedef long int __off64_t; -typedef int __pid_t; -typedef struct { - int __val[2]; -} __fsid_t; -typedef long int __clock_t; -typedef unsigned long int __rlim_t; -typedef unsigned long int __rlim64_t; -typedef unsigned int __id_t; -typedef long int __time_t; -typedef unsigned int __useconds_t; -typedef long int __suseconds_t; -typedef long int __suseconds64_t; -typedef int __daddr_t; -typedef int __key_t; -typedef int __clockid_t; -typedef void* __timer_t; -typedef long int __blksize_t; -typedef long int __blkcnt_t; -typedef long int __blkcnt64_t; -typedef unsigned long int __fsblkcnt_t; -typedef unsigned long int __fsblkcnt64_t; -typedef unsigned long int __fsfilcnt_t; -typedef unsigned long int __fsfilcnt64_t; -typedef long int __fsword_t; -typedef long int __ssize_t; -typedef long int __syscall_slong_t; -typedef unsigned long int __syscall_ulong_t; -typedef __off64_t __loff_t; -typedef char* __caddr_t; -typedef long int __intptr_t; -typedef unsigned int __socklen_t; -typedef int __sig_atomic_t; -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; -typedef __loff_t loff_t; -typedef __ino_t ino_t; -typedef __dev_t dev_t; -typedef __gid_t gid_t; -typedef __mode_t mode_t; -typedef __nlink_t nlink_t; -typedef __uid_t uid_t; -typedef __off_t off_t; -typedef __pid_t pid_t; -typedef __id_t id_t; -typedef __ssize_t ssize_t; -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; -typedef __key_t key_t; -typedef __clock_t clock_t; - -typedef __clockid_t clockid_t; -typedef __time_t time_t; -typedef __timer_t timer_t; -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; -typedef __int8_t int8_t; -typedef __int16_t int16_t; -typedef __int32_t int32_t; -typedef __int64_t int64_t; -typedef __uint8_t u_int8_t; -typedef __uint16_t u_int16_t; -typedef __uint32_t u_int32_t; -typedef __uint64_t u_int64_t; -typedef int register_t __attribute__((__mode__(__word__))); -static __inline __uint16_t __bswap_16(__uint16_t __bsx) { - return ((__uint16_t)((((__bsx) >> 8) & 0xff) | (((__bsx) & 0xff) << 8))); -} -static __inline __uint32_t __bswap_32(__uint32_t __bsx) { - return ( - (((__bsx) & 0xff000000u) >> 24) | (((__bsx) & 0x00ff0000u) >> 8) | - (((__bsx) & 0x0000ff00u) << 8) | (((__bsx) & 0x000000ffu) << 24)); -} -__extension__ static __inline __uint64_t __bswap_64(__uint64_t __bsx) { - return ( - (((__bsx) & 0xff00000000000000ull) >> 56) | - (((__bsx) & 0x00ff000000000000ull) >> 40) | - (((__bsx) & 0x0000ff0000000000ull) >> 24) | - (((__bsx) & 0x000000ff00000000ull) >> 8) | - (((__bsx) & 0x00000000ff000000ull) << 8) | - (((__bsx) & 0x0000000000ff0000ull) << 24) | - (((__bsx) & 0x000000000000ff00ull) << 40) | - (((__bsx) & 0x00000000000000ffull) << 56)); -} -static __inline __uint16_t __uint16_identity(__uint16_t __x) { - return __x; -} -static __inline __uint32_t __uint32_identity(__uint32_t __x) { - return __x; -} -static __inline __uint64_t __uint64_identity(__uint64_t __x) { - return __x; -} -typedef struct { - unsigned long int __val[(1024 / (8 * sizeof(unsigned long int)))]; -} __sigset_t; -typedef __sigset_t sigset_t; -struct timeval { - __time_t tv_sec; - __suseconds_t tv_usec; -}; - -struct timespec { - __time_t tv_sec; - __syscall_slong_t tv_nsec; -}; -typedef __suseconds_t suseconds_t; -typedef long int __fd_mask; -typedef struct { - __fd_mask __fds_bits[1024 / (8 * (int)sizeof(__fd_mask))]; -} fd_set; -typedef __fd_mask fd_mask; -extern "C" { -extern int select( - int __nfds, - fd_set* __restrict __readfds, - fd_set* __restrict __writefds, - fd_set* __restrict __exceptfds, - struct timeval* __restrict __timeout); -extern int pselect( - int __nfds, - fd_set* __restrict __readfds, - fd_set* __restrict __writefds, - fd_set* __restrict __exceptfds, - const struct timespec* __restrict __timeout, - const __sigset_t* __restrict __sigmask); -} -typedef __blksize_t blksize_t; -typedef __blkcnt_t blkcnt_t; -typedef __fsblkcnt_t fsblkcnt_t; -typedef __fsfilcnt_t fsfilcnt_t; -typedef struct __pthread_internal_list { - struct __pthread_internal_list* __prev; - struct __pthread_internal_list* __next; -} __pthread_list_t; -typedef struct __pthread_internal_slist { - struct __pthread_internal_slist* __next; -} __pthread_slist_t; -struct __pthread_mutex_s { - int __lock; - unsigned int __count; - int __owner; - unsigned int __nusers; - int __kind; - short __spins; - short __elision; - __pthread_list_t __list; -}; -struct __pthread_rwlock_arch_t { - unsigned int __readers; - unsigned int __writers; - unsigned int __wrphase_futex; - unsigned int __writers_futex; - unsigned int __pad3; - unsigned int __pad4; - int __cur_writer; - int __shared; - signed char __rwelision; - unsigned char __pad1[7]; - unsigned long int __pad2; - unsigned int __flags; -}; -struct __pthread_cond_s { - __extension__ union { - __extension__ unsigned long long int __wseq; - struct { - unsigned int __low; - unsigned int __high; - } __wseq32; - }; - __extension__ union { - __extension__ unsigned long long int __g1_start; - struct { - unsigned int __low; - unsigned int __high; - } __g1_start32; - }; - unsigned int __g_refs[2]; - unsigned int __g_size[2]; - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -}; -typedef unsigned int __tss_t; -typedef unsigned long int __thrd_t; -typedef struct { - int __data; -} __once_flag; -typedef unsigned long int pthread_t; -typedef union { - char __size[4]; - int __align; -} pthread_mutexattr_t; -typedef union { - char __size[4]; - int __align; -} pthread_condattr_t; -typedef unsigned int pthread_key_t; -typedef int pthread_once_t; -union pthread_attr_t { - char __size[56]; - long int __align; -}; -typedef union pthread_attr_t pthread_attr_t; -typedef union { - struct __pthread_mutex_s __data; - char __size[40]; - long int __align; -} pthread_mutex_t; -typedef union { - struct __pthread_cond_s __data; - char __size[48]; - __extension__ long long int __align; -} pthread_cond_t; -typedef union { - struct __pthread_rwlock_arch_t __data; - char __size[56]; - long int __align; -} pthread_rwlock_t; -typedef union { - char __size[8]; - long int __align; -} pthread_rwlockattr_t; -typedef volatile int pthread_spinlock_t; -typedef union { - char __size[32]; - long int __align; -} pthread_barrier_t; -typedef union { - char __size[4]; - int __align; -} pthread_barrierattr_t; -} -extern long int random(void) noexcept(true); -extern void srandom(unsigned int __seed) noexcept(true); -extern char* initstate( - unsigned int __seed, - char* __statebuf, - size_t __statelen) noexcept(true) __attribute__((__nonnull__(2))); -extern char* setstate(char* __statebuf) noexcept(true) - __attribute__((__nonnull__(1))); -struct random_data { - int32_t* fptr; - int32_t* rptr; - int32_t* state; - int rand_type; - int rand_deg; - int rand_sep; - int32_t* end_ptr; -}; -extern int random_r( - struct random_data* __restrict __buf, - int32_t* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int srandom_r(unsigned int __seed, struct random_data* __buf) noexcept( - true) __attribute__((__nonnull__(2))); -extern int initstate_r( - unsigned int __seed, - char* __restrict __statebuf, - size_t __statelen, - struct random_data* __restrict __buf) noexcept(true) - __attribute__((__nonnull__(2, 4))); -extern int setstate_r( - char* __restrict __statebuf, - struct random_data* __restrict __buf) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int rand(void) noexcept(true); -extern void srand(unsigned int __seed) noexcept(true); -extern int rand_r(unsigned int* __seed) noexcept(true); -extern double drand48(void) noexcept(true); -extern double erand48(unsigned short int __xsubi[3]) noexcept(true) - __attribute__((__nonnull__(1))); -extern long int lrand48(void) noexcept(true); -extern long int nrand48(unsigned short int __xsubi[3]) noexcept(true) - __attribute__((__nonnull__(1))); -extern long int mrand48(void) noexcept(true); -extern long int jrand48(unsigned short int __xsubi[3]) noexcept(true) - __attribute__((__nonnull__(1))); -extern void srand48(long int __seedval) noexcept(true); -extern unsigned short int* seed48(unsigned short int __seed16v[3]) noexcept( - true) __attribute__((__nonnull__(1))); -extern void lcong48(unsigned short int __param[7]) noexcept(true) - __attribute__((__nonnull__(1))); -struct drand48_data { - unsigned short int __x[3]; - unsigned short int __old_x[3]; - unsigned short int __c; - unsigned short int __init; - __extension__ unsigned long long int __a; -}; -extern int drand48_r( - struct drand48_data* __restrict __buffer, - double* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int erand48_r( - unsigned short int __xsubi[3], - struct drand48_data* __restrict __buffer, - double* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int lrand48_r( - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int nrand48_r( - unsigned short int __xsubi[3], - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int mrand48_r( - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int jrand48_r( - unsigned short int __xsubi[3], - struct drand48_data* __restrict __buffer, - long int* __restrict __result) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int srand48_r( - long int __seedval, - struct drand48_data* __buffer) noexcept(true) - __attribute__((__nonnull__(2))); -extern int seed48_r( - unsigned short int __seed16v[3], - struct drand48_data* __buffer) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern int lcong48_r( - unsigned short int __param[7], - struct drand48_data* __buffer) noexcept(true) - __attribute__((__nonnull__(1, 2))); -extern void* malloc(size_t __size) noexcept(true) __attribute__((__malloc__)); -extern void* calloc(size_t __nmemb, size_t __size) noexcept(true) - __attribute__((__malloc__)); -extern void* realloc(void* __ptr, size_t __size) noexcept(true) - __attribute__((__warn_unused_result__)); -extern void free(void* __ptr) noexcept(true); -extern void* reallocarray(void* __ptr, size_t __nmemb, size_t __size) noexcept( - true) __attribute__((__warn_unused_result__)); -extern void* reallocarray(void* __ptr, size_t __nmemb, size_t __size) noexcept( - true); - -extern "C" { -extern void* alloca(size_t __size) noexcept(true); -} -extern void* valloc(size_t __size) noexcept(true) __attribute__((__malloc__)); -extern int posix_memalign( - void** __memptr, - size_t __alignment, - size_t __size) noexcept(true) __attribute__((__nonnull__(1))); -extern void* aligned_alloc(size_t __alignment, size_t __size) noexcept(true) - __attribute__((__malloc__)); -extern void abort(void) noexcept(true) __attribute__((__noreturn__)); -extern int atexit(void (*__func)(void)) noexcept(true) - __attribute__((__nonnull__(1))); -extern "C++" int at_quick_exit(void (*__func)(void)) noexcept(true) __asm( - "at_quick_exit") __attribute__((__nonnull__(1))); -extern int on_exit( - void (*__func)(int __status, void* __arg), - void* __arg) noexcept(true) __attribute__((__nonnull__(1))); -extern void exit(int __status) noexcept(true) __attribute__((__noreturn__)); -extern void quick_exit(int __status) noexcept(true) - __attribute__((__noreturn__)); -extern void _Exit(int __status) noexcept(true) __attribute__((__noreturn__)); -extern char* getenv(const char* __name) noexcept(true) - __attribute__((__nonnull__(1))); -extern int putenv(char* __string) noexcept(true) - __attribute__((__nonnull__(1))); -extern int setenv( - const char* __name, - const char* __value, - int __replace) noexcept(true) __attribute__((__nonnull__(2))); -extern int unsetenv(const char* __name) noexcept(true) - __attribute__((__nonnull__(1))); -extern int clearenv(void) noexcept(true); -extern char* mktemp(char* __template) noexcept(true) - __attribute__((__nonnull__(1))); -extern int mkstemp(char* __template) __attribute__((__nonnull__(1))); -extern int mkstemps(char* __template, int __suffixlen) - __attribute__((__nonnull__(1))); -extern char* mkdtemp(char* __template) noexcept(true) - __attribute__((__nonnull__(1))); -extern int system(const char* __command); -extern char* realpath( - const char* __restrict __name, - char* __restrict __resolved) noexcept(true); -typedef int (*__compar_fn_t)(const void*, const void*); -extern void* bsearch( - const void* __key, - const void* __base, - size_t __nmemb, - size_t __size, - __compar_fn_t __compar) __attribute__((__nonnull__(1, 2, 5))); -extern void -qsort(void* __base, size_t __nmemb, size_t __size, __compar_fn_t __compar) - __attribute__((__nonnull__(1, 4))); -extern int abs(int __x) noexcept(true) __attribute__((__const__)); -extern long int labs(long int __x) noexcept(true) __attribute__((__const__)); -__extension__ extern long long int llabs(long long int __x) noexcept(true) - __attribute__((__const__)); -extern div_t div(int __numer, int __denom) noexcept(true) - __attribute__((__const__)); -extern ldiv_t ldiv(long int __numer, long int __denom) noexcept(true) - __attribute__((__const__)); -__extension__ extern lldiv_t lldiv( - long long int __numer, - long long int __denom) noexcept(true) __attribute__((__const__)); -extern char* ecvt( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* fcvt( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* gcvt(double __value, int __ndigit, char* __buf) noexcept(true) - __attribute__((__nonnull__(3))); -extern char* qecvt( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* qfcvt( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign) noexcept(true) __attribute__((__nonnull__(3, 4))); -extern char* qgcvt(long double __value, int __ndigit, char* __buf) noexcept( - true) __attribute__((__nonnull__(3))); -extern int ecvt_r( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int fcvt_r( - double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int qecvt_r( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int qfcvt_r( - long double __value, - int __ndigit, - int* __restrict __decpt, - int* __restrict __sign, - char* __restrict __buf, - size_t __len) noexcept(true) __attribute__((__nonnull__(3, 4, 5))); -extern int mblen(const char* __s, size_t __n) noexcept(true); -extern int mbtowc( - wchar_t* __restrict __pwc, - const char* __restrict __s, - size_t __n) noexcept(true); -extern int wctomb(char* __s, wchar_t __wchar) noexcept(true); -extern size_t mbstowcs( - wchar_t* __restrict __pwcs, - const char* __restrict __s, - size_t __n) noexcept(true); -extern size_t wcstombs( - char* __restrict __s, - const wchar_t* __restrict __pwcs, - size_t __n) noexcept(true); -extern int rpmatch(const char* __response) noexcept(true) - __attribute__((__nonnull__(1))); -extern int getsubopt( - char** __restrict __optionp, - char* const* __restrict __tokens, - char** __restrict __valuep) noexcept(true) - __attribute__((__nonnull__(1, 2, 3))); -extern int getloadavg(double __loadavg[], int __nelem) noexcept(true) - __attribute__((__nonnull__(1))); -} namespace facebook::react { inline Float floatFromYogaFloat(float value) { static_assert( @@ -37163,16 +34626,6 @@ inline static DataT executeSynchronouslyOnSameThread_CAN_DEADLOCK( } // namespace facebook::react /// @src {packages/react-native/ReactCommon/yoga/yoga/YGConfig.h}: -typedef __builtin_va_list __gnuc_va_list; -typedef __builtin_va_list va_list; -typedef long int ptrdiff_t; -typedef long unsigned int size_t; -typedef struct { - long long __clang_max_align_nonce1 - __attribute__((__aligned__(__alignof__(long long)))); - long double __clang_max_align_nonce2 - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; YG_EXTERN_C_BEGIN typedef struct YGNode* YGNodeRef; typedef const struct YGNode* YGNodeConstRef; @@ -37303,14 +34756,6 @@ YG_EXTERN_C_END /// @src {packages/react-native/ReactCommon/yoga/yoga/YGNode.h}: -typedef long int ptrdiff_t; -typedef long unsigned int size_t; -typedef struct { - long long __clang_max_align_nonce1 - __attribute__((__aligned__(__alignof__(long long)))); - long double __clang_max_align_nonce2 - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; YG_EXTERN_C_BEGIN typedef struct YGNode* YGNodeRef; typedef const struct YGNode* YGNodeConstRef; @@ -37408,14 +34853,6 @@ YG_EXPORT float YGNodeLayoutGetPadding(YGNodeConstRef node, YGEdge edge); YG_EXTERN_C_END /// @src {packages/react-native/ReactCommon/yoga/yoga/YGNodeStyle.h}: -typedef long int ptrdiff_t; -typedef long unsigned int size_t; -typedef struct { - long long __clang_max_align_nonce1 - __attribute__((__aligned__(__alignof__(long long)))); - long double __clang_max_align_nonce2 - __attribute__((__aligned__(__alignof__(long double)))); -} max_align_t; YG_EXTERN_C_BEGIN YG_EXPORT void YGNodeCopyStyle(YGNodeRef dstNode, YGNodeConstRef srcNode); YG_EXPORT void YGNodeStyleSetDirection(YGNodeRef node, YGDirection direction); diff --git a/tools/api/public-api.js b/tools/api/public-api.js index 0b54492a765986..85a4150362bddb 100644 --- a/tools/api/public-api.js +++ b/tools/api/public-api.js @@ -143,7 +143,7 @@ function trimCPPNoise( // Strip comments, runs the preprocessor and removes formatting noise. The downside of this approach is it can be extremely // noisy if the preprocessor is able to resolve imports. This isn't the case the majority of the time. let sourceFileContents = execSync( - `${clang} -E -P -D__cplusplus=${CPP20} ${sourcePath} 2> /dev/null | ${clangFormat}`, + `${clang} -E -P -D__cplusplus=${CPP20} -nostdinc -nostdlibinc -nostdinc++ -nostdlib++ ${sourcePath} 2> /dev/null | ${clangFormat}`, {encoding: 'utf-8'}, ) .toString()