docstring_tokens
stringlengths 18
16.9k
| code_tokens
stringlengths 75
1.81M
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> double burst() const noexcept {
<mask> return burstSize_;
<mask> }
<mask>
<mask> /**
<mask> * Returns the current time in seconds since Epoch.
<mask> */
<mask> static double defaultClockNow() noexcept(noexcept(Impl::defaultClockNow())) {
<mask> return Impl::defaultClockNow();
<mask> }
<mask>
<mask> private:
<mask> Impl tokenBucket_;
<mask> double rate_;
<mask> double burstSize_;
<mask> };
</s> [sdk33] Update iOS with RN 0.59 </s> remove /**
* Returns the current time in seconds since Epoch.
*/
static double defaultClockNow() noexcept(noexcept(ClockT::timeSinceEpoch())) {
return std::chrono::duration_cast<std::chrono::duration<double>>(
ClockT::timeSinceEpoch())
.count();
}
</s> add </s> remove ParameterizedTokenBucket& operator=(
const ParameterizedTokenBucket& other) noexcept = default;
</s> add BasicTokenBucket& operator=(const BasicTokenBucket& other) noexcept = default;
/**
* Returns the current time in seconds since Epoch.
*/
static double defaultClockNow() noexcept(noexcept(Impl::defaultClockNow())) {
return Impl::defaultClockNow();
} </s> add /**
* Returns the current time in seconds since Epoch.
*/
static double defaultClockNow() noexcept {
using dur = std::chrono::duration<double>;
auto const now = Clock::now().time_since_epoch();
return std::chrono::duration_cast<dur>(now).count();
}
</s> remove using TokenBucket = ParameterizedTokenBucket<>;
using DynamicTokenBucket = ParameterizedDynamicTokenBucket<>;
}
</s> add using TokenBucket = BasicTokenBucket<>;
using DynamicTokenBucket = BasicDynamicTokenBucket<>;
} // namespace folly </s> remove SkipListRandomHeight() { initLookupTable(); }
</s> add SkipListRandomHeight() {
initLookupTable();
} </s> remove double availTokens = available(nowInSeconds);
</s> add const double availTokens = available(nowInSeconds);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/TokenBucket.h
|
keep keep keep keep replace replace replace
|
<mask> double rate_;
<mask> double burstSize_;
<mask> };
<mask>
<mask> using TokenBucket = ParameterizedTokenBucket<>;
<mask> using DynamicTokenBucket = ParameterizedDynamicTokenBucket<>;
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove /**
* Returns the current time in seconds since Epoch.
*/
static double defaultClockNow() noexcept(noexcept(Impl::defaultClockNow())) {
return Impl::defaultClockNow();
}
</s> add </s> remove double availTokens = available(nowInSeconds);
</s> add const double availTokens = available(nowInSeconds); </s> remove /**
* Returns the current time in seconds since Epoch.
*/
static double defaultClockNow() noexcept(noexcept(ClockT::timeSinceEpoch())) {
return std::chrono::duration_cast<std::chrono::duration<double>>(
ClockT::timeSinceEpoch())
.count();
}
</s> add </s> remove SkipListRandomHeight() { initLookupTable(); }
</s> add SkipListRandomHeight() {
initLookupTable();
} </s> remove ParameterizedTokenBucket(
</s> add BasicTokenBucket( </s> add /**
* Returns the current time in seconds since Epoch.
*/
static double defaultClockNow() noexcept {
using dur = std::chrono::duration<double>;
auto const now = Clock::now().time_since_epoch();
return std::chrono::duration_cast<dur>(now).count();
}
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/TokenBucket.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> // @author: Andrei Alexandrescu
<mask>
<mask> #pragma once
<mask>
<mask> #include <memory>
<mask> #include <limits>
<mask> #include <type_traits>
<mask> #include <functional>
<mask>
<mask> #include <folly/Portability.h>
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <functional>
</s> add </s> add #include <memory> </s> add #include <cstdint> </s> remove #include <boost/iterator/iterator_facade.hpp>
</s> add #include <iterator>
#include <type_traits>
#include <utility>
</s> remove #include <glog/logging.h>
</s> add </s> remove #include <ctime>
#include <boost/function_types/function_arity.hpp>
</s> add #include <chrono>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep add keep keep keep keep keep keep
|
<mask>
<mask> #include <functional>
<mask> #include <limits>
<mask> #include <type_traits>
<mask>
<mask> #include <folly/Portability.h>
<mask>
<mask> // libc++ doesn't provide this header, nor does msvc
<mask> #if __has_include(<bits/c++config.h>)
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <functional>
</s> add </s> remove #ifdef FOLLY_HAVE_BITS_CXXCONFIG_H
</s> add #if __has_include(<bits/c++config.h>) </s> remove #include <memory>
</s> add #include <functional> </s> remove #include <glog/logging.h>
</s> add </s> add #include <boost/function_types/function_arity.hpp>
#include <glog/logging.h>
</s> remove #include <ctime>
#include <boost/function_types/function_arity.hpp>
</s> add #include <chrono>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> #include <memory>
<mask> #include <limits>
<mask> #include <type_traits>
<mask> #include <functional>
<mask>
<mask> #include <folly/Portability.h>
<mask>
<mask> // libc++ doesn't provide this header, nor does msvc
<mask> #ifdef FOLLY_HAVE_BITS_CXXCONFIG_H
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <memory> </s> remove #ifdef FOLLY_HAVE_BITS_CXXCONFIG_H
</s> add #if __has_include(<bits/c++config.h>) </s> remove #include <memory>
</s> add #include <functional> </s> remove #include <glog/logging.h>
</s> add </s> remove #include <ctime>
#include <boost/function_types/function_arity.hpp>
</s> add #include <chrono> </s> add #include <boost/function_types/function_arity.hpp>
#include <glog/logging.h>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> #include <folly/Portability.h>
<mask>
<mask> // libc++ doesn't provide this header, nor does msvc
<mask> #ifdef FOLLY_HAVE_BITS_CXXCONFIG_H
<mask> // This file appears in two locations: inside fbcode and in the
<mask> // libstdc++ source code (when embedding fbstring as std::string).
<mask> // To aid in this schizophrenic use, two macros are defined in
<mask> // c++config.h:
<mask> // _LIBSTDCXX_FBSTRING - Set inside libstdc++. This is useful to
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <functional>
</s> add </s> add #include <memory> </s> add #if defined(__APPLE__)
#if __has_include(<crt_externs.h>)
#include <crt_externs.h> // @manual
#endif
#endif
extern "C" { </s> remove #include <sys/locking.h>
</s> add #include <sys/locking.h> // @manual
</s> remove // This is actually defined in our pthread implementation on
// Windows, but we don't want to include all of that just for this.
using pid_t = void*;
</s> add // This is a massive pain to have be an `int` due to the pthread implementation
// we support, but it's far more compatible with the rest of the windows world
// as an `int` than it would be as a `void*`
using pid_t = int; </s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> // gate use inside fbcode v. libstdc++
<mask> #include <bits/c++config.h>
<mask> #endif
<mask>
<mask> #include <boost/type_traits.hpp>
<mask> #include <boost/mpl/has_xxx.hpp>
<mask>
<mask> namespace folly {
<mask>
<mask> /**
<mask> * IsRelocatable<T>::value describes the ability of moving around
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <folly/MicroSpinLock.h>
</s> add </s> remove #ifdef FOLLY_HAVE_BITS_CXXCONFIG_H
</s> add #if __has_include(<bits/c++config.h>) </s> add #include <boost/function_types/function_arity.hpp>
#include <glog/logging.h>
</s> add #include <folly/gen/String.h>
#include <folly/io/IOBufQueue.h>
#include <folly/portability/SysResource.h> </s> remove #include <vector>
#include <boost/type_traits.hpp>
#include <boost/regex/pending/unicode_iterator.hpp>
#ifdef FOLLY_HAVE_DEPRECATED_ASSOC
#ifdef _GLIBCXX_SYMVER
#include <ext/hash_set>
#include <ext/hash_map>
#endif
#endif
#include <unordered_set>
</s> add </s> remove #include <folly/detail/CacheLocality.h>
</s> add #include <folly/concurrency/CacheLocality.h>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
|
<mask> * in the class header.
<mask> *
<mask> * It may be unset in a base class by overriding the typedef to false_type.
<mask> */
<mask> /*
<mask> * IsTriviallyCopyable describes the value semantics property. C++11 contains
<mask> * the type trait is_trivially_copyable; however, it is not yet implemented
<mask> * in gcc (as of 4.7.1), and the user may wish to specify otherwise.
<mask> */
<mask> /*
<mask> * IsZeroInitializable describes the property that default construction is the
<mask> * same as memset(dst, 0, sizeof(T)).
<mask> */
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> remove * Note that the move constructor may throw because it acquires a lock.
* Since the move constructor is not declared noexcept, when objects of this
* class are used as elements in a vector or a similar container. The
* elements might not be moved around when resizing. They might be copied
* instead. You have been warned.
</s> add * Semantically, assumes that the source object is a true rvalue and therefore
* that no synchronization is required for accessing it. </s> remove * Copy constructor copies the data (with locking the source and
* all) but does NOT copy the mutex. Doing so would result in
* deadlocks.
</s> add * Copy constructor; deprecated
*
* Enabled only when the data type is copy-constructible. </s> remove * Move constructor moves the data (with locking the source and all)
* but does not move the mutex.
</s> add * Move constructor; deprecated
*
* Move-constructs from the source data without locking either the source or
* the destination mutex. </s> remove * Note that the copy constructor may throw because it acquires a lock in
* the contextualRLock() method
</s> add * Takes a shared-or-exclusive lock on the source mutex while performing the
* copy-construction of the destination data from the source data. No lock is
* taken on the destination mutex.
*
* May throw even when the data type is is nothrow-copy-constructible because
* acquiring a lock may throw. </s> remove Synchronized(const Synchronized& rhs) /* may throw */
: Synchronized(rhs, rhs.contextualRLock()) {}
</s> add /* implicit */ Synchronized(typename std::conditional<
std::is_copy_constructible<T>::value,
const Synchronized&,
NonImplementedType>::type rhs) /* may throw */
: Synchronized(rhs.copy()) {} </s> remove * \note `typename = ResultOf<Fun>` prevents this overload from being
* selected by overload resolution when `fun` is not a compatible function.
</s> add * \note `typename Traits::template ResultOf<Fun>` prevents this overload
* from being selected by overload resolution when `fun` is not a compatible
* function.
*
* \note The noexcept requires some explanation. `IsSmall` is true when the
* decayed type fits within the internal buffer and is noexcept-movable. But
* this ctor might copy, not move. What we need here, if this ctor does a
* copy, is that this ctor be noexcept when the copy is noexcept. That is not
* checked in `IsSmall`, and shouldn't be, because once the `Function` is
* constructed, the contained object is never copied. This check is for this
* ctor only, in the case that this ctor does a copy.
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> namespace traits_detail {
<mask>
<mask> #define FOLLY_HAS_TRUE_XXX(name) \
<mask> BOOST_MPL_HAS_XXX_TRAIT_DEF(name) \
<mask> template <class T> \
<mask> struct name##_is_true : std::is_same<typename T::name, std::true_type> {}; \
<mask> template <class T> \
<mask> struct has_true_##name : std::conditional< \
<mask> has_##name<T>::value, \
</s> [sdk33] Update iOS with RN 0.59 </s> remove std::false_type>::type {};
</s> add std::false_type>::type {} </s> remove #include <boost/type_traits.hpp>
#include <boost/mpl/has_xxx.hpp>
</s> add #define FOLLY_CREATE_HAS_MEMBER_TYPE_TRAITS(classname, type_name) \
template <typename TTheClass_> \
struct classname##__folly_traits_impl__ { \
template <typename UTheClass_> \
static constexpr bool test(typename UTheClass_::type_name*) { \
return true; \
} \
template <typename> \
static constexpr bool test(...) { \
return false; \
} \
}; \
template <typename TTheClass_> \
using classname = typename std::conditional< \
classname##__folly_traits_impl__<TTheClass_>::template test<TTheClass_>( \
nullptr), \
std::true_type, \
std::false_type>::type
#define FOLLY_CREATE_HAS_MEMBER_FN_TRAITS_IMPL(classname, func_name, cv_qual) \
template <typename TTheClass_, typename RTheReturn_, typename... TTheArgs_> \
struct classname##__folly_traits_impl__< \
TTheClass_, \
RTheReturn_(TTheArgs_...) cv_qual> { \
template < \
typename UTheClass_, \
RTheReturn_ (UTheClass_::*)(TTheArgs_...) cv_qual> \
struct sfinae {}; \
template <typename UTheClass_> \
static std::true_type test(sfinae<UTheClass_, &UTheClass_::func_name>*); \
template <typename> \
static std::false_type test(...); \
}
/*
* The FOLLY_CREATE_HAS_MEMBER_FN_TRAITS is used to create traits
* classes that check for the existence of a member function with
* a given name and signature. It currently does not support
* checking for inherited members.
*
* Such classes receive two template parameters: the class to be checked
* and the signature of the member function. A static boolean field
* named `value` (which is also constexpr) tells whether such member
* function exists.
*
* Each traits class created is bound only to the member name, not to
* its signature nor to the type of the class containing it.
*
* Say you need to know if a given class has a member function named
* `test` with the following signature:
*
* int test() const;
*
* You'd need this macro to create a traits class to check for a member
* named `test`, and then use this traits class to check for the signature:
*
* namespace {
*
* FOLLY_CREATE_HAS_MEMBER_FN_TRAITS(has_test_traits, test);
*
* } // unnamed-namespace
*
* void some_func() {
* cout << "Does class Foo have a member int test() const? "
* << boolalpha << has_test_traits<Foo, int() const>::value;
* }
*
* You can use the same traits class to test for a completely different
* signature, on a completely different class, as long as the member name
* is the same:
*
* void some_func() {
* cout << "Does class Foo have a member int test()? "
* << boolalpha << has_test_traits<Foo, int()>::value;
* cout << "Does class Foo have a member int test() const? "
* << boolalpha << has_test_traits<Foo, int() const>::value;
* cout << "Does class Bar have a member double test(const string&, long)? "
* << boolalpha << has_test_traits<Bar, double(const string&, long)>::value;
* }
*
* @author: Marcelo Juchem <[email protected]>
*/
#define FOLLY_CREATE_HAS_MEMBER_FN_TRAITS(classname, func_name) \
template <typename, typename> \
struct classname##__folly_traits_impl__; \
FOLLY_CREATE_HAS_MEMBER_FN_TRAITS_IMPL(classname, func_name, ); \
FOLLY_CREATE_HAS_MEMBER_FN_TRAITS_IMPL(classname, func_name, const); \
FOLLY_CREATE_HAS_MEMBER_FN_TRAITS_IMPL( \
classname, func_name, /* nolint */ volatile); \
FOLLY_CREATE_HAS_MEMBER_FN_TRAITS_IMPL( \
classname, func_name, /* nolint */ volatile const); \
template <typename TTheClass_, typename TTheSignature_> \
using classname = \
decltype(classname##__folly_traits_impl__<TTheClass_, TTheSignature_>:: \
template test<TTheClass_>(nullptr)) </s> remove : SYNCHRONIZED_lockedPtr.operator->()); \
!SYNCHRONIZED_state; \
SYNCHRONIZED_state = true)
</s> add : SYNCHRONIZED_VAR(lockedPtr).operator->()); \
!SYNCHRONIZED_VAR(state); \
SYNCHRONIZED_VAR(state) = true) </s> remove if (bool SYNCHRONIZED_state = false) { \
</s> add if (bool SYNCHRONIZED_VAR(state) = false) { \ </s> remove !SYNCHRONIZED_state; \
SYNCHRONIZED_state = true) \
</s> add !SYNCHRONIZED_VAR(state); \
SYNCHRONIZED_VAR(state) = true) \ </s> remove *SYNCHRONIZED_lockedPtr.operator->(); \
!SYNCHRONIZED_state; \
SYNCHRONIZED_state = true) \
FOLLY_POP_WARNING
</s> add *SYNCHRONIZED_VAR(lockedPtr).operator->(); \
!SYNCHRONIZED_VAR(state); \
SYNCHRONIZED_VAR(state) = true) \
FOLLY_POP_WARNING
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep replace keep replace replace replace keep keep
|
<mask> name##_is_true<T>, \
<mask> std::false_type>::type {};
<mask>
<mask> FOLLY_HAS_TRUE_XXX(IsRelocatable)
<mask> FOLLY_HAS_TRUE_XXX(IsZeroInitializable)
<mask> FOLLY_HAS_TRUE_XXX(IsTriviallyCopyable)
<mask>
<mask> #undef FOLLY_HAS_TRUE_XXX
</s> [sdk33] Update iOS with RN 0.59 </s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> remove BOOST_MPL_HAS_XXX_TRAIT_DEF(name) \
</s> add FOLLY_CREATE_HAS_MEMBER_TYPE_TRAITS(has_##name, name); \ </s> remove #pragma GCC diagnostic pop
</s> add #undef FOLLY_SV_PACK_ATTR
#undef FOLLY_SV_PACK_PUSH
#undef FOLLY_SV_PACK_POP </s> remove // Defined in winnt.h
#ifdef DELETE
#undef DELETE
</s> add #include <WinSock2.h> // @manual
#include <Windows.h> // @manual
#ifdef CAL_GREGORIAN
#undef CAL_GREGORIAN </s> remove #include <WinSock2.h>
#include <Windows.h>
</s> add #if defined(min) || defined(max)
#error Windows.h needs to be included by this header, or else NOMINMAX needs \
to be defined before including it yourself.
#endif
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> FOLLY_HAS_TRUE_XXX(IsTriviallyCopyable)
<mask>
<mask> #undef FOLLY_HAS_TRUE_XXX
<mask>
<mask> // Older versions of libstdc++ do not provide std::is_trivially_copyable
<mask> #if defined(__clang__) && !defined(_LIBCPP_VERSION)
<mask> template <class T>
<mask> struct is_trivially_copyable
<mask> : std::integral_constant<bool, __is_trivially_copyable(T)> {};
<mask> #elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
<mask> template <class T>
<mask> struct is_trivially_copyable : std::is_trivial<T> {};
<mask> #else
<mask> template <class T>
<mask> using is_trivially_copyable = std::is_trivially_copyable<T>;
<mask> #endif
<mask> }
<mask>
<mask> struct Ignore {
<mask> template <class T>
<mask> /* implicit */ Ignore(const T&) {}
<mask> template <class T>
</s> [sdk33] Update iOS with RN 0.59 </s> remove FOLLY_HAS_TRUE_XXX(IsRelocatable)
FOLLY_HAS_TRUE_XXX(IsZeroInitializable)
FOLLY_HAS_TRUE_XXX(IsTriviallyCopyable)
</s> add FOLLY_HAS_TRUE_XXX(IsRelocatable);
FOLLY_HAS_TRUE_XXX(IsZeroInitializable); </s> remove /* implicit */ Ignore(const T&) {}
</s> add constexpr /* implicit */ Ignore(const T&) {} </s> add Ignore() = default; </s> remove const Ignore& operator=(T const&) const { return *this; }
</s> add const Ignore& operator=(T const&) const {
return *this;
} </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> remove template <class T> struct IsTriviallyCopyable
: std::conditional<
traits_detail::has_IsTriviallyCopyable<T>::value,
traits_detail::has_true_IsTriviallyCopyable<T>,
traits_detail::is_trivially_copyable<T>
>::type {};
template <class T> struct IsRelocatable
: std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we upgrade to gcc 4.7
//std::is_trivially_move_constructible<T>::value ||
IsTriviallyCopyable<T>
>::type {};
template <class T> struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
std::integral_constant<bool, !std::is_class<T>::value>
>::type {};
</s> add template <class T>
struct IsRelocatable : std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we
// upgrade to gcc 4.7
// std::is_trivially_move_constructible<T>::value ||
is_trivially_copyable<T>>::type {};
template <class T>
struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
bool_constant<!std::is_class<T>::value>>::type {};
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep add keep keep keep keep keep keep
|
<mask> } // namespace traits_detail
<mask>
<mask> struct Ignore {
<mask> template <class T>
<mask> constexpr /* implicit */ Ignore(const T&) {}
<mask> template <class T>
<mask> const Ignore& operator=(T const&) const {
<mask> return *this;
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove /* implicit */ Ignore(const T&) {}
</s> add constexpr /* implicit */ Ignore(const T&) {} </s> remove const Ignore& operator=(T const&) const { return *this; }
</s> add const Ignore& operator=(T const&) const {
return *this;
} </s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> remove BOOST_MPL_HAS_XXX_TRAIT_DEF(name) \
</s> add FOLLY_CREATE_HAS_MEMBER_TYPE_TRAITS(has_##name, name); \ </s> remove template <class T>
T* pointerFlagSet(T* p) {
return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(p) | 1);
}
template <class T>
bool pointerFlagGet(T* p) {
return reinterpret_cast<uintptr_t>(p) & 1;
}
template <class T>
T* pointerFlagClear(T* p) {
return reinterpret_cast<T*>(
reinterpret_cast<uintptr_t>(p) & ~uintptr_t(1));
}
inline void* shiftPointer(void* p, size_t sizeBytes) {
return static_cast<char*>(p) + sizeBytes;
}
</s> add template <class T>
T* pointerFlagSet(T* p) {
return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(p) | 1);
}
template <class T>
bool pointerFlagGet(T* p) {
return reinterpret_cast<uintptr_t>(p) & 1;
}
template <class T>
T* pointerFlagClear(T* p) {
return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(p) & ~uintptr_t(1));
}
inline void* shiftPointer(void* p, size_t sizeBytes) {
return static_cast<char*>(p) + sizeBytes; </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsEqualityComparable
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep replace keep replace keep keep
|
<mask> struct Ignore {
<mask> template <class T>
<mask> /* implicit */ Ignore(const T&) {}
<mask> template <class T>
<mask> const Ignore& operator=(T const&) const { return *this; }
<mask> };
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> add Ignore() = default; </s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> add }; </s> remove template <class T>
T* pointerFlagSet(T* p) {
return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(p) | 1);
}
template <class T>
bool pointerFlagGet(T* p) {
return reinterpret_cast<uintptr_t>(p) & 1;
}
template <class T>
T* pointerFlagClear(T* p) {
return reinterpret_cast<T*>(
reinterpret_cast<uintptr_t>(p) & ~uintptr_t(1));
}
inline void* shiftPointer(void* p, size_t sizeBytes) {
return static_cast<char*>(p) + sizeBytes;
}
</s> add template <class T>
T* pointerFlagSet(T* p) {
return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(p) | 1);
}
template <class T>
bool pointerFlagGet(T* p) {
return reinterpret_cast<uintptr_t>(p) & 1;
}
template <class T>
T* pointerFlagClear(T* p) {
return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(p) & ~uintptr_t(1));
}
inline void* shiftPointer(void* p, size_t sizeBytes) {
return static_cast<char*>(p) + sizeBytes; </s> remove template <class T, class Enable = void>
struct IsSomeVector {
enum { value = false };
};
template <class T>
struct IsSomeVector<std::vector<T>, void> {
enum { value = true };
};
template <class T>
struct IsSomeVector<fbvector<T>, void> {
enum { value = true };
};
template <class T, class Enable = void>
struct IsConvertible {
enum { value = false };
};
template <class T>
struct IsConvertible<
T,
decltype(static_cast<void>(
parseTo(std::declval<folly::StringPiece>(), std::declval<T&>())))> {
enum { value = true };
};
template <class... Types>
struct AllConvertible;
template <class Head, class... Tail>
struct AllConvertible<Head, Tail...> {
enum { value = IsConvertible<Head>::value && AllConvertible<Tail...>::value };
};
</s> add namespace detail {
template <typename Void, typename OutputType>
struct IsConvertible : std::false_type {};
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> template <class T, class U = T>
<mask> struct IsEqualityComparable
<mask> : std::is_convertible<
<mask> decltype(std::declval<T>() == std::declval<U>()),
<mask> bool
<mask> > {};
<mask> }
<mask>
<mask> /* using override */ using traits_detail_IsEqualityComparable::
<mask> IsEqualityComparable;
<mask>
<mask> namespace traits_detail_IsLessThanComparable {
</s> [sdk33] Update iOS with RN 0.59 </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsLessThanComparable </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> remove }
</s> add } // namespace traits_detail_IsNothrowSwappable </s> remove template <class T> struct IsTriviallyCopyable
: std::conditional<
traits_detail::has_IsTriviallyCopyable<T>::value,
traits_detail::has_true_IsTriviallyCopyable<T>,
traits_detail::is_trivially_copyable<T>
>::type {};
template <class T> struct IsRelocatable
: std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we upgrade to gcc 4.7
//std::is_trivially_move_constructible<T>::value ||
IsTriviallyCopyable<T>
>::type {};
template <class T> struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
std::integral_constant<bool, !std::is_class<T>::value>
>::type {};
</s> add template <class T>
struct IsRelocatable : std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we
// upgrade to gcc 4.7
// std::is_trivially_move_constructible<T>::value ||
is_trivially_copyable<T>>::type {};
template <class T>
struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
bool_constant<!std::is_class<T>::value>>::type {}; </s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> add template <typename T>
struct NotFunction : std::true_type {};
template <typename T>
struct NotFunction<Function<T>> : std::false_type {};
template <typename T>
using EnableIfNotFunction =
typename std::enable_if<NotFunction<T>::value>::type;
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> template <class T, class U = T>
<mask> struct IsLessThanComparable
<mask> : std::is_convertible<
<mask> decltype(std::declval<T>() < std::declval<U>()),
<mask> bool
<mask> > {};
<mask> }
<mask>
<mask> /* using override */ using traits_detail_IsLessThanComparable::
<mask> IsLessThanComparable;
<mask>
<mask> namespace traits_detail_IsNothrowSwappable {
</s> [sdk33] Update iOS with RN 0.59 </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsEqualityComparable </s> remove }
</s> add } // namespace traits_detail_IsNothrowSwappable </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> remove #if defined(_MSC_VER) || defined(__cpp_lib_is_swappable)
// MSVC already implements the C++17 P0185R1 proposal which
// adds std::is_nothrow_swappable, so use it instead.
</s> add #if defined(__cpp_lib_is_swappable) || (_CPPLIB_VER && _HAS_CXX17)
// MSVC 2015+ already implements the C++17 P0185R1 proposal which
// adds std::is_nothrow_swappable, so use it instead if C++17 mode
// is enabled. </s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> remove template <class T> struct IsTriviallyCopyable
: std::conditional<
traits_detail::has_IsTriviallyCopyable<T>::value,
traits_detail::has_true_IsTriviallyCopyable<T>,
traits_detail::is_trivially_copyable<T>
>::type {};
template <class T> struct IsRelocatable
: std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we upgrade to gcc 4.7
//std::is_trivially_move_constructible<T>::value ||
IsTriviallyCopyable<T>
>::type {};
template <class T> struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
std::integral_constant<bool, !std::is_class<T>::value>
>::type {};
</s> add template <class T>
struct IsRelocatable : std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we
// upgrade to gcc 4.7
// std::is_trivially_move_constructible<T>::value ||
is_trivially_copyable<T>>::type {};
template <class T>
struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
bool_constant<!std::is_class<T>::value>>::type {};
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> /* using override */ using traits_detail_IsLessThanComparable::
<mask> IsLessThanComparable;
<mask>
<mask> namespace traits_detail_IsNothrowSwappable {
<mask> #if defined(_MSC_VER) || defined(__cpp_lib_is_swappable)
<mask> // MSVC already implements the C++17 P0185R1 proposal which
<mask> // adds std::is_nothrow_swappable, so use it instead.
<mask> template <typename T>
<mask> using IsNothrowSwappable = std::is_nothrow_swappable<T>;
<mask> #else
<mask> /* using override */ using std::swap;
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> add #elif _CPPLIB_VER
// MSVC 2015+ defines the base even if C++17 is disabled, and
// MSVC 2015 has issues with our fallback implementation due to
// over-eager evaluation of noexcept.
template <typename T>
using IsNothrowSwappable = std::_Is_nothrow_swappable<T>; </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsLessThanComparable </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> remove }
</s> add } // namespace traits_detail_IsNothrowSwappable </s> remove /* using override */ using namespace folly::portability::sockets;
</s> add /* using override */
using namespace folly::portability::sockets; </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsEqualityComparable
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep add keep keep keep keep keep
|
<mask> // is enabled.
<mask> template <typename T>
<mask> using IsNothrowSwappable = std::is_nothrow_swappable<T>;
<mask> #else
<mask> /* using override */ using std::swap;
<mask>
<mask> template <class T>
<mask> struct IsNothrowSwappable
</s> [sdk33] Update iOS with RN 0.59 </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> remove #if defined(_MSC_VER) || defined(__cpp_lib_is_swappable)
// MSVC already implements the C++17 P0185R1 proposal which
// adds std::is_nothrow_swappable, so use it instead.
</s> add #if defined(__cpp_lib_is_swappable) || (_CPPLIB_VER && _HAS_CXX17)
// MSVC 2015+ already implements the C++17 P0185R1 proposal which
// adds std::is_nothrow_swappable, so use it instead if C++17 mode
// is enabled. </s> remove }
</s> add } // namespace traits_detail_IsNothrowSwappable </s> add template <typename T>
struct NotFunction : std::true_type {};
template <typename T>
struct NotFunction<Function<T>> : std::false_type {};
template <typename T>
using EnableIfNotFunction =
typename std::enable_if<NotFunction<T>::value>::type;
</s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsEqualityComparable </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsLessThanComparable
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep replace replace replace replace keep replace keep
|
<mask> struct IsNothrowSwappable
<mask> : std::integral_constant<bool,
<mask> std::is_nothrow_move_constructible<T>::value &&
<mask> noexcept(swap(std::declval<T&>(), std::declval<T&>()))
<mask> > {};
<mask> #endif
<mask> }
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> remove template <class T> struct IsTriviallyCopyable
: std::conditional<
traits_detail::has_IsTriviallyCopyable<T>::value,
traits_detail::has_true_IsTriviallyCopyable<T>,
traits_detail::is_trivially_copyable<T>
>::type {};
template <class T> struct IsRelocatable
: std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we upgrade to gcc 4.7
//std::is_trivially_move_constructible<T>::value ||
IsTriviallyCopyable<T>
>::type {};
template <class T> struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
std::integral_constant<bool, !std::is_class<T>::value>
>::type {};
</s> add template <class T>
struct IsRelocatable : std::conditional<
traits_detail::has_IsRelocatable<T>::value,
traits_detail::has_true_IsRelocatable<T>,
// TODO add this line (and some tests for it) when we
// upgrade to gcc 4.7
// std::is_trivially_move_constructible<T>::value ||
is_trivially_copyable<T>>::type {};
template <class T>
struct IsZeroInitializable
: std::conditional<
traits_detail::has_IsZeroInitializable<T>::value,
traits_detail::has_true_IsZeroInitializable<T>,
bool_constant<!std::is_class<T>::value>>::type {}; </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsEqualityComparable </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsLessThanComparable </s> remove template<typename NodeAlloc>
static constexpr bool destroyIsNoOp() {
return IsArenaAllocator<NodeAlloc>::value &&
boost::has_trivial_destructor<SkipListNode>::value;
}
</s> add template <typename NodeAlloc>
struct DestroyIsNoOp : StrictConjunction<
AllocatorHasTrivialDeallocate<NodeAlloc>,
boost::has_trivial_destructor<SkipListNode>> {};
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> /* using override */ using traits_detail_IsNothrowSwappable::IsNothrowSwappable;
<mask>
<mask> template <class T> struct IsTriviallyCopyable
<mask> : std::conditional<
<mask> traits_detail::has_IsTriviallyCopyable<T>::value,
<mask> traits_detail::has_true_IsTriviallyCopyable<T>,
<mask> traits_detail::is_trivially_copyable<T>
<mask> >::type {};
<mask>
<mask> template <class T> struct IsRelocatable
<mask> : std::conditional<
<mask> traits_detail::has_IsRelocatable<T>::value,
<mask> traits_detail::has_true_IsRelocatable<T>,
<mask> // TODO add this line (and some tests for it) when we upgrade to gcc 4.7
<mask> //std::is_trivially_move_constructible<T>::value ||
<mask> IsTriviallyCopyable<T>
<mask> >::type {};
<mask>
<mask> template <class T> struct IsZeroInitializable
<mask> : std::conditional<
<mask> traits_detail::has_IsZeroInitializable<T>::value,
<mask> traits_detail::has_true_IsZeroInitializable<T>,
<mask> std::integral_constant<bool, !std::is_class<T>::value>
<mask> >::type {};
<mask>
<mask> template <typename...>
<mask> struct Conjunction : std::true_type {};
<mask> template <typename T>
<mask> struct Conjunction<T> : T {};
</s> [sdk33] Update iOS with RN 0.59 </s> remove }
</s> add } // namespace traits_detail_IsNothrowSwappable </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> add template <typename T>
struct NotFunction : std::true_type {};
template <typename T>
struct NotFunction<Function<T>> : std::false_type {};
template <typename T>
using EnableIfNotFunction =
typename std::enable_if<NotFunction<T>::value>::type;
</s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> remove BOOST_MPL_HAS_XXX_TRAIT_DEF(name) \
</s> add FOLLY_CREATE_HAS_MEMBER_TYPE_TRAITS(has_##name, name); \ </s> remove std::false_type>::type {};
</s> add std::false_type>::type {}
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/Traits.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> */
<mask>
<mask> #pragma once
<mask>
<mask> #include <string>
<mask> #include <sys/types.h>
<mask> #include <folly/portability/Sockets.h>
<mask>
<mask> namespace folly { namespace detail {
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <string>
</s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail { </s> remove #include <stdlib.h>
</s> add #include <folly/Memory.h> // @shim </s> add #include <cstddef> </s> add #include <folly/CPortability.h>
</s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail {
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/detail/IPAddress.h
|
keep add keep keep keep keep keep keep
|
<mask>
<mask> #include <sys/types.h>
<mask> #include <folly/portability/Sockets.h>
<mask>
<mask> namespace folly {
<mask> namespace detail {
<mask>
<mask> std::string familyNameStrDefault(sa_family_t family);
</s> [sdk33] Update iOS with RN 0.59 </s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail { </s> remove #include <string>
</s> add </s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail { </s> add #include <folly/synchronization/MicroSpinLock.h> </s> remove #include <folly/MicroSpinLock.h>
</s> add </s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail {
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/detail/IPAddress.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> #include <string>
<mask> #include <sys/types.h>
<mask> #include <folly/portability/Sockets.h>
<mask>
<mask> namespace folly { namespace detail {
<mask>
<mask> std::string familyNameStrDefault(sa_family_t family);
<mask>
<mask> inline std::string familyNameStr(sa_family_t family) {
<mask> switch (family) {
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <string>
</s> remove #include <string>
</s> add </s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail { </s> add #include <folly/synchronization/MicroSpinLock.h> </s> add #include <folly/Traits.h> </s> remove #include <folly/MicroSpinLock.h>
</s> add
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/detail/IPAddress.h
|
keep replace keep keep keep replace keep keep keep
|
<mask> inline bool
<mask> getNthMSBitImpl(const IPAddrType& ip, uint8_t bitIndex, sa_family_t family) {
<mask> if (bitIndex >= ip.bitCount()) {
<mask> getNthMSBitImplThrow(ip.bitCount(), family);
<mask> }
<mask> //Underlying bytes are in n/w byte order
<mask> return (ip.getNthMSByte(bitIndex / 8) & (0x80 >> (bitIndex % 8))) != 0;
<mask> }
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> remove
}} // folly::detail
</s> add } // namespace detail
} // namespace folly </s> remove template<class InputString, class OutputString>
</s> add template <class InputString, class OutputString> </s> remove #ifdef _WIN32
// We implement a sane comparison operand for
// pthread_t and an integer so that it may be
// compared against 0.
inline bool operator==(pthread_t ptA, unsigned int b) {
if (ptA.p == nullptr) {
return b == 0;
}
return pthread_getw32threadid_np(ptA) == b;
}
inline bool operator!=(pthread_t ptA, unsigned int b) {
if (ptA.p == nullptr) {
return b != 0;
}
return pthread_getw32threadid_np(ptA) != b;
}
inline bool operator==(pthread_t ptA, pthread_t ptB) {
return pthread_equal(ptA, ptB) != 0;
}
inline bool operator!=(pthread_t ptA, pthread_t ptB) {
return pthread_equal(ptA, ptB) == 0;
}
inline bool operator<(pthread_t ptA, pthread_t ptB) {
return ptA.p < ptB.p;
}
inline bool operator!(pthread_t ptA) {
return ptA == 0;
}
inline int pthread_attr_getstack(
pthread_attr_t* attr,
void** stackaddr,
size_t* stacksize) {
if (pthread_attr_getstackaddr(attr, stackaddr) != 0) {
return -1;
}
if (pthread_attr_getstacksize(attr, stacksize) != 0) {
return -1;
}
return 0;
}
inline int
pthread_attr_setstack(pthread_attr_t* attr, void* stackaddr, size_t stacksize) {
if (pthread_attr_setstackaddr(attr, stackaddr) != 0) {
return -1;
}
if (pthread_attr_setstacksize(attr, stacksize) != 0) {
return -1;
}
return 0;
}
inline int pthread_attr_getguardsize(pthread_attr_t* attr, size_t* guardsize) {
*guardsize = 0;
return 0;
}
#include <xstddef>
namespace std {
template <>
struct hash<pthread_t> {
std::size_t operator()(const pthread_t& k) const {
return 0 ^ std::hash<decltype(k.p)>()(k.p) ^
std::hash<decltype(k.x)>()(k.x);
}
</s> add #elif !FOLLY_HAVE_PTHREAD
#include <cstdint>
#include <memory>
#include <folly/portability/Sched.h>
#include <folly/portability/Time.h>
#include <folly/portability/Windows.h>
#define PTHREAD_CREATE_JOINABLE 0
#define PTHREAD_CREATE_DETACHED 1
#define PTHREAD_MUTEX_NORMAL 0
#define PTHREAD_MUTEX_RECURSIVE 1
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
#define _POSIX_TIMEOUTS 200112L
namespace folly {
namespace portability {
namespace pthread {
struct pthread_attr_t {
size_t stackSize;
bool detached;
};
int pthread_attr_init(pthread_attr_t* attr);
int pthread_attr_setdetachstate(pthread_attr_t* attr, int state);
int pthread_attr_setstacksize(pthread_attr_t* attr, size_t kb);
namespace pthread_detail {
struct pthread_t {
HANDLE handle{INVALID_HANDLE_VALUE};
DWORD threadID{0};
bool detached{false};
~pthread_t() noexcept; </s> remove bool fullyLinked() const { return getFlags() & FULLY_LINKED; }
bool markedForRemoval() const { return getFlags() & MARKED_FOR_REMOVAL; }
bool isHeadNode() const { return getFlags() & IS_HEAD_NODE; }
</s> add bool fullyLinked() const {
return getFlags() & FULLY_LINKED;
}
bool markedForRemoval() const {
return getFlags() & MARKED_FOR_REMOVAL;
}
bool isHeadNode() const {
return getFlags() & IS_HEAD_NODE;
} </s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail {
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/detail/IPAddress.h
|
keep keep keep keep replace replace
|
<mask> }
<mask> //Underlying bytes are in n/w byte order
<mask> return (ip.getNthMSByte(bitIndex / 8) & (0x80 >> (bitIndex % 8))) != 0;
<mask> }
<mask>
<mask> }} // folly::detail
</s> [sdk33] Update iOS with RN 0.59 </s> remove //Underlying bytes are in n/w byte order
</s> add // Underlying bytes are in n/w byte order </s> remove getNthMSBitImpl(const IPAddrType& ip, uint8_t bitIndex, sa_family_t family) {
</s> add getNthMSBitImpl(const IPAddrType& ip, size_t bitIndex, sa_family_t family) { </s> remove template<class InputString, class OutputString>
</s> add template <class InputString, class OutputString> </s> remove }} // namespaces
</s> add } // namespace detail
} // namespace folly </s> remove return kIsLittleEndian
? capacity_ & capacityExtractMask
: capacity_ >> 2;
</s> add return kIsLittleEndian ? capacity_ & capacityExtractMask : capacity_ >> 2; </s> remove bool fullyLinked() const { return getFlags() & FULLY_LINKED; }
bool markedForRemoval() const { return getFlags() & MARKED_FOR_REMOVAL; }
bool isHeadNode() const { return getFlags() & IS_HEAD_NODE; }
</s> add bool fullyLinked() const {
return getFlags() & FULLY_LINKED;
}
bool markedForRemoval() const {
return getFlags() & MARKED_FOR_REMOVAL;
}
bool isHeadNode() const {
return getFlags() & IS_HEAD_NODE;
}
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/detail/IPAddress.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Builtins.h
|
keep keep keep replace keep replace keep keep keep keep
|
<mask>
<mask> #pragma once
<mask>
<mask> #ifdef _WIN32
<mask> #include <assert.h>
<mask> #include <intrin.h>
<mask> #include <folly/Portability.h>
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_clz(unsigned int x) {
<mask> unsigned long index;
</s> [sdk33] Update iOS with RN 0.59 </s> remove return (int)(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32);
</s> add return int(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32); </s> remove return (int)(_BitScanReverse64(&index, x) ? 63 - index : 64);
</s> add return int(_BitScanReverse64(&index, x) ? 63 - index : 64);
}
FOLLY_ALWAYS_INLINE int __builtin_ctz(unsigned int x) {
unsigned long index;
return int(_BitScanForward(&index, (unsigned long)x) ? index : 32);
}
FOLLY_ALWAYS_INLINE int __builtin_ctzl(unsigned long x) {
return __builtin_ctz((unsigned int)x); </s> remove FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) { return __builtin_ffs((int)x); }
</s> add FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) {
return __builtin_ffs(int(x));
} </s> remove return (int)(_BitScanForward64(&index, x) ? index : 64);
</s> add return int(_BitScanForward64(&index, x) ? index : 64); </s> remove return (int)(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
}
FOLLY_ALWAYS_INLINE int __builtin_popcount(unsigned int x) {
return int(__popcnt(x));
}
FOLLY_ALWAYS_INLINE int __builtin_popcountl(unsigned long x) {
static_assert(sizeof(x) == 4, "");
return int(__popcnt(x));
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Builtins.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> #include <folly/Portability.h>
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_clz(unsigned int x) {
<mask> unsigned long index;
<mask> return (int)(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32);
<mask> }
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_clzl(unsigned long x) {
<mask> return __builtin_clz((unsigned int)x);
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <intrin.h>
</s> add </s> remove return (int)(_BitScanReverse64(&index, x) ? 63 - index : 64);
</s> add return int(_BitScanReverse64(&index, x) ? 63 - index : 64);
}
FOLLY_ALWAYS_INLINE int __builtin_ctz(unsigned int x) {
unsigned long index;
return int(_BitScanForward(&index, (unsigned long)x) ? index : 32);
}
FOLLY_ALWAYS_INLINE int __builtin_ctzl(unsigned long x) {
return __builtin_ctz((unsigned int)x); </s> remove FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) { return __builtin_ffs((int)x); }
</s> add FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) {
return __builtin_ffs(int(x));
} </s> remove return (int)(_BitScanForward64(&index, x) ? index : 64);
</s> add return int(_BitScanForward64(&index, x) ? index : 64); </s> remove return (int)(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
}
FOLLY_ALWAYS_INLINE int __builtin_popcount(unsigned int x) {
return int(__popcnt(x));
}
FOLLY_ALWAYS_INLINE int __builtin_popcountl(unsigned long x) {
static_assert(sizeof(x) == 4, "");
return int(__popcnt(x)); </s> remove return (int)(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Builtins.h
|
keep replace keep keep keep keep replace keep keep keep
|
<mask> unsigned long index;
<mask> return (int)(_BitScanReverse64(&index, x) ? 63 - index : 64);
<mask> }
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_ctzll(unsigned long long x) {
<mask> unsigned long index;
<mask> return (int)(_BitScanForward64(&index, x) ? index : 64);
<mask> }
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_ffs(int x) {
</s> [sdk33] Update iOS with RN 0.59 </s> remove FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) { return __builtin_ffs((int)x); }
</s> add FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) {
return __builtin_ffs(int(x));
} </s> remove return (int)(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
}
FOLLY_ALWAYS_INLINE int __builtin_popcount(unsigned int x) {
return int(__popcnt(x));
}
FOLLY_ALWAYS_INLINE int __builtin_popcountl(unsigned long x) {
static_assert(sizeof(x) == 4, "");
return int(__popcnt(x)); </s> remove return (int)(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0); </s> remove return (int)(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32);
</s> add return int(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32); </s> remove #include <intrin.h>
</s> add
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Builtins.h
|
keep keep keep replace keep keep replace keep keep
|
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_ffs(int x) {
<mask> unsigned long index;
<mask> return (int)(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0);
<mask> }
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) { return __builtin_ffs((int)x); }
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_ffsll(long long x) {
</s> [sdk33] Update iOS with RN 0.59 </s> remove return (int)(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
}
FOLLY_ALWAYS_INLINE int __builtin_popcount(unsigned int x) {
return int(__popcnt(x));
}
FOLLY_ALWAYS_INLINE int __builtin_popcountl(unsigned long x) {
static_assert(sizeof(x) == 4, "");
return int(__popcnt(x)); </s> remove return (int)(_BitScanForward64(&index, x) ? index : 64);
</s> add return int(_BitScanForward64(&index, x) ? index : 64); </s> remove return (int)(_BitScanReverse64(&index, x) ? 63 - index : 64);
</s> add return int(_BitScanReverse64(&index, x) ? 63 - index : 64);
}
FOLLY_ALWAYS_INLINE int __builtin_ctz(unsigned int x) {
unsigned long index;
return int(_BitScanForward(&index, (unsigned long)x) ? index : 32);
}
FOLLY_ALWAYS_INLINE int __builtin_ctzl(unsigned long x) {
return __builtin_ctz((unsigned int)x); </s> remove return (int)(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32);
</s> add return int(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32); </s> remove return (int)__popcnt64(x);
</s> add return int(__popcnt64(x));
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Builtins.h
|
keep replace keep keep keep replace keep
|
<mask> unsigned long index;
<mask> return (int)(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
<mask> }
<mask>
<mask> FOLLY_ALWAYS_INLINE int __builtin_popcountll(unsigned long long x) {
<mask> return (int)__popcnt64(x);
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) { return __builtin_ffs((int)x); }
</s> add FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) {
return __builtin_ffs(int(x));
} </s> remove return (int)(_BitScanForward64(&index, x) ? index : 64);
</s> add return int(_BitScanForward64(&index, x) ? index : 64); </s> remove return (int)(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0); </s> remove return (int)(_BitScanReverse64(&index, x) ? 63 - index : 64);
</s> add return int(_BitScanReverse64(&index, x) ? 63 - index : 64);
}
FOLLY_ALWAYS_INLINE int __builtin_ctz(unsigned int x) {
unsigned long index;
return int(_BitScanForward(&index, (unsigned long)x) ? index : 32);
}
FOLLY_ALWAYS_INLINE int __builtin_ctzl(unsigned long x) {
return __builtin_ctz((unsigned int)x); </s> remove return (int)(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32);
</s> add return int(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Builtins.h
|
keep keep keep add keep keep keep keep
|
<mask> }
<mask>
<mask> FOLLY_ALWAYS_INLINE void* __builtin_return_address(unsigned int frame) {
<mask> // I really hope frame is zero...
<mask> assert(frame == 0);
<mask> return _ReturnAddress();
<mask> }
<mask> #endif
</s> [sdk33] Update iOS with RN 0.59 </s> remove return (int)__popcnt64(x);
</s> add return int(__popcnt64(x)); </s> remove return (int)(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward64(&index, (unsigned long long)x) ? index + 1 : 0);
}
FOLLY_ALWAYS_INLINE int __builtin_popcount(unsigned int x) {
return int(__popcnt(x));
}
FOLLY_ALWAYS_INLINE int __builtin_popcountl(unsigned long x) {
static_assert(sizeof(x) == 4, "");
return int(__popcnt(x)); </s> remove return (int)(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0);
</s> add return int(_BitScanForward(&index, (unsigned long)x) ? index + 1 : 0); </s> remove FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) { return __builtin_ffs((int)x); }
</s> add FOLLY_ALWAYS_INLINE int __builtin_ffsl(long x) {
return __builtin_ffs(int(x));
} </s> remove return (int)(_BitScanForward64(&index, x) ? index : 64);
</s> add return int(_BitScanForward64(&index, x) ? index : 64); </s> remove return (int)(_BitScanReverse64(&index, x) ? 63 - index : 64);
</s> add return int(_BitScanReverse64(&index, x) ? 63 - index : 64);
}
FOLLY_ALWAYS_INLINE int __builtin_ctz(unsigned int x) {
unsigned long index;
return int(_BitScanForward(&index, (unsigned long)x) ? index : 32);
}
FOLLY_ALWAYS_INLINE int __builtin_ctzl(unsigned long x) {
return __builtin_ctz((unsigned int)x);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Builtins.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Config.h
|
keep keep replace replace keep keep keep replace keep keep keep
|
<mask> #endif
<mask>
<mask> #if FOLLY_HAVE_FEATURES_H
<mask> #include <features.h>
<mask> #endif
<mask>
<mask> #ifdef __ANDROID__
<mask> #include <android/api-level.h>
<mask> #endif
<mask>
<mask> #ifdef __APPLE__
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <Availability.h>
</s> add #include <Availability.h> // @manual </s> remove #include <vector>
#include <boost/type_traits.hpp>
#include <boost/regex/pending/unicode_iterator.hpp>
#ifdef FOLLY_HAVE_DEPRECATED_ASSOC
#ifdef _GLIBCXX_SYMVER
#include <ext/hash_set>
#include <ext/hash_map>
#endif
#endif
#include <unordered_set>
</s> add </s> add #include <sys/types.h>
</s> remove // Defined in winnt.h
#ifdef DELETE
#undef DELETE
</s> add #include <WinSock2.h> // @manual
#include <Windows.h> // @manual
#ifdef CAL_GREGORIAN
#undef CAL_GREGORIAN </s> remove #include <WinSock2.h>
#include <Windows.h>
</s> add #if defined(min) || defined(max)
#error Windows.h needs to be included by this header, or else NOMINMAX needs \
to be defined before including it yourself.
#endif
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Config.h
|
keep keep keep keep replace keep
|
<mask> #include <android/api-level.h>
<mask> #endif
<mask>
<mask> #ifdef __APPLE__
<mask> #include <Availability.h>
<mask> #endif
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <android/api-level.h>
</s> add #include <android/api-level.h> // @manual </s> remove #if FOLLY_HAVE_FEATURES_H
#include <features.h>
</s> add #if __has_include(<features.h>)
#include <features.h> // @manual </s> add #include <sys/types.h>
</s> remove #include <vector>
#include <boost/type_traits.hpp>
#include <boost/regex/pending/unicode_iterator.hpp>
#ifdef FOLLY_HAVE_DEPRECATED_ASSOC
#ifdef _GLIBCXX_SYMVER
#include <ext/hash_set>
#include <ext/hash_map>
#endif
#endif
#include <unordered_set>
</s> add </s> remove // Defined in winnt.h
#ifdef DELETE
#undef DELETE
</s> add #include <WinSock2.h> // @manual
#include <Windows.h> // @manual
#ifdef CAL_GREGORIAN
#undef CAL_GREGORIAN </s> add #ifdef _MSC_VER
// This needs to be before the libevent include.
#include <folly/portability/Windows.h>
#endif
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Config.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask> */
<mask>
<mask> #pragma once
<mask>
<mask> #include <cstdint>
<mask> #include <cstring>
<mask> #include <type_traits>
<mask>
<mask> namespace folly {
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <cstdint> </s> add #include <cstddef> </s> remove #include <string>
</s> add </s> remove #include <stdint.h>
</s> add #include <cstdint> </s> add #include <folly/portability/Config.h>
#if !defined(_WIN32)
</s> remove #include <boost/multi_index_container.hpp>
</s> add
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep replace replace replace replace replace replace replace replace replace replace keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace
|
<mask>
<mask> template <typename T>
<mask> constexpr T constexpr_max(T a, T b) {
<mask> return a > b ? a : b;
<mask> }
<mask>
<mask> template <typename T>
<mask> constexpr T constexpr_min(T a, T b) {
<mask> return a < b ? a : b;
<mask> }
<mask>
<mask> namespace detail {
<mask>
<mask> template <typename T, typename = void>
<mask> struct constexpr_abs_helper {};
<mask>
<mask> template <typename T>
<mask> struct constexpr_abs_helper<
<mask> T,
<mask> typename std::enable_if<std::is_floating_point<T>::value>::type> {
<mask> static constexpr T go(T t) {
<mask> return t < static_cast<T>(0) ? -t : t;
<mask> }
<mask> };
<mask>
<mask> template <typename T>
<mask> struct constexpr_abs_helper<
<mask> T,
<mask> typename std::enable_if<
<mask> std::is_integral<T>::value && !std::is_same<T, bool>::value &&
<mask> std::is_unsigned<T>::value>::type> {
<mask> static constexpr T go(T t) {
<mask> return t;
<mask> }
<mask> };
<mask>
<mask> template <typename T>
<mask> struct constexpr_abs_helper<
<mask> T,
<mask> typename std::enable_if<
<mask> std::is_integral<T>::value && !std::is_same<T, bool>::value &&
<mask> std::is_signed<T>::value>::type> {
<mask> static constexpr typename std::make_unsigned<T>::type go(T t) {
<mask> return t < static_cast<T>(0) ? -t : t;
<mask> }
<mask> };
</s> [sdk33] Update iOS with RN 0.59 </s> remove struct DynamicConverter<T,
typename std::enable_if<std::is_integral<T>::value &&
!std::is_same<T, bool>::value>::type> {
</s> add struct DynamicConverter<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value>::type> { </s> remove struct DynamicConverter<T,
</s> add struct DynamicConverter<
T, </s> remove struct DynamicConverter<T,
typename std::enable_if<std::is_enum<T>::value>::type> {
</s> add struct DynamicConverter<
T,
typename std::enable_if<std::is_enum<T>::value>::type> { </s> remove template <typename T, typename Enable = void> struct DynamicConverter;
</s> add template <typename T, typename Enable = void>
struct DynamicConverter; </s> remove template <typename T>
constexpr auto constexpr_abs(T t)
-> decltype(detail::constexpr_abs_helper<T>::go(t)) {
return detail::constexpr_abs_helper<T>::go(t);
</s> add template <typename Char>
constexpr int constexpr_strcmp_internal(const Char* s1, const Char* s2) {
return (*s1 == '\0' || *s1 != *s2)
? (static_cast<int>(*s1 - *s2))
: constexpr_strcmp_internal(s1 + 1, s2 + 1);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep keep add keep keep keep keep
|
<mask> constexpr_strlen_internal(s + 8, len + 8);
<mask> // clang-format on
<mask> }
<mask>
<mask> template <typename Char>
<mask> constexpr int constexpr_strcmp_internal(const Char* s1, const Char* s2) {
<mask> return (*s1 == '\0' || *s1 != *s2)
</s> [sdk33] Update iOS with RN 0.59 </s> remove template <typename T>
constexpr auto constexpr_abs(T t)
-> decltype(detail::constexpr_abs_helper<T>::go(t)) {
return detail::constexpr_abs_helper<T>::go(t);
</s> add template <typename Char>
constexpr int constexpr_strcmp_internal(const Char* s1, const Char* s2) {
return (*s1 == '\0' || *s1 != *s2)
? (static_cast<int>(*s1 - *s2))
: constexpr_strcmp_internal(s1 + 1, s2 + 1); </s> remove #ifdef _MSC_VER
constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
</s> add template <typename Char>
constexpr size_t constexpr_strlen(const Char* s) {
return detail::constexpr_strlen_internal(s, 0); </s> remove template <typename T, typename = void>
struct constexpr_abs_helper {};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<std::is_floating_point<T>::value>::type> {
static constexpr T go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_unsigned<T>::value>::type> {
static constexpr T go(T t) {
return t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_signed<T>::value>::type> {
static constexpr typename std::make_unsigned<T>::type go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
</s> add template <typename Char>
constexpr size_t constexpr_strlen_internal(const Char* s, size_t len) {
// clang-format off
return
*(s + 0) == Char(0) ? len + 0 :
*(s + 1) == Char(0) ? len + 1 :
*(s + 2) == Char(0) ? len + 2 :
*(s + 3) == Char(0) ? len + 3 :
*(s + 4) == Char(0) ? len + 4 :
*(s + 5) == Char(0) ? len + 5 :
*(s + 6) == Char(0) ? len + 6 :
*(s + 7) == Char(0) ? len + 7 :
constexpr_strlen_internal(s + 8, len + 8);
// clang-format on </s> add #else
return detail::constexpr_strlen_internal(s, 0); </s> add } // namespace detail </s> remove static_assert(constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen...");
#endif
</s> add
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep keep keep keep replace replace replace replace keep keep keep keep keep
|
<mask> }
<mask> };
<mask> }
<mask>
<mask> template <typename T>
<mask> constexpr auto constexpr_abs(T t)
<mask> -> decltype(detail::constexpr_abs_helper<T>::go(t)) {
<mask> return detail::constexpr_abs_helper<T>::go(t);
<mask> }
<mask>
<mask> #ifdef _MSC_VER
<mask> constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
<mask> return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
</s> [sdk33] Update iOS with RN 0.59 </s> remove #ifdef _MSC_VER
constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
</s> add template <typename Char>
constexpr size_t constexpr_strlen(const Char* s) {
return detail::constexpr_strlen_internal(s, 0); </s> remove static_assert(constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen...");
#endif
</s> add </s> remove template <typename T, typename = void>
struct constexpr_abs_helper {};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<std::is_floating_point<T>::value>::type> {
static constexpr T go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_unsigned<T>::value>::type> {
static constexpr T go(T t) {
return t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_signed<T>::value>::type> {
static constexpr typename std::make_unsigned<T>::type go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
</s> add template <typename Char>
constexpr size_t constexpr_strlen_internal(const Char* s, size_t len) {
// clang-format off
return
*(s + 0) == Char(0) ? len + 0 :
*(s + 1) == Char(0) ? len + 1 :
*(s + 2) == Char(0) ? len + 2 :
*(s + 3) == Char(0) ? len + 3 :
*(s + 4) == Char(0) ? len + 4 :
*(s + 5) == Char(0) ? len + 5 :
*(s + 6) == Char(0) ? len + 6 :
*(s + 7) == Char(0) ? len + 7 :
constexpr_strlen_internal(s + 8, len + 8);
// clang-format on </s> add } // namespace detail </s> add static_assert(
constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen..."); </s> remove return *s == c;
</s> add return *s == c;
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep keep add keep keep keep keep keep
|
<mask> ? (static_cast<int>(*s1 - *s2))
<mask> : constexpr_strcmp_internal(s1 + 1, s2 + 1);
<mask> }
<mask>
<mask> template <typename Char>
<mask> constexpr size_t constexpr_strlen(const Char* s) {
<mask> return detail::constexpr_strlen_internal(s, 0);
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove template <typename T>
constexpr auto constexpr_abs(T t)
-> decltype(detail::constexpr_abs_helper<T>::go(t)) {
return detail::constexpr_abs_helper<T>::go(t);
</s> add template <typename Char>
constexpr int constexpr_strcmp_internal(const Char* s1, const Char* s2) {
return (*s1 == '\0' || *s1 != *s2)
? (static_cast<int>(*s1 - *s2))
: constexpr_strcmp_internal(s1 + 1, s2 + 1); </s> remove #ifdef _MSC_VER
constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
</s> add template <typename Char>
constexpr size_t constexpr_strlen(const Char* s) {
return detail::constexpr_strlen_internal(s, 0); </s> add template <> </s> remove static_assert(constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen...");
#endif
</s> add </s> add #else
return detail::constexpr_strlen_internal(s, 0); </s> remove template <typename T, typename = void>
struct constexpr_abs_helper {};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<std::is_floating_point<T>::value>::type> {
static constexpr T go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_unsigned<T>::value>::type> {
static constexpr T go(T t) {
return t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_signed<T>::value>::type> {
static constexpr typename std::make_unsigned<T>::type go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
</s> add template <typename Char>
constexpr size_t constexpr_strlen_internal(const Char* s, size_t len) {
// clang-format off
return
*(s + 0) == Char(0) ? len + 0 :
*(s + 1) == Char(0) ? len + 1 :
*(s + 2) == Char(0) ? len + 2 :
*(s + 3) == Char(0) ? len + 3 :
*(s + 4) == Char(0) ? len + 4 :
*(s + 5) == Char(0) ? len + 5 :
*(s + 6) == Char(0) ? len + 6 :
*(s + 7) == Char(0) ? len + 7 :
constexpr_strlen_internal(s + 8, len + 8);
// clang-format on
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep keep keep keep replace replace replace keep replace replace replace keep
|
<mask> -> decltype(detail::constexpr_abs_helper<T>::go(t)) {
<mask> return detail::constexpr_abs_helper<T>::go(t);
<mask> }
<mask>
<mask> #ifdef _MSC_VER
<mask> constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
<mask> return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
<mask> }
<mask> static_assert(constexpr_strlen_internal("123456789", 0) == 9,
<mask> "Someone appears to have broken constexpr_strlen...");
<mask> #endif
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> remove template <typename T>
constexpr auto constexpr_abs(T t)
-> decltype(detail::constexpr_abs_helper<T>::go(t)) {
return detail::constexpr_abs_helper<T>::go(t);
</s> add template <typename Char>
constexpr int constexpr_strcmp_internal(const Char* s1, const Char* s2) {
return (*s1 == '\0' || *s1 != *s2)
? (static_cast<int>(*s1 - *s2))
: constexpr_strcmp_internal(s1 + 1, s2 + 1); </s> add static_assert(
constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen..."); </s> remove template <typename T, typename = void>
struct constexpr_abs_helper {};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<std::is_floating_point<T>::value>::type> {
static constexpr T go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_unsigned<T>::value>::type> {
static constexpr T go(T t) {
return t;
}
};
template <typename T>
struct constexpr_abs_helper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T, bool>::value &&
std::is_signed<T>::value>::type> {
static constexpr typename std::make_unsigned<T>::type go(T t) {
return t < static_cast<T>(0) ? -t : t;
}
};
</s> add template <typename Char>
constexpr size_t constexpr_strlen_internal(const Char* s, size_t len) {
// clang-format off
return
*(s + 0) == Char(0) ? len + 0 :
*(s + 1) == Char(0) ? len + 1 :
*(s + 2) == Char(0) ? len + 2 :
*(s + 3) == Char(0) ? len + 3 :
*(s + 4) == Char(0) ? len + 4 :
*(s + 5) == Char(0) ? len + 5 :
*(s + 6) == Char(0) ? len + 6 :
*(s + 7) == Char(0) ? len + 7 :
constexpr_strlen_internal(s + 8, len + 8);
// clang-format on </s> remove #if defined(__clang__)
</s> add #if FOLLY_HAS_FEATURE(cxx_constexpr_string_builtins)
// clang provides a constexpr builtin </s> remove return *s == c;
</s> add return *s == c;
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask> constexpr size_t constexpr_strlen(const Char* s) {
<mask> return detail::constexpr_strlen_internal(s, 0);
<mask> }
<mask>
<mask> constexpr size_t constexpr_strlen(const char* s) {
<mask> #if FOLLY_HAS_FEATURE(cxx_constexpr_string_builtins)
<mask> // clang provides a constexpr builtin
<mask> return __builtin_strlen(s);
<mask> #elif defined(__GNUC__) && !defined(__clang__)
<mask> // strlen() happens to already be constexpr under gcc
</s> [sdk33] Update iOS with RN 0.59 </s> remove #elif defined(_MSC_VER)
return s == nullptr ? 0 : constexpr_strlen_internal(s, 0);
#else
</s> add #elif defined(__GNUC__) && !defined(__clang__)
// strlen() happens to already be constexpr under gcc </s> remove #if defined(__clang__)
</s> add #if FOLLY_HAS_FEATURE(cxx_constexpr_string_builtins)
// clang provides a constexpr builtin </s> add #else
return detail::constexpr_strlen_internal(s, 0); </s> remove static_assert(constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen...");
#endif
</s> add </s> remove #ifdef _MSC_VER
constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
</s> add template <typename Char>
constexpr size_t constexpr_strlen(const Char* s) {
return detail::constexpr_strlen_internal(s, 0); </s> add } // namespace detail
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep keep keep keep replace keep replace replace replace keep keep keep
|
<mask> "Someone appears to have broken constexpr_strlen...");
<mask> #endif
<mask>
<mask> constexpr size_t constexpr_strlen(const char* s) {
<mask> #if defined(__clang__)
<mask> return __builtin_strlen(s);
<mask> #elif defined(_MSC_VER)
<mask> return s == nullptr ? 0 : constexpr_strlen_internal(s, 0);
<mask> #else
<mask> return std::strlen(s);
<mask> #endif
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove static_assert(constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen...");
#endif
</s> add </s> remove #ifdef _MSC_VER
constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
</s> add template <typename Char>
constexpr size_t constexpr_strlen(const Char* s) {
return detail::constexpr_strlen_internal(s, 0); </s> add template <> </s> add static_assert(
constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen..."); </s> add } // namespace detail
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep add keep keep keep keep keep
|
<mask> // strlen() happens to already be constexpr under gcc
<mask> return std::strlen(s);
<mask> #endif
<mask> }
<mask>
<mask> template <typename Char>
<mask> constexpr int constexpr_strcmp(const Char* s1, const Char* s2) {
</s> [sdk33] Update iOS with RN 0.59 </s> add template <> </s> remove #elif defined(_MSC_VER)
return s == nullptr ? 0 : constexpr_strlen_internal(s, 0);
#else
</s> add #elif defined(__GNUC__) && !defined(__clang__)
// strlen() happens to already be constexpr under gcc </s> add static_assert(
constexpr_strlen_internal("123456789", 0) == 9,
"Someone appears to have broken constexpr_strlen..."); </s> remove template <typename T>
constexpr auto constexpr_abs(T t)
-> decltype(detail::constexpr_abs_helper<T>::go(t)) {
return detail::constexpr_abs_helper<T>::go(t);
</s> add template <typename Char>
constexpr int constexpr_strcmp_internal(const Char* s1, const Char* s2) {
return (*s1 == '\0' || *s1 != *s2)
? (static_cast<int>(*s1 - *s2))
: constexpr_strcmp_internal(s1 + 1, s2 + 1); </s> remove #ifdef _MSC_VER
constexpr size_t constexpr_strlen_internal(const char* s, size_t len) {
return *s == '\0' ? len : constexpr_strlen_internal(s + 1, len + 1);
</s> add template <typename Char>
constexpr size_t constexpr_strlen(const Char* s) {
return detail::constexpr_strlen_internal(s, 0); </s> add } // namespace detail
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Constexpr.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Dirent.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Event.h
|
keep keep keep add keep keep keep keep keep
|
<mask> */
<mask>
<mask> #pragma once
<mask>
<mask> #include <event.h>
<mask>
<mask> #ifdef _MSC_VER
<mask> #include <event2/event_compat.h> // @manual
<mask> #include <folly/portability/Fcntl.h>
</s> [sdk33] Update iOS with RN 0.59 </s> remove # include <event2/event_compat.h>
# include <folly/portability/Fcntl.h>
# include <folly/portability/Windows.h>
</s> add #include <event2/event_compat.h> // @manual
#include <folly/portability/Fcntl.h> </s> remove #ifdef _WIN32
</s> add #if defined(_WIN32) && !defined(__clang__) </s> remove #include <android/api-level.h>
</s> add #include <android/api-level.h> // @manual </s> remove #if FOLLY_HAVE_FEATURES_H
#include <features.h>
</s> add #if __has_include(<features.h>)
#include <features.h> // @manual </s> remove #include <Availability.h>
</s> add #include <Availability.h> // @manual </s> remove #include <stdint.h>
</s> add #include <cstdint>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Event.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask>
<mask> #include <event.h>
<mask>
<mask> #ifdef _MSC_VER
<mask> # include <event2/event_compat.h>
<mask> # include <folly/portability/Fcntl.h>
<mask> # include <folly/portability/Windows.h>
<mask> #endif
<mask>
<mask> namespace folly {
<mask> #ifdef _MSC_VER
<mask> using libevent_fd_t = evutil_socket_t;
</s> [sdk33] Update iOS with RN 0.59 </s> add #ifdef _MSC_VER
// This needs to be before the libevent include.
#include <folly/portability/Windows.h>
#endif
</s> remove # if __GNUC_PREREQ(4, 9)
# define FOLLY_EXPORT [[gnu::visibility("default")]]
# else
# define FOLLY_EXPORT __attribute__((__visibility__("default")))
# endif
</s> add #if __GNUC_PREREQ(4, 9)
#define FOLLY_EXPORT [[gnu::visibility("default")]]
#else
#define FOLLY_EXPORT __attribute__((__visibility__("default")))
#endif
#else
#define FOLLY_EXPORT
#endif
// noinline
#ifdef _MSC_VER
#define FOLLY_NOINLINE __declspec(noinline)
#elif defined(__clang__) || defined(__GNUC__)
#define FOLLY_NOINLINE __attribute__((__noinline__)) </s> remove # if defined(__clang__)
# if __has_attribute(__no_sanitize__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize__("address"), __noinline__))
# elif __has_attribute(__no_address_safety_analysis__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
# elif __has_attribute(__no_sanitize_address__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize_address__, __noinline__))
# endif
# elif defined(__GNUC__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
# endif
</s> add #if defined(__clang__)
#if __has_attribute(__no_sanitize__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize__("address"), __noinline__))
#elif __has_attribute(__no_address_safety_analysis__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
#elif __has_attribute(__no_sanitize_address__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize_address__, __noinline__))
#endif
#elif defined(__GNUC__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
#endif </s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual </s> remove # define FOLLY_EXPORT
</s> add #define FOLLY_NOINLINE </s> remove # if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
# define MAP_ANONYMOUS MAP_ANON
# endif
</s> add #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS MAP_ANON
#endif
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Event.h
|
keep keep keep keep replace
|
<mask> folly_event_set(event* e, int fd, short s, EventSetCallback f, void* arg) {
<mask> auto lfd = getLibeventFd(fd);
<mask> event_set(e, lfd, s, f, arg);
<mask> }
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove // Invoke helper
template <typename F, typename... Args>
inline auto invoke(F&& f, Args&&... args)
-> decltype(std::forward<F>(f)(std::forward<Args>(args)...)) {
return std::forward<F>(f)(std::forward<Args>(args)...);
}
template <typename M, typename C, typename... Args>
inline auto invoke(M(C::*d), Args&&... args)
-> decltype(std::mem_fn(d)(std::forward<Args>(args)...)) {
return std::mem_fn(d)(std::forward<Args>(args)...);
}
</s> add </s> remove return *s == c;
</s> add return *s == c; </s> remove : backend_(another.backend_) {
}
dummy_fbstring_core(const Char * s, size_t n)
: backend_(s, n) {
}
void swap(dummy_fbstring_core & rhs) {
</s> add : backend_(another.backend_) {}
dummy_fbstring_core(const Char* s, size_t n) : backend_(s, n) {}
void swap(dummy_fbstring_core& rhs) { </s> add #if !defined(_WIN32)
#include <strings.h>
#endif
</s> remove inline size_t delimSize(char) { return 1; }
inline size_t delimSize(StringPiece s) { return s.size(); }
</s> add inline size_t delimSize(char) {
return 1;
}
inline size_t delimSize(StringPiece s) {
return s.size();
} </s> remove int pread(int fd, void* buf, size_t count, off_t offset);
int pwrite(int fd, const void* buf, size_t count, off_t offset);
</s> add ssize_t pread(int fd, void* buf, size_t count, off_t offset);
ssize_t pwrite(int fd, const void* buf, size_t count, off_t offset);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Event.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Fcntl.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask>
<mask> #ifdef _WIN32
<mask> #include <sys/types.h>
<mask>
<mask> // I have no idea what the normal values for these are,
<mask> // and really don't care what they are. They're only used
<mask> // within fcntl, so it's not an issue.
<mask> #define FD_CLOEXEC HANDLE_FLAG_INHERIT
<mask> #define O_NONBLOCK 1
<mask> #define O_CLOEXEC _O_NOINHERIT
</s> [sdk33] Update iOS with RN 0.59 </s> add #define O_CLOEXEC _O_NOINHERIT </s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual </s> add #include <folly/portability/SysTypes.h>
</s> add // these are not supported
#define SO_EE_ORIGIN_ZEROCOPY 0
#define SO_ZEROCOPY 0
#define MSG_ZEROCOPY 0x0
#define SOL_UDP 0x0
#define UDP_SEGMENT 0x0
</s> remove #include <folly/portability/TypeTraits.h>
</s> add #if (FOLLY_X64 || FOLLY_PPC64)
#define FOLLY_SV_PACK_ATTR FOLLY_PACK_ATTR
#define FOLLY_SV_PACK_PUSH FOLLY_PACK_PUSH
#define FOLLY_SV_PACK_POP FOLLY_PACK_POP
#else
#define FOLLY_SV_PACK_ATTR
#define FOLLY_SV_PACK_PUSH
#define FOLLY_SV_PACK_POP
#endif </s> remove #ifdef USE_JEMALLOC
</s> add #include <folly/CPortability.h>
#include <folly/portability/Config.h>
#if (defined(USE_JEMALLOC) || defined(FOLLY_USE_JEMALLOC)) && !FOLLY_SANITIZE
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Fcntl.h
|
keep keep keep add keep keep keep keep keep
|
<mask> // and really don't care what they are. They're only used
<mask> // within fcntl, so it's not an issue.
<mask> #define FD_CLOEXEC HANDLE_FLAG_INHERIT
<mask> #define O_NONBLOCK 1
<mask> #define F_GETFD 1
<mask> #define F_SETFD 2
<mask> #define F_GETFL 3
<mask> #define F_SETFL 4
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <folly/portability/Windows.h>
</s> add #define PRIO_PROCESS 1
</s> add #define S_ISDIR(mode) (((mode) & (_S_IFDIR)) == (_S_IFDIR) ? 1 : 0)
</s> add // these are not supported
#define SO_EE_ORIGIN_ZEROCOPY 0
#define SO_ZEROCOPY 0
#define MSG_ZEROCOPY 0x0
#define SOL_UDP 0x0
#define UDP_SEGMENT 0x0
</s> remove #include <folly/portability/TypeTraits.h>
</s> add #if (FOLLY_X64 || FOLLY_PPC64)
#define FOLLY_SV_PACK_ATTR FOLLY_PACK_ATTR
#define FOLLY_SV_PACK_PUSH FOLLY_PACK_PUSH
#define FOLLY_SV_PACK_POP FOLLY_PACK_POP
#else
#define FOLLY_SV_PACK_ATTR
#define FOLLY_SV_PACK_PUSH
#define FOLLY_SV_PACK_POP
#endif </s> add #include <folly/portability/SysTypes.h>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Fcntl.h
|
keep keep keep keep replace replace replace keep keep keep
|
<mask> int creat(char const* fn, int pm);
<mask> int fcntl(int fd, int cmd, ...);
<mask> int posix_fallocate(int fd, off_t offset, off_t len);
<mask> int open(char const* fn, int of, int pm = 0);
<mask> }
<mask> }
<mask> }
<mask>
<mask> /* using override */ using namespace folly::portability::fcntl;
<mask> #endif
</s> [sdk33] Update iOS with RN 0.59 </s> remove int write(int fh, void const* buf, unsigned int mcc);
}
}
}
</s> add ssize_t write(int fh, void const* buf, size_t count);
} // namespace unistd
} // namespace portability
} // namespace folly </s> add int fchmod(int fd, mode_t mode); </s> remove long lseek(int fh, long off, int orig);
int read(int fh, void* buf, unsigned int mcc);
</s> add off_t lseek(int fh, off_t off, int orig);
ssize_t read(int fh, void* buf, size_t mcc); </s> remove int setmode(int fh, int md);
</s> add </s> remove int pread(int fd, void* buf, size_t count, off_t offset);
int pwrite(int fd, const void* buf, size_t count, off_t offset);
</s> add ssize_t pread(int fd, void* buf, size_t count, off_t offset);
ssize_t pwrite(int fd, const void* buf, size_t count, off_t offset); </s> remove size_t sysconf(int tp);
long tell(int fh);
</s> add long sysconf(int tp);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Fcntl.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GFlags.h
|
keep keep add keep keep keep keep keep keep
|
<mask> #define DECLARE_double(_name) FOLLY_DECLARE_FLAG(double, D, _name)
<mask> #define DECLARE_int32(_name) FOLLY_DECLARE_FLAG(int, I, _name)
<mask> #define DECLARE_int64(_name) FOLLY_DECLARE_FLAG(long long, I64, _name)
<mask> #define DECLARE_uint64(_name) FOLLY_DECLARE_FLAG(unsigned long long, U64, _name)
<mask> #define DECLARE_string(_name) FOLLY_DECLARE_FLAG(std::string, S, _name)
<mask>
<mask> #define FOLLY_DEFINE_FLAG(_type, _shortType, _name, _default) \
<mask> namespace fL##_shortType { \
<mask> _type FLAGS_##_name = _default; \
</s> [sdk33] Update iOS with RN 0.59 </s> add #define DEFINE_uint32(_name, _default, _description) \
FOLLY_DEFINE_FLAG(unsigned long, U32, _name, _default) </s> remove #define BENCHMARK_SUSPEND \
if (auto FB_ANONYMOUS_VARIABLE(BENCHMARK_SUSPEND) = \
::folly::BenchmarkSuspender()) {} \
else
</s> add #define BENCHMARK_SUSPEND \
if (auto FB_ANONYMOUS_VARIABLE(BENCHMARK_SUSPEND) = \
::folly::BenchmarkSuspender()) { \
} else </s> remove (FB_VA_GLUE(FB_ARG_2_OR_1, (__VA_ARGS__))).asConst())
</s> add as_const(FB_VA_GLUE(FB_ARG_2_OR_1, (__VA_ARGS__)))) </s> remove #define BENCHMARK_RELATIVE_MULTI(name, ...) \
BENCHMARK_MULTI_IMPL( \
name, \
"%" FB_STRINGIZE(name), \
FB_ONE_OR_NONE(unsigned, ## __VA_ARGS__), \
__VA_ARGS__)
</s> add #define BENCHMARK_RELATIVE_MULTI(name, ...) \
BENCHMARK_MULTI_IMPL( \
name, \
"%" FB_STRINGIZE(name), \
FB_ONE_OR_NONE(unsigned, ##__VA_ARGS__), \
__VA_ARGS__) </s> remove BOOST_MPL_HAS_XXX_TRAIT_DEF(name) \
</s> add FOLLY_CREATE_HAS_MEMBER_TYPE_TRAITS(has_##name, name); \ </s> remove #define CHECK_THROW(cond, E) \
::folly::throwOnFail<E>((cond), "Check failed: " #cond)
} // namespace folly
</s> add #define CHECK_THROW(cond, E) \
do { \
if (!(cond)) { \
throw E("Check failed: " #cond); \
} \
} while (0)
} // namespace folly
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GFlags.h
|
keep add keep keep keep keep keep
|
<mask> #define DEFINE_int64(_name, _default, _description) \
<mask> FOLLY_DEFINE_FLAG(long long, I64, _name, _default)
<mask> #define DEFINE_uint64(_name, _default, _description) \
<mask> FOLLY_DEFINE_FLAG(unsigned long long, U64, _name, _default)
<mask> #define DEFINE_string(_name, _default, _description) \
<mask> FOLLY_DEFINE_FLAG(std::string, S, _name, _default)
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> add #define DECLARE_uint32(_name) FOLLY_DECLARE_FLAG(unsigned long, U32, _name) </s> remove }
</s> add } // namespace google </s> remove #define BENCHMARK_SUSPEND \
if (auto FB_ANONYMOUS_VARIABLE(BENCHMARK_SUSPEND) = \
::folly::BenchmarkSuspender()) {} \
else
</s> add #define BENCHMARK_SUSPEND \
if (auto FB_ANONYMOUS_VARIABLE(BENCHMARK_SUSPEND) = \
::folly::BenchmarkSuspender()) { \
} else </s> remove #define BENCHMARK_RELATIVE_MULTI(name, ...) \
BENCHMARK_MULTI_IMPL( \
name, \
"%" FB_STRINGIZE(name), \
FB_ONE_OR_NONE(unsigned, ## __VA_ARGS__), \
__VA_ARGS__)
</s> add #define BENCHMARK_RELATIVE_MULTI(name, ...) \
BENCHMARK_MULTI_IMPL( \
name, \
"%" FB_STRINGIZE(name), \
FB_ONE_OR_NONE(unsigned, ##__VA_ARGS__), \
__VA_ARGS__) </s> remove (FB_VA_GLUE(FB_ARG_2_OR_1, (__VA_ARGS__))).asConst())
</s> add as_const(FB_VA_GLUE(FB_ARG_2_OR_1, (__VA_ARGS__)))) </s> remove #define BENCHMARK_MULTI(name, ...) \
BENCHMARK_MULTI_IMPL( \
name, \
FB_STRINGIZE(name), \
FB_ONE_OR_NONE(unsigned, ## __VA_ARGS__), \
__VA_ARGS__)
</s> add #define BENCHMARK_MULTI(name, ...) \
BENCHMARK_MULTI_IMPL( \
name, \
FB_STRINGIZE(name), \
FB_ONE_OR_NONE(unsigned, ##__VA_ARGS__), \
__VA_ARGS__)
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GFlags.h
|
keep keep keep keep replace keep keep keep keep
|
<mask> FOLLY_DEFINE_FLAG(std::string, S, _name, _default)
<mask>
<mask> namespace google {
<mask> class FlagSaver {};
<mask> }
<mask>
<mask> #else
<mask> #include <gflags/gflags.h>
<mask> #endif
</s> [sdk33] Update iOS with RN 0.59 </s> add #define DEFINE_uint32(_name, _default, _description) \
FOLLY_DEFINE_FLAG(unsigned long, U32, _name, _default) </s> add #define DECLARE_uint32(_name) FOLLY_DECLARE_FLAG(unsigned long, U32, _name) </s> remove #include <type_traits>
#include <utility>
namespace folly {
enum class TLPDestructionMode {
THIS_THREAD,
ALL_THREADS
};
struct AccessModeStrict {};
} // namespace
</s> add </s> remove }
}
</s> add } // namespace portability
} // namespace folly </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsLessThanComparable </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsEqualityComparable
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GFlags.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GMock.h
|
keep keep add keep keep
|
<mask> #include <folly/portability/Unistd.h>
<mask> #include <folly/portability/Windows.h>
<mask>
<mask> #include <gmock/gmock.h>
<mask> FOLLY_POP_WARNING
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <folly/Portability.h>
// Disable a couple of warnings due to GTest exporting classes
// that derive from stdlib classes which aren't explicitly exported.
FOLLY_PUSH_WARNING
FOLLY_MSVC_DISABLE_WARNING(4251)
FOLLY_MSVC_DISABLE_WARNING(4275) </s> add FOLLY_POP_WARNING </s> remove #include <WS2tcpip.h>
</s> add #include <WS2tcpip.h> // @manual </s> add #ifdef _MSC_VER
// This needs to be before the libevent include.
#include <folly/portability/Windows.h>
#endif
</s> remove # include <event2/event_compat.h>
# include <folly/portability/Fcntl.h>
# include <folly/portability/Windows.h>
</s> add #include <event2/event_compat.h> // @manual
#include <folly/portability/Fcntl.h> </s> remove #pragma GCC diagnostic pop
</s> add FOLLY_POP_WARNING
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GMock.h
|
keep keep keep add
|
<mask> FOLLY_PUSH_WARNING
<mask> FOLLY_MSVC_DISABLE_WARNING(4251)
<mask> FOLLY_MSVC_DISABLE_WARNING(4275)
<mask> #include <gmock/gmock.h>
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <folly/Portability.h>
// Disable a couple of warnings due to GMock exporting classes
// that derive from stdlib classes which aren't explicitly exported.
FOLLY_PUSH_WARNING
FOLLY_MSVC_DISABLE_WARNING(4251)
FOLLY_MSVC_DISABLE_WARNING(4275) </s> add #include <folly/Portability.h>
// Disable a couple of warnings due to GTest exporting classes
// that derive from stdlib classes which aren't explicitly exported.
FOLLY_PUSH_WARNING
FOLLY_MSVC_DISABLE_WARNING(4251)
FOLLY_MSVC_DISABLE_WARNING(4275) </s> remove #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
</s> add FOLLY_PUSH_WARNING
FOLLY_GNU_DISABLE_WARNING("-Wshadow") </s> remove if (bool SYNCHRONIZED_state = false) { \
</s> add if (bool SYNCHRONIZED_VAR(state) = false) { \ </s> add #include <new>
#include <type_traits>
#include <typeinfo>
#include <utility>
#include <folly/CPortability.h>
#include <folly/Demangle.h> </s> remove #include <boost/operators.hpp>
#include <boost/type_traits.hpp>
#include <boost/mpl/if.hpp>
</s> add #include <boost/mpl/count.hpp>
#include <boost/mpl/empty.hpp>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GMock.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GTest.h
|
keep keep keep add keep keep
|
<mask> // override all of those functions in Unistd.h :(
<mask> #include <folly/portability/Unistd.h>
<mask> #include <folly/portability/Windows.h>
<mask>
<mask> #include <gtest/gtest.h>
<mask> FOLLY_POP_WARNING
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <folly/Portability.h>
// Disable a couple of warnings due to GMock exporting classes
// that derive from stdlib classes which aren't explicitly exported.
FOLLY_PUSH_WARNING
FOLLY_MSVC_DISABLE_WARNING(4251)
FOLLY_MSVC_DISABLE_WARNING(4275) </s> remove #include <WS2tcpip.h>
</s> add #include <WS2tcpip.h> // @manual </s> add #ifdef _MSC_VER
// This needs to be before the libevent include.
#include <folly/portability/Windows.h>
#endif
</s> remove #include <sys/locking.h>
</s> add #include <sys/locking.h> // @manual
</s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual </s> remove # include <event2/event_compat.h>
# include <folly/portability/Fcntl.h>
# include <folly/portability/Windows.h>
</s> add #include <event2/event_compat.h> // @manual
#include <folly/portability/Fcntl.h>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/GTest.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/IOVec.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Libgen.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask>
<mask> namespace folly {
<mask> namespace portability {
<mask> char* internal_dirname(char* path);
<mask> }
<mask> }
<mask>
<mask> #ifndef _WIN32
<mask> #include <libgen.h>
<mask> #else
<mask> extern "C" char* dirname(char* path);
</s> [sdk33] Update iOS with RN 0.59 </s> remove }
}
}
</s> add } // namespace sockets
} // namespace portability
} // namespace folly </s> remove extern "C" {
</s> add </s> remove }
}
</s> add } // namespace chrono
} // namespace folly </s> add int fchmod(int fd, mode_t mode); </s> remove int write(int fh, void const* buf, unsigned int mcc);
}
}
}
</s> add ssize_t write(int fh, void const* buf, size_t count);
} // namespace unistd
} // namespace portability
} // namespace folly </s> remove void* aligned_malloc(size_t size, size_t align);
void aligned_free(void* aligned_ptr);
}
}
</s> add using folly::aligned_free;
using folly::aligned_malloc;
} // namespace detail
} // namespace folly
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Libgen.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Malloc.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> #pragma once
<mask>
<mask> #include <stdlib.h>
<mask>
<mask> #ifdef USE_JEMALLOC
<mask> // JEMalloc provides it's own implementation of
<mask> // malloc_usable_size, and that's what we should be using.
<mask> #include <jemalloc/jemalloc.h>
<mask> #else
<mask> #ifndef __APPLE__
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <sys/types.h>
</s> add </s> remove #include <string.h>
</s> add </s> add #ifdef _MSC_VER
// This needs to be before the libevent include.
#include <folly/portability/Windows.h>
#endif
</s> add #include <string.h> </s> add #include <folly/portability/Windows.h>
</s> remove #include <stdlib.h>
</s> add #include <folly/Memory.h> // @shim
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Malloc.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> #ifndef __APPLE__
<mask> #include <malloc.h>
<mask> #endif
<mask>
<mask> #include <folly/portability/Config.h>
<mask>
<mask> #if defined(__APPLE__) && !defined(FOLLY_HAVE_MALLOC_USABLE_SIZE)
<mask> // MacOS doesn't have malloc_usable_size()
<mask> extern "C" size_t malloc_usable_size(void* ptr);
<mask> #elif defined(_WIN32)
<mask> extern "C" size_t malloc_usable_size(void* ptr);
</s> [sdk33] Update iOS with RN 0.59 </s> add #if !defined(_WIN32)
#include <strings.h>
#endif
</s> add #if defined(__APPLE__)
#if __has_include(<crt_externs.h>)
#include <crt_externs.h> // @manual
#endif
#endif
extern "C" { </s> remove }
}
</s> add } // namespace portability
} // namespace folly </s> remove #ifdef USE_JEMALLOC
</s> add #include <folly/CPortability.h>
#include <folly/portability/Config.h>
#if (defined(USE_JEMALLOC) || defined(FOLLY_USE_JEMALLOC)) && !FOLLY_SANITIZE </s> add #include <folly/portability/Config.h>
#if !defined(_WIN32)
</s> remove # if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
# define MAP_ANONYMOUS MAP_ANON
# endif
</s> add #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS MAP_ANON
#endif
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Malloc.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Math.h
|
keep keep keep keep replace
|
<mask>
<mask> #endif // __GNUC__
<mask>
<mask> #endif // __ANDROID__
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <android/api-level.h>
</s> add #include <android/api-level.h> // @manual </s> remove #if FOLLY_HAVE_FEATURES_H
#include <features.h>
</s> add #if __has_include(<features.h>)
#include <features.h> // @manual </s> remove }
}
}
</s> add } // namespace sockets
} // namespace portability
} // namespace folly </s> add #if !__linux__ && !FOLLY_MOBILE
int clearenv();
#endif
} </s> remove // Older versions of libstdc++ do not provide std::is_trivially_copyable
#if defined(__clang__) && !defined(_LIBCPP_VERSION)
template <class T>
struct is_trivially_copyable
: std::integral_constant<bool, __is_trivially_copyable(T)> {};
#elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
template <class T>
struct is_trivially_copyable : std::is_trivial<T> {};
#else
template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
}
</s> add } // namespace traits_detail </s> remove }
</s> add } // namespace folly
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Math.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Memory.h
|
keep keep keep keep replace keep keep keep replace replace replace replace
|
<mask> */
<mask>
<mask> #pragma once
<mask>
<mask> #include <stdlib.h>
<mask>
<mask> namespace folly {
<mask> namespace detail {
<mask> void* aligned_malloc(size_t size, size_t align);
<mask> void aligned_free(void* aligned_ptr);
<mask> }
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <string>
</s> add </s> remove size_t hexDumpLine(const void* ptr, size_t offset, size_t size,
std::string& line);
} // namespace detail
</s> add size_t
hexDumpLine(const void* ptr, size_t offset, size_t size, std::string& line);
} // namespace detail </s> remove namespace folly { namespace detail {
</s> add namespace folly {
namespace detail { </s> add #include <cstddef> </s> add #include <folly/CPortability.h>
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Memory.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/PThread.h
|
keep keep keep add keep keep keep keep keep
|
<mask> */
<mask>
<mask> #pragma once
<mask>
<mask> #include <pthread.h>
<mask>
<mask> #elif !FOLLY_HAVE_PTHREAD
<mask>
<mask> #include <cstdint>
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <folly/CPortability.h>
</s> remove #include <stdint.h>
</s> add #include <cstdint> </s> add #include <cstdint> </s> remove #include <string.h>
</s> add </s> remove #include <stdexcept>
#include <cstdlib>
#include <type_traits>
</s> add </s> remove #include <sys/types.h>
</s> add
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/PThread.h
|
keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep replace
|
<mask>
<mask> #include <pthread.h>
<mask>
<mask> #ifdef _WIN32
<mask> // We implement a sane comparison operand for
<mask> // pthread_t and an integer so that it may be
<mask> // compared against 0.
<mask>
<mask> inline bool operator==(pthread_t ptA, unsigned int b) {
<mask> if (ptA.p == nullptr) {
<mask> return b == 0;
<mask> }
<mask> return pthread_getw32threadid_np(ptA) == b;
<mask> }
<mask>
<mask> inline bool operator!=(pthread_t ptA, unsigned int b) {
<mask> if (ptA.p == nullptr) {
<mask> return b != 0;
<mask> }
<mask> return pthread_getw32threadid_np(ptA) != b;
<mask> }
<mask>
<mask> inline bool operator==(pthread_t ptA, pthread_t ptB) {
<mask> return pthread_equal(ptA, ptB) != 0;
<mask> }
<mask>
<mask> inline bool operator!=(pthread_t ptA, pthread_t ptB) {
<mask> return pthread_equal(ptA, ptB) == 0;
<mask> }
<mask>
<mask> inline bool operator<(pthread_t ptA, pthread_t ptB) {
<mask> return ptA.p < ptB.p;
<mask> }
<mask>
<mask> inline bool operator!(pthread_t ptA) {
<mask> return ptA == 0;
<mask> }
<mask>
<mask> inline int pthread_attr_getstack(
<mask> pthread_attr_t* attr,
<mask> void** stackaddr,
<mask> size_t* stacksize) {
<mask> if (pthread_attr_getstackaddr(attr, stackaddr) != 0) {
<mask> return -1;
<mask> }
<mask> if (pthread_attr_getstacksize(attr, stacksize) != 0) {
<mask> return -1;
<mask> }
<mask> return 0;
<mask> }
<mask>
<mask> inline int
<mask> pthread_attr_setstack(pthread_attr_t* attr, void* stackaddr, size_t stacksize) {
<mask> if (pthread_attr_setstackaddr(attr, stackaddr) != 0) {
<mask> return -1;
<mask> }
<mask> if (pthread_attr_setstacksize(attr, stacksize) != 0) {
<mask> return -1;
<mask> }
<mask> return 0;
<mask> }
<mask>
<mask> inline int pthread_attr_getguardsize(pthread_attr_t* attr, size_t* guardsize) {
<mask> *guardsize = 0;
<mask> return 0;
<mask> }
<mask>
<mask> #include <xstddef>
<mask> namespace std {
<mask> template <>
<mask> struct hash<pthread_t> {
<mask> std::size_t operator()(const pthread_t& k) const {
<mask> return 0 ^ std::hash<decltype(k.p)>()(k.p) ^
<mask> std::hash<decltype(k.x)>()(k.x);
<mask> }
<mask> };
<mask> }
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/PThread.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Sockets.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> #include <folly/portability/IOVec.h>
<mask> #include <folly/portability/SysTypes.h>
<mask> #include <folly/portability/Windows.h>
<mask>
<mask> #include <WS2tcpip.h>
<mask>
<mask> using nfds_t = int;
<mask> using sa_family_t = ADDRESS_FAMILY;
<mask>
<mask> // We don't actually support either of these flags
</s> [sdk33] Update iOS with RN 0.59 </s> add // these are not supported
#define SO_EE_ORIGIN_ZEROCOPY 0
#define SO_ZEROCOPY 0
#define MSG_ZEROCOPY 0x0
#define SOL_UDP 0x0
#define UDP_SEGMENT 0x0
</s> remove # include <event2/event_compat.h>
# include <folly/portability/Fcntl.h>
# include <folly/portability/Windows.h>
</s> add #include <event2/event_compat.h> // @manual
#include <folly/portability/Fcntl.h> </s> add #include <folly/portability/Windows.h>
</s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual </s> remove // This is actually defined in our pthread implementation on
// Windows, but we don't want to include all of that just for this.
using pid_t = void*;
</s> add // This is a massive pain to have be an `int` due to the pthread implementation
// we support, but it's far more compatible with the rest of the windows world
// as an `int` than it would be as a `void*`
using pid_t = int; </s> add #include <folly/Portability.h>
// Disable a couple of warnings due to GMock exporting classes
// that derive from stdlib classes which aren't explicitly exported.
FOLLY_PUSH_WARNING
FOLLY_MSVC_DISABLE_WARNING(4251)
FOLLY_MSVC_DISABLE_WARNING(4275)
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Sockets.h
|
keep add keep keep keep keep keep keep
|
<mask> using sa_family_t = ADDRESS_FAMILY;
<mask>
<mask> // We don't actually support either of these flags
<mask> // currently.
<mask> #define MSG_DONTWAIT 0x1000
<mask> #define MSG_EOR 0
<mask> struct msghdr {
<mask> void* msg_name;
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <WS2tcpip.h>
</s> add #include <WS2tcpip.h> // @manual </s> add #include <folly/portability/Windows.h>
</s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual </s> remove // This is actually defined in our pthread implementation on
// Windows, but we don't want to include all of that just for this.
using pid_t = void*;
</s> add // This is a massive pain to have be an `int` due to the pthread implementation
// we support, but it's far more compatible with the rest of the windows world
// as an `int` than it would be as a `void*`
using pid_t = int; </s> add #define PRIO_PROCESS 1
</s> remove #ifdef _WIN32
// We implement a sane comparison operand for
// pthread_t and an integer so that it may be
// compared against 0.
inline bool operator==(pthread_t ptA, unsigned int b) {
if (ptA.p == nullptr) {
return b == 0;
}
return pthread_getw32threadid_np(ptA) == b;
}
inline bool operator!=(pthread_t ptA, unsigned int b) {
if (ptA.p == nullptr) {
return b != 0;
}
return pthread_getw32threadid_np(ptA) != b;
}
inline bool operator==(pthread_t ptA, pthread_t ptB) {
return pthread_equal(ptA, ptB) != 0;
}
inline bool operator!=(pthread_t ptA, pthread_t ptB) {
return pthread_equal(ptA, ptB) == 0;
}
inline bool operator<(pthread_t ptA, pthread_t ptB) {
return ptA.p < ptB.p;
}
inline bool operator!(pthread_t ptA) {
return ptA == 0;
}
inline int pthread_attr_getstack(
pthread_attr_t* attr,
void** stackaddr,
size_t* stacksize) {
if (pthread_attr_getstackaddr(attr, stackaddr) != 0) {
return -1;
}
if (pthread_attr_getstacksize(attr, stacksize) != 0) {
return -1;
}
return 0;
}
inline int
pthread_attr_setstack(pthread_attr_t* attr, void* stackaddr, size_t stacksize) {
if (pthread_attr_setstackaddr(attr, stackaddr) != 0) {
return -1;
}
if (pthread_attr_setstacksize(attr, stacksize) != 0) {
return -1;
}
return 0;
}
inline int pthread_attr_getguardsize(pthread_attr_t* attr, size_t* guardsize) {
*guardsize = 0;
return 0;
}
#include <xstddef>
namespace std {
template <>
struct hash<pthread_t> {
std::size_t operator()(const pthread_t& k) const {
return 0 ^ std::hash<decltype(k.p)>()(k.p) ^
std::hash<decltype(k.x)>()(k.x);
}
</s> add #elif !FOLLY_HAVE_PTHREAD
#include <cstdint>
#include <memory>
#include <folly/portability/Sched.h>
#include <folly/portability/Time.h>
#include <folly/portability/Windows.h>
#define PTHREAD_CREATE_JOINABLE 0
#define PTHREAD_CREATE_DETACHED 1
#define PTHREAD_MUTEX_NORMAL 0
#define PTHREAD_MUTEX_RECURSIVE 1
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
#define _POSIX_TIMEOUTS 200112L
namespace folly {
namespace portability {
namespace pthread {
struct pthread_attr_t {
size_t stackSize;
bool detached;
};
int pthread_attr_init(pthread_attr_t* attr);
int pthread_attr_setdetachstate(pthread_attr_t* attr, int state);
int pthread_attr_setstacksize(pthread_attr_t* attr, size_t kb);
namespace pthread_detail {
struct pthread_t {
HANDLE handle{INVALID_HANDLE_VALUE};
DWORD threadID{0};
bool detached{false};
~pthread_t() noexcept;
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Sockets.h
|
keep add keep keep keep keep keep keep
|
<mask> // These are the same, but PF_LOCAL
<mask> // isn't defined by WinSock.
<mask> #define PF_LOCAL PF_UNIX
<mask>
<mask> // This isn't defined by Windows, and we need to
<mask> // distinguish it from SO_REUSEADDR
<mask> #define SO_REUSEPORT 0x7001
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> remove // This is actually defined in our pthread implementation on
// Windows, but we don't want to include all of that just for this.
using pid_t = void*;
</s> add // This is a massive pain to have be an `int` due to the pthread implementation
// we support, but it's far more compatible with the rest of the windows world
// as an `int` than it would be as a `void*`
using pid_t = int; </s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual </s> add #define S_ISDIR(mode) (((mode) & (_S_IFDIR)) == (_S_IFDIR) ? 1 : 0)
</s> add #if defined(__APPLE__)
#if __has_include(<crt_externs.h>)
#include <crt_externs.h> // @manual
#endif
#endif
extern "C" { </s> remove auto needBytes = size * sizeof(value_type);
</s> add assert(this->kShouldUseHeap);
// This branch isn't needed for correctness, but allows the optimizer to
// skip generating code for the rest of this function in NoHeap
// small_vectors.
if (!this->kShouldUseHeap) {
return;
}
newSize = std::max(newSize, computeNewSize());
auto needBytes = newSize * sizeof(value_type); </s> remove FOLLY_PUSH_WARNING
FOLLY_MSVC_DISABLE_WARNING(4521) // Multiple copy constructors
FOLLY_MSVC_DISABLE_WARNING(4522) // Multiple assignment operators
</s> add
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Sockets.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> using ::poll;
<mask> using ::recv;
<mask> using ::recvfrom;
<mask> using ::send;
<mask> using ::sendto;
<mask> using ::sendmsg;
<mask> using ::setsockopt;
<mask> using ::shutdown;
<mask> using ::socket;
<mask> #else
</s> [sdk33] Update iOS with RN 0.59 </s> add using ::sendto; </s> remove /* using override */ using namespace folly::portability::sockets;
</s> add /* using override */
using namespace folly::portability::sockets; </s> remove using TokenBucket = ParameterizedTokenBucket<>;
using DynamicTokenBucket = ParameterizedDynamicTokenBucket<>;
}
</s> add using TokenBucket = BasicTokenBucket<>;
using DynamicTokenBucket = BasicDynamicTokenBucket<>;
} // namespace folly </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> remove template <typename F, typename G = typename std::decay<F>::type>
using ResultOf = decltype(
static_cast<ReturnType>(std::declval<G&>()(std::declval<Args>()...)));
</s> add template <typename F>
using ResultOf =
SafeResultOf<CallableResult<_t<std::decay<F>>&, Args...>, ReturnType>; </s> add // used to disable copy construction and assignment
class NonImplementedType;
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Sockets.h
|
keep keep keep add keep keep keep keep
|
<mask> using ::recv;
<mask> using ::recvfrom;
<mask> using ::send;
<mask> using ::sendmsg;
<mask> using ::setsockopt;
<mask> using ::shutdown;
<mask> using ::socket;
<mask> #else
</s> [sdk33] Update iOS with RN 0.59 </s> remove using ::sendto;
</s> add </s> remove /* using override */ using namespace folly::portability::sockets;
</s> add /* using override */
using namespace folly::portability::sockets; </s> remove using TokenBucket = ParameterizedTokenBucket<>;
using DynamicTokenBucket = ParameterizedDynamicTokenBucket<>;
}
</s> add using TokenBucket = BasicTokenBucket<>;
using DynamicTokenBucket = BasicDynamicTokenBucket<>;
} // namespace folly </s> remove #if defined(_MSC_VER) || defined(__cpp_lib_is_swappable)
// MSVC already implements the C++17 P0185R1 proposal which
// adds std::is_nothrow_swappable, so use it instead.
</s> add #if defined(__cpp_lib_is_swappable) || (_CPPLIB_VER && _HAS_CXX17)
// MSVC 2015+ already implements the C++17 P0185R1 proposal which
// adds std::is_nothrow_swappable, so use it instead if C++17 mode
// is enabled. </s> add #elif _CPPLIB_VER
// MSVC 2015+ defines the base even if C++17 is disabled, and
// MSVC 2015 has issues with our fallback implementation due to
// over-eager evaluation of noexcept.
template <typename T>
using IsNothrowSwappable = std::_Is_nothrow_swappable<T>; </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {};
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Sockets.h
|
keep keep replace replace replace keep keep keep replace
|
<mask> socklen_t optlen);
<mask> #endif
<mask> }
<mask> }
<mask> }
<mask>
<mask> #ifdef _WIN32
<mask> // Add our helpers to the overload set.
<mask> /* using override */ using namespace folly::portability::sockets;
</s> [sdk33] Update iOS with RN 0.59 </s> remove }
</s> add } // namespace traits_detail_IsNothrowSwappable </s> remove }
}
}
</s> add } // namespace fcntl
} // namespace portability
} // namespace folly </s> remove : std::integral_constant<bool,
std::is_nothrow_move_constructible<T>::value &&
noexcept(swap(std::declval<T&>(), std::declval<T&>()))
> {};
</s> add : bool_constant<std::is_nothrow_move_constructible<T>::value&& noexcept(
swap(std::declval<T&>(), std::declval<T&>()))> {}; </s> remove int write(int fh, void const* buf, unsigned int mcc);
}
}
}
</s> add ssize_t write(int fh, void const* buf, size_t count);
} // namespace unistd
} // namespace portability
} // namespace folly </s> remove bool
> {};
}
</s> add bool> {};
} // namespace traits_detail_IsLessThanComparable
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Sockets.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Stdio.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Stdlib.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask> #pragma once
<mask>
<mask> #include <cstdlib>
<mask>
<mask> #ifdef _WIN32
<mask> // These are technically supposed to be defined linux/limits.h and
<mask> // sys/param.h respectively, but Windows defines _MAX_PATH in stdlib.h,
<mask> // so, instead of creating two headers for a single define each, we put
<mask> // them here, where they are likely to already have been included in the
<mask> // code that needs them.
</s> [sdk33] Update iOS with RN 0.59 </s> remove // This is actually defined in our pthread implementation on
// Windows, but we don't want to include all of that just for this.
using pid_t = void*;
</s> add // This is a massive pain to have be an `int` due to the pthread implementation
// we support, but it's far more compatible with the rest of the windows world
// as an `int` than it would be as a `void*`
using pid_t = int; </s> remove #include <basetsd.h>
</s> add #include <basetsd.h> // @manual </s> remove #include <sys/locking.h>
</s> add #include <sys/locking.h> // @manual
</s> remove #ifdef FOLLY_HAVE_BITS_CXXCONFIG_H
</s> add #if __has_include(<bits/c++config.h>) </s> remove #include <WinSock2.h>
#include <Windows.h>
</s> add #if defined(min) || defined(max)
#error Windows.h needs to be included by this header, or else NOMINMAX needs \
to be defined before including it yourself.
#endif </s> remove asm volatile("" ::"X"(datum));
</s> add // The "r" constraint forces the compiler to make datum available
// in a register to the asm block, which means that it must have
// computed/loaded it. We use this path for things that are <=
// sizeof(long) (they have to fit), trivial (otherwise the compiler
// doesn't want to put them in a register), and not a pointer (because
// doNotOptimizeAway(&foo) would otherwise be a foot gun that didn't
// necessarily compute foo).
//
// An earlier version of this method had a more permissive input operand
// constraint, but that caused unnecessary variation between clang and
// gcc benchmarks.
asm volatile("" ::"r"(datum));
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Stdlib.h
|
keep keep keep replace keep keep keep keep replace
|
<mask> #define PATH_MAX _MAX_PATH
<mask> #define MAXPATHLEN _MAX_PATH
<mask>
<mask> extern "C" {
<mask> char* mktemp(char* tn);
<mask> char* mkdtemp(char* tn);
<mask> int mkstemp(char* tn);
<mask> char* realpath(const char* path, char* resolved_path);
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> add int fchmod(int fd, mode_t mode); </s> remove }
}
</s> add } // namespace portability
} // namespace folly </s> remove size_t sysconf(int tp);
long tell(int fh);
</s> add long sysconf(int tp); </s> remove int setmode(int fh, int md);
</s> add </s> remove char* strptime(const char* __restrict buf,
const char* __restrict fmt,
struct tm* __restrict tm);
</s> add char* strptime(
const char* __restrict buf,
const char* __restrict fmt,
struct tm* __restrict tm);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Stdlib.h
|
keep keep keep add
|
<mask> char*** _NSGetEnviron(void);
<mask> #endif
<mask> #define environ (*_NSGetEnviron())
<mask> #endif
</s> [sdk33] Update iOS with RN 0.59 </s> remove }
</s> add int setenv(const char* name, const char* value, int overwrite);
int unsetenv(const char* name);
#elif defined(__APPLE__)
// environ doesn't work well with dylibs, so use _NSGetEnviron instead.
#if !__has_include(<crt_externs.h>)
char*** _NSGetEnviron(void);
#endif
#define environ (*_NSGetEnviron()) </s> remove # if __GNUC_PREREQ(4, 9)
# define FOLLY_EXPORT [[gnu::visibility("default")]]
# else
# define FOLLY_EXPORT __attribute__((__visibility__("default")))
# endif
</s> add #if __GNUC_PREREQ(4, 9)
#define FOLLY_EXPORT [[gnu::visibility("default")]]
#else
#define FOLLY_EXPORT __attribute__((__visibility__("default")))
#endif
#else
#define FOLLY_EXPORT
#endif
// noinline
#ifdef _MSC_VER
#define FOLLY_NOINLINE __declspec(noinline)
#elif defined(__clang__) || defined(__GNUC__)
#define FOLLY_NOINLINE __attribute__((__noinline__)) </s> remove # define UBSAN_DISABLE(x)
#endif // UNDEFINED_SANITIZER
</s> add #define FOLLY_DISABLE_UNDEFINED_BEHAVIOR_SANITIZER(...)
#endif // FOLLY_SANITIZE </s> remove #if UNDEFINED_SANITIZER
# define UBSAN_DISABLE(x) __attribute__((no_sanitize(x)))
</s> add #if defined(FOLLY_SANITIZE_ADDRESS) || defined(FOLLY_SANITIZE_THREAD)
#define FOLLY_SANITIZE 1
#endif
#if FOLLY_SANITIZE
#define FOLLY_DISABLE_UNDEFINED_BEHAVIOR_SANITIZER(...) \
__attribute__((no_sanitize(__VA_ARGS__))) </s> remove # if defined(__clang__)
# if __has_attribute(__no_sanitize__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize__("address"), __noinline__))
# elif __has_attribute(__no_address_safety_analysis__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
# elif __has_attribute(__no_sanitize_address__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize_address__, __noinline__))
# endif
# elif defined(__GNUC__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
# endif
</s> add #if defined(__clang__)
#if __has_attribute(__no_sanitize__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize__("address"), __noinline__))
#elif __has_attribute(__no_address_safety_analysis__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
#elif __has_attribute(__no_sanitize_address__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize_address__, __noinline__))
#endif
#elif defined(__GNUC__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
#endif </s> remove # define FOLLY_EXPORT
</s> add #define FOLLY_NOINLINE
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/Stdlib.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/String.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> */
<mask>
<mask> #pragma once
<mask>
<mask> #include <string.h>
<mask> #include <stdlib.h>
<mask>
<mask> #include <folly/portability/Config.h>
<mask>
<mask> #if !FOLLY_HAVE_MEMRCHR
</s> [sdk33] Update iOS with RN 0.59 </s> add #include <string.h> </s> add #include <folly/portability/Config.h>
#if !defined(_WIN32)
</s> remove #ifdef USE_JEMALLOC
</s> add #include <folly/CPortability.h>
#include <folly/portability/Config.h>
#if (defined(USE_JEMALLOC) || defined(FOLLY_USE_JEMALLOC)) && !FOLLY_SANITIZE </s> add #if !defined(_WIN32)
#include <strings.h>
#endif
</s> remove #include <sys/types.h>
</s> add </s> remove #include <stdlib.h>
</s> add #include <folly/Memory.h> // @shim
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/String.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask>
<mask> #pragma once
<mask>
<mask> #include <stdlib.h>
<mask>
<mask> #include <folly/portability/Config.h>
<mask>
<mask> #if !defined(_WIN32)
<mask> #include <strings.h>
<mask> #endif
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <string.h>
</s> add </s> add #include <folly/portability/Config.h>
#if !defined(_WIN32)
</s> add #if !defined(_WIN32)
#include <strings.h>
#endif
</s> remove #ifdef USE_JEMALLOC
</s> add #include <folly/CPortability.h>
#include <folly/portability/Config.h>
#if (defined(USE_JEMALLOC) || defined(FOLLY_USE_JEMALLOC)) && !FOLLY_SANITIZE </s> remove #include <sys/types.h>
</s> add </s> remove #include <stdlib.h>
</s> add #include <folly/Memory.h> // @shim
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/String.h
|
keep keep add keep keep keep keep keep
|
<mask>
<mask> #include <folly/portability/Config.h>
<mask>
<mask> #if !FOLLY_HAVE_MEMRCHR
<mask> extern "C" void* memrchr(const void* s, int c, size_t n);
<mask> #endif
<mask>
<mask> #if defined(_WIN32) || defined(__FreeBSD__)
</s> [sdk33] Update iOS with RN 0.59 </s> remove #include <folly/portability/Config.h>
</s> add </s> remove #include <string.h>
</s> add </s> remove # if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
# define MAP_ANONYMOUS MAP_ANON
# endif
</s> add #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS MAP_ANON
#endif </s> add #include <string.h> </s> remove #ifdef _WIN32
</s> add #if defined(_WIN32) && !defined(__clang__) </s> remove int pread(int fd, void* buf, size_t count, off_t offset);
int pwrite(int fd, const void* buf, size_t count, off_t offset);
</s> add ssize_t pread(int fd, void* buf, size_t count, off_t offset);
ssize_t pwrite(int fd, const void* buf, size_t count, off_t offset);
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/String.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysFile.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysMembarrier.h
|
keep keep keep keep replace replace
|
<mask> namespace detail {
<mask>
<mask> int sysMembarrier();
<mask> bool sysMembarrierAvailable();
<mask> }
<mask> }
</s> [sdk33] Update iOS with RN 0.59 </s> remove void* aligned_malloc(size_t size, size_t align);
void aligned_free(void* aligned_ptr);
}
}
</s> add using folly::aligned_free;
using folly::aligned_malloc;
} // namespace detail
} // namespace folly </s> remove #ifdef _WIN32
// We implement a sane comparison operand for
// pthread_t and an integer so that it may be
// compared against 0.
inline bool operator==(pthread_t ptA, unsigned int b) {
if (ptA.p == nullptr) {
return b == 0;
}
return pthread_getw32threadid_np(ptA) == b;
}
inline bool operator!=(pthread_t ptA, unsigned int b) {
if (ptA.p == nullptr) {
return b != 0;
}
return pthread_getw32threadid_np(ptA) != b;
}
inline bool operator==(pthread_t ptA, pthread_t ptB) {
return pthread_equal(ptA, ptB) != 0;
}
inline bool operator!=(pthread_t ptA, pthread_t ptB) {
return pthread_equal(ptA, ptB) == 0;
}
inline bool operator<(pthread_t ptA, pthread_t ptB) {
return ptA.p < ptB.p;
}
inline bool operator!(pthread_t ptA) {
return ptA == 0;
}
inline int pthread_attr_getstack(
pthread_attr_t* attr,
void** stackaddr,
size_t* stacksize) {
if (pthread_attr_getstackaddr(attr, stackaddr) != 0) {
return -1;
}
if (pthread_attr_getstacksize(attr, stacksize) != 0) {
return -1;
}
return 0;
}
inline int
pthread_attr_setstack(pthread_attr_t* attr, void* stackaddr, size_t stacksize) {
if (pthread_attr_setstackaddr(attr, stackaddr) != 0) {
return -1;
}
if (pthread_attr_setstacksize(attr, stacksize) != 0) {
return -1;
}
return 0;
}
inline int pthread_attr_getguardsize(pthread_attr_t* attr, size_t* guardsize) {
*guardsize = 0;
return 0;
}
#include <xstddef>
namespace std {
template <>
struct hash<pthread_t> {
std::size_t operator()(const pthread_t& k) const {
return 0 ^ std::hash<decltype(k.p)>()(k.p) ^
std::hash<decltype(k.x)>()(k.x);
}
</s> add #elif !FOLLY_HAVE_PTHREAD
#include <cstdint>
#include <memory>
#include <folly/portability/Sched.h>
#include <folly/portability/Time.h>
#include <folly/portability/Windows.h>
#define PTHREAD_CREATE_JOINABLE 0
#define PTHREAD_CREATE_DETACHED 1
#define PTHREAD_MUTEX_NORMAL 0
#define PTHREAD_MUTEX_RECURSIVE 1
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
#define _POSIX_TIMEOUTS 200112L
namespace folly {
namespace portability {
namespace pthread {
struct pthread_attr_t {
size_t stackSize;
bool detached;
};
int pthread_attr_init(pthread_attr_t* attr);
int pthread_attr_setdetachstate(pthread_attr_t* attr, int state);
int pthread_attr_setstacksize(pthread_attr_t* attr, size_t kb);
namespace pthread_detail {
struct pthread_t {
HANDLE handle{INVALID_HANDLE_VALUE};
DWORD threadID{0};
bool detached{false};
~pthread_t() noexcept; </s> remove } // detail namespace
</s> add } // namespace detail </s> remove out.append(&*last, p - last);
</s> add out.append(&*last, size_t(p - last)); </s> remove }
}
</s> add } // namespace chrono
} // namespace folly </s> remove bool good() const { return succs_[0] != nullptr; }
</s> add bool good() const {
return succs_[0] != nullptr;
}
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysMembarrier.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysMman.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> #include <sys/mman.h>
<mask>
<mask> // MAP_ANONYMOUS is named MAP_ANON on OSX/BSD.
<mask> #if defined(__APPLE__) || defined(__FreeBSD__)
<mask> # if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
<mask> # define MAP_ANONYMOUS MAP_ANON
<mask> # endif
<mask> #endif
<mask> #else
<mask> #include <cstdint>
<mask> #include <sys/types.h>
<mask>
</s> [sdk33] Update iOS with RN 0.59 </s> remove # if __GNUC_PREREQ(4, 9)
# define FOLLY_EXPORT [[gnu::visibility("default")]]
# else
# define FOLLY_EXPORT __attribute__((__visibility__("default")))
# endif
</s> add #if __GNUC_PREREQ(4, 9)
#define FOLLY_EXPORT [[gnu::visibility("default")]]
#else
#define FOLLY_EXPORT __attribute__((__visibility__("default")))
#endif
#else
#define FOLLY_EXPORT
#endif
// noinline
#ifdef _MSC_VER
#define FOLLY_NOINLINE __declspec(noinline)
#elif defined(__clang__) || defined(__GNUC__)
#define FOLLY_NOINLINE __attribute__((__noinline__)) </s> remove # define FOLLY_EXPORT
</s> add #define FOLLY_NOINLINE </s> remove #if defined(__clang__)
# if __has_feature(thread_sanitizer)
# define FOLLY_SANITIZE_THREAD 1
# endif
#elif defined(__GNUC__) && __SANITIZE_THREAD__
# define FOLLY_SANITIZE_THREAD 1
</s> add #if FOLLY_HAS_FEATURE(thread_sanitizer) || __SANITIZE_THREAD__
#define FOLLY_SANITIZE_THREAD 1 </s> remove # if defined(__clang__)
# if __has_attribute(__no_sanitize__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize__("address"), __noinline__))
# elif __has_attribute(__no_address_safety_analysis__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
# elif __has_attribute(__no_sanitize_address__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize_address__, __noinline__))
# endif
# elif defined(__GNUC__)
# define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
# endif
</s> add #if defined(__clang__)
#if __has_attribute(__no_sanitize__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize__("address"), __noinline__))
#elif __has_attribute(__no_address_safety_analysis__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
#elif __has_attribute(__no_sanitize_address__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_sanitize_address__, __noinline__))
#endif
#elif defined(__GNUC__)
#define FOLLY_DISABLE_ADDRESS_SANITIZER \
__attribute__((__no_address_safety_analysis__, __noinline__))
#endif </s> remove #if UNDEFINED_SANITIZER
# define UBSAN_DISABLE(x) __attribute__((no_sanitize(x)))
</s> add #if defined(FOLLY_SANITIZE_ADDRESS) || defined(FOLLY_SANITIZE_THREAD)
#define FOLLY_SANITIZE 1
#endif
#if FOLLY_SANITIZE
#define FOLLY_DISABLE_UNDEFINED_BEHAVIOR_SANITIZER(...) \
__attribute__((no_sanitize(__VA_ARGS__))) </s> remove # define __GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= \
((maj) << 16) + (min))
# else
</s> add #define __GNUC_PREREQ(maj, min) \
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
#else
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysMman.h
|
keep replace keep keep keep keep keep
|
<mask> /*
<mask> * Copyright 2016 Facebook, Inc.
<mask> *
<mask> * Licensed under the Apache License, Version 2.0 (the "License");
<mask> * you may not use this file except in compliance with the License.
<mask> * You may obtain a copy of the License at
<mask> *
</s> [sdk33] Update iOS with RN 0.59
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysResource.h
|
keep keep add keep keep keep keep keep
|
<mask>
<mask> #include <folly/portability/SysTime.h>
<mask>
<mask> #define RLIMIT_CORE 0
<mask> #define RLIMIT_NOFILE 0
<mask> #define RLIMIT_DATA 0
<mask> #define RLIMIT_STACK 3
<mask> #define RLIM_INFINITY SIZE_MAX
</s> [sdk33] Update iOS with RN 0.59 </s> add // these are not supported
#define SO_EE_ORIGIN_ZEROCOPY 0
#define SO_ZEROCOPY 0
#define MSG_ZEROCOPY 0x0
#define SOL_UDP 0x0
#define UDP_SEGMENT 0x0
</s> add #include <folly/portability/SysTypes.h>
</s> add #define O_CLOEXEC _O_NOINHERIT </s> remove #include <folly/portability/TypeTraits.h>
</s> add #if (FOLLY_X64 || FOLLY_PPC64)
#define FOLLY_SV_PACK_ATTR FOLLY_PACK_ATTR
#define FOLLY_SV_PACK_PUSH FOLLY_PACK_PUSH
#define FOLLY_SV_PACK_POP FOLLY_PACK_POP
#else
#define FOLLY_SV_PACK_ATTR
#define FOLLY_SV_PACK_PUSH
#define FOLLY_SV_PACK_POP
#endif </s> remove /* Define a convenience macro to test when address sanitizer is being used
* across the different compilers (e.g. clang, gcc) */
#if defined(__clang__)
# if __has_feature(address_sanitizer)
# define FOLLY_SANITIZE_ADDRESS 1
# endif
#elif defined (__GNUC__) && \
(((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)) || (__GNUC__ >= 5)) && \
__SANITIZE_ADDRESS__
# define FOLLY_SANITIZE_ADDRESS 1
</s> add // portable version check for clang
#ifndef __CLANG_PREREQ
#if defined __clang__ && defined __clang_major__ && defined __clang_minor__
/* nolint */
#define __CLANG_PREREQ(maj, min) \
((__clang_major__ << 16) + __clang_minor__ >= ((maj) << 16) + (min))
#else
/* nolint */
#define __CLANG_PREREQ(maj, min) 0
#endif
#endif
#if defined(__has_builtin)
#define FOLLY_HAS_BUILTIN(...) __has_builtin(__VA_ARGS__)
#else
#define FOLLY_HAS_BUILTIN(...) 0
#endif
#if defined(__has_feature)
#define FOLLY_HAS_FEATURE(...) __has_feature(__VA_ARGS__)
#else
#define FOLLY_HAS_FEATURE(...) 0
#endif
/* FOLLY_SANITIZE_ADDRESS is defined to 1 if the current compilation unit
* is being compiled with ASAN enabled.
*
* Beware when using this macro in a header file: this macro may change values
* across compilation units if some libraries are built with ASAN enabled
* and some built with ASAN disabled. For instance, this may occur, if folly
* itself was compiled without ASAN but a downstream project that uses folly is
* compiling with ASAN enabled.
*
* Use FOLLY_ASAN_ENABLED (defined in folly-config.h) to check if folly itself
* was compiled with ASAN enabled.
*/
#if FOLLY_HAS_FEATURE(address_sanitizer) || __SANITIZE_ADDRESS__
#define FOLLY_SANITIZE_ADDRESS 1 </s> add #define DECLARE_uint32(_name) FOLLY_DECLARE_FLAG(unsigned long, U32, _name)
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysResource.h
|
keep keep keep add keep keep
|
<mask> extern "C" {
<mask> int getrlimit(int type, rlimit* dst);
<mask> int getrusage(int who, rusage* usage);
<mask> int setrlimit(int type, rlimit* src);
<mask> }
<mask> #endif
</s> [sdk33] Update iOS with RN 0.59 </s> add int fchmod(int fd, mode_t mode); </s> add #if !defined(_WIN32)
#include <strings.h>
#endif
</s> remove extern "C" {
</s> add </s> remove int gettimeofday(timeval* tv, timezone*);
</s> add // Note that this needs to explicitly be `struct timezone` due to the fact that
// the python 3 headers `#define timezone _timezone` on Windows. `_timezone` is
// a global field that contains information on the current timezone. By
// explicitly specifying that this is a `struct`, we ensure that it's treated as
// a type, regardless of what name that type actually is :)
// Note that this will break if `gettimeofday` ever becomes declared as anything
// other than `extern "C"`, as the mangled name would be dependent on whether
// python had been included before this header.
int gettimeofday(timeval* tv, struct timezone*); </s> remove }
}
</s> add } // namespace chrono
} // namespace folly </s> add #define S_ISDIR(mode) (((mode) & (_S_IFDIR)) == (_S_IFDIR) ? 1 : 0)
|
https://github.com/expo/expo/commit/6de1d01531ce3e3388db436409963b83ec2f7911
|
ios/Pods/Folly/folly/portability/SysResource.h
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.