Skip to content

Instantly share code, notes, and snippets.

@gootik
Created September 16, 2019 05:10
Show Gist options
  • Save gootik/daaa7ec16c5037193c2636ae4ab305bc to your computer and use it in GitHub Desktop.
Save gootik/daaa7ec16c5037193c2636ae4ab305bc to your computer and use it in GitHub Desktop.
uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),2(kmem),3(sys),4(tty),5(operator),8(procview),9(procmod),12(everyone),20(staff),29(certusers),61(localaccounts),80(admin),33(_appstore),98(_lpadmin),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),701(com.apple.sharepoint.group.1)
rm -f ../String.o ../StringImpl.o ../StringBuilder.o ../StringView.o ../LogStream.o ../JsonArray.o ../JsonObject.o ../JsonValue.o ../JsonParser.o ../FileSystemPath.o ../URL.o ../Utf8View.o
rm -f TestString TestQueue TestVector TestHashMap TestJSON TestWeakPtr TestNonnullRefPtr TestRefPtr TestFixedArray TestFileSystemPath TestURL TestStringView TestUtf8
rm -f ../String.o ../StringImpl.o ../StringBuilder.o ../StringView.o ../LogStream.o ../JsonArray.o ../JsonObject.o ../JsonValue.o ../JsonParser.o ../FileSystemPath.o ../URL.o ../Utf8View.o
rm -f TestString TestQueue TestVector TestHashMap TestJSON TestWeakPtr TestNonnullRefPtr TestRefPtr TestFixedArray TestFileSystemPath TestURL TestStringView TestUtf8
HOST_CXX TestString.cpp
HOST_CXX ../String.cpp
HOST_CXX ../StringImpl.cpp
HOST_CXX ../StringBuilder.cpp
HOST_CXX ../StringView.cpp
HOST_CXX ../JsonArray.cpp
HOST_CXX ../LogStream.cpp
HOST_CXX ../JsonObject.cpp
In file included from ../String.cpp:1:
../../AK/StdLibExtras.h:7:14: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
In file included from ../LogStream.cpp:1:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
../../AK/Platform.h:35:5: error: use of undeclared identifier 'memcpy'
memcpy(tmp, path, path_length);
^
In file included from ../StringImpl.cpp:1:
In file included from ../StringImpl.h:3:
In file included from ../../AK/RefPtr.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
In file included from ../String.cpp:1:
In file included from ../../AK/StdLibExtras.h:7:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
In file included from ../StringImpl.cpp:1:
In file included from ../StringImpl.h:3:
In file included from ../../AK/RefPtr.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
In file included from ../../AK/Platform.h:31:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
In file included from ../../AK/RefCounted.h:4:
../StdLibExtras.h:7:14: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
In file included from ../StringView.cpp:1:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: In file included from ../StringBuilder.cpp:1:
In file included from ../../AK/PrintfImplementation.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
../../AK/Platform.h:35In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
../../AK/StdLibExtras.h:7:14: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
:5: error: use of undeclared identifier 'memcpy'
memcpy(tmp, path, path_length);
^
../../AK/Platform.h:35:5: error: use of undeclared identifier 'memcpy'
memcpy(tmp, path, path_length);
^
In file included from ../JsonObject.cpp:1:
In file included from ../../AK/JsonObject.h:3:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
In file included from ../StringBuilder.cpp:1:
In file included from ../../AK/PrintfImplementation.h:5:
In file included from ../../AK/Types.h:4:
In file included from ../../AK/Platform.h:31:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
In file included from ../../AK/RefCounted.h:4:
../StdLibExtras.h:7:14: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
../../AK/Platform.h:35:5: error: use of undeclared identifier 'memcpy'
memcpy(tmp, path, path_length);
^
In file included from ../JsonArray.cpp:1:
In file included from ../../AK/JsonArray.h:3:
In file included from ../../AK/JsonArraySerializer.h:3:
In file included from ../../AK/JsonValue.h:3:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../../AK/StdLibExtras.h:7:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
../../AK/Platform.h:31:10: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <string.h>
^~~~~~~~~~
<String.h>
../../AK/Platform.h:35:5: error: use of undeclared identifier 'memcpy'
memcpy(tmp, path, path_length);
^
../../AK/Platform.h:35:5: error: use of undeclared identifier 'memcpy'
memcpy(tmp, path, path_length);
^
../StdLibExtras.h:18:50: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_copy(u32* dest, const u32* src, size_t count)
^
../StdLibExtras.h:18:67: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_copy(u32* dest, const u32* src, size_t count)
^
../StdLibExtras.h:33:50: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_fill(u32* dest, u32 value, size_t count)
^
../StdLibExtras.h:18:50: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_copy(u32* dest, const u32* src, size_t count)
^
../StdLibExtras.h:33:61: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_fill(u32* dest, u32 value, size_t count)
^
../StdLibExtras.h:42:18: error: unknown type name 'u32'
../StdLibExtras.h:18:67: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_copy(u32* dest, const u32* src, size_t count)
^
In file included from ../StringView.cpp:1:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
In file included from ../../AK/RefCounted.h:4:
../StdLibExtras.h:7:14: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
../StdLibExtras.h:33:50: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_fill(u32* dest, u32 value, size_t count)
^
In file included from ../String.cpp:1:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
../../AK/RefCounted.h:9:102: error: use of undeclared identifier 'TrueType'
constexpr auto call_will_be_destroyed_if_present(T* object) -> decltype(object->will_be_destroyed(), TrueType {})
^
../StdLibExtras.h:33:61: error: unknown type name 'u32'
[[gnu::always_inline]] inline void fast_u32_fill(u32* dest, u32 value, size_t count)
^
../StdLibExtras.h:42:18: error: unknown type name 'u32'
inline constexpr u32 round_up_to_power_of_two(u32 value, u32 power_of_two)
^
inline constexpr u32 round_up_to_power_of_two(u32 value, u32 power_of_two)
^
../../AK/RefCounted.h:15:58: error: unknown type name 'FalseType'
constexpr auto call_will_be_destroyed_if_present(...) -> FalseType
^
../StdLibExtras.h:42:47: error: unknown type name 'u32'
inline constexpr u32 round_up_to_power_of_two(u32 value, u32 power_of_two)
^
In file included from ../LogStream.cpp:1:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
In file included from ../../AK/RefCounted.h:4:
../StdLibExtras.h:7:14: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
../StdLibExtras.h:42../../AK/RefCounted.h:21:92: error: use of undeclared identifier 'TrueType'
constexpr auto call_one_ref_left_if_present(T* object) -> decltype(object->one_ref_left(), TrueType {})
^
../../AK/RefCounted.h:27:53: error: unknown type name 'FalseType'
constexpr auto call_one_ref_left_if_present(...) -> FalseType
:58: error: unknown type name 'u32'
^
inline constexpr u32 round_up_to_power_of_two(u32 value, u32 power_of_two)
^
In file included from ../JsonArray.cpp:1:
In file included from ../../AK/JsonArray.h:3:
In file included from ../../AK/JsonArraySerializer.h:3:
In file included from ../../AK/JsonValue.h:3:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
In file included from ../../AK/RefCounted.h:4:
../StdLibExtras.h:7:14: warning: ../StdLibExtras.h:non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
42:47: error: unknown type name 'u32'
inline constexpr u32 round_up_to_power_of_two(u32 value, u32 power_of_two)
^
../StdLibExtras.h:42:58: error: unknown type name 'u32'
inline constexpr u32 round_up_to_power_of_two(u32 value, u32 power_of_two)
^
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
../../AK/RefCounted.h:9:102: error: use of undeclared identifier 'TrueType'
In file included from ../JsonObject.cpp:1:
In file included from ../../AK/JsonObject.h:3:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:5:
In file included from ../../AK/RefCounted.h:4:
../StdLibExtras.h:7:14: warning: non-portable path to file '<String.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
# include <string.h>
^~~~~~~~~~
<String.h>
In file included from ../String.cpp:1:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:6:
../../AK/RefPtr.h:94:11: error: no member named 'swap' in the global namespace
::swap(m_ptr, other.m_ptr);
~~^
In file included from ../StringBuilder.cpp:1:
In file included from ../../AK/PrintfImplementation.h:5:
In file included from ../../AK/Types.h:4:
In file included from ../../AK/Platform.h:31:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:6:
../../AK/RefPtr.h:84:17: error: no type named 'nullptr_t' in namespace 'std'
RefPtr(std::nullptr_t) {}
~~~~~^
In file included from ../StringImpl.cpp:1:
In file included from ../StringImpl.h:3:
In file included from ../../AK/RefPtr.h:4:
In file included from ../../AK/NonnullRefPtr.h:5:
In file included from ../../AK/Types.h:4:
In file included from ../../AK/Platform.h:31:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:15:12: error: no template named 'NonnullRefPtr'
static NonnullRefPtr<ByteBufferImpl> create_uninitialized(int size);
^
../../AK/RefPtr.h:167:28: error: no type named 'nullptr_t' in namespace 'std'
RefPtr& operator=(std::nullptr_t)
~~~~~^
In file included from ../String.cpp:1:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:90:18: error: use of undeclared identifier 'move'
: m_impl(move(other.m_impl))
^
../../AK/RefPtr.h:224:26: error: no type named 'nullptr_t' in namespace 'std'
../../AK/ByteBuffer.h:16:12: error: no template named 'NonnullRefPtr'
bool operator==(std::nullptr_t) const { return !m_ptr; }
~~~~~^
static NonnullRefPtr<ByteBufferImpl> create_zeroed(int);
^
../../AK/ByteBuffer.h:96:22: error: use of undeclared identifier 'move'
m_impl = move(other.m_impl);
^
../../AK/RefPtr.h:225:26: error: no type named 'nullptr_t' in namespace 'std'
bool operator!=(std::nullptr_t) const { return m_ptr; }
~~~~~^
../../AK/ByteBuffer.h:17:12: error: no template named 'NonnullRefPtr'
static NonnullRefPtr<ByteBufferImpl> copy(const void*, int);
^
../../AK/ByteBuffer.h:18:12: error: no template named 'NonnullRefPtr'
static NonnullRefPtr<ByteBufferImpl> wrap(void*, int);
^
../../AK/ByteBuffer.h:193:9: error: use of undeclared identifier 'memcpy'
memcpy(pointer() + old_size, data, data_size);
^
In file included from ../StringBuilder.cpp:1:
In file included from ../../AK/PrintfImplementation.h:5:
In file included from ../../AK/Types.h:4:
In file included from ../../AK/Platform.h:31:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:33:5: error: unknown type name 'u8'
u8& operator[](int i)
^
../../AK/ByteBuffer.h:198:18: error: use of undeclared identifier 'move'
: m_impl(move(impl))
^
../../AK/ByteBuffer.h:38:11: error: unknown type name 'u8'
const u8& operator[](int i) const
^
constexpr auto call_will_be_destroyed_if_present(T* object) -> decltype(object->will_be_destroyed(), TrueType {})
^
../../AK/ByteBuffer.h:19:12: error: no template named 'NonnullRefPtr'
../../AK/ByteBuffer.h:46:5: error: unknown type name 'u8'
u8* pointer() { return m_data; }
^
../../AK/ByteBuffer.h:217:5: error: use of undeclared identifier 'memcpy'
memcpy(m_data, data, size);
^
../../AK/ByteBuffer.h:47:11: error: unknown type name 'u8'
const u8* pointer() const { return m_data; }
^
../../AK/ByteBuffer.h:49:5: error: unknown type name 'u8'In file included from ../JsonArray.cpp:1:
In file included from ../../AK/JsonArray.h:3:
In file included from ../../AK/RefCounted.h:15:58: error: unknown type name 'FalseType'
constexpr auto call_will_be_destroyed_if_present(...) -> FalseType
^
../../AK/ByteBuffer.h:237:5: error: use of undeclared identifier 'memcpy'
memcpy(new_data, m_data, m_size);
^
../../AK/JsonArraySerializer.h:3:
In file included from ../../AK/JsonValue.h:3:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:193:9: error: use of undeclared identifier 'memcpy'
../../AK/RefCounted.h:21:92: error: use of undeclared identifier 'TrueType'
memcpy(pointer() + old_size, data, data_size);
^
u8* offset_pointer(int offset) { return m_data + offset; }
^
../../AK/ByteBuffer.h:50:11: error: unknown type name 'u8'
const u8* offset_pointer(int offset) const { return m_data + offset; }
^
../../AK/ByteBuffer.h:252:5: error: use of undeclared identifier 'memset'
memset(buffer->pointer(), 0, size);
^
../../AK/ByteBuffer.h:76:5: error: unknown type name 'u8'
u8* m_data { nullptr };
^
../../AK/ByteBuffer.h:217:5: error: use of undeclared identifier 'memcpy'
memcpy(m_data, data, size);
^
In file included from ../JsonObject.cpp:1:
In file included from ../../AK/JsonObject.h:3:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:193:9: error: use of undeclared identifier 'memcpy'
memcpy(pointer() + old_size, data, data_size);
^
../../AK/ByteBuffer.h:84:21: error: no type named 'nullptr_t' in namespace 'std'
ByteBuffer(std::nullptr_t) {}
~~~~~^
../../AK/ByteBuffer.h:237:5: error: use of undeclared identifier 'memcpy'
memcpy(new_data, m_data, m_size);
^
../../AK/ByteBuffer.h:217:5: error: use of undeclared identifier 'memcpy'
fatal error: memcpy(m_data, data, size);
^
static NonnullRefPtr<ByteBufferImpl> wrap(const void*, int);
^
In file included from ../LogStream.cpp:1:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:193:9: error: use of undeclared identifier 'memcpy'
memcpy(pointer() + old_size, data, data_size);
^
../../AK/ByteBuffer.h:252:5: error: use of undeclared identifier 'memset'
memset(buffer->pointer(), 0, size);
^
too many errors emitted, stopping now [-ferror-limit=]
constexpr auto call_one_ref_left_if_present(T* object) -> decltype(object->one_ref_left(), TrueType {})
^
../../AK/ByteBuffer.h:20:12: error: no template named 'NonnullRefPtr'
static NonnullRefPtr<ByteBufferImpl> adopt(void*, int);
^
../../AK/ByteBuffer.h:217:5: error: use of undeclared identifier 'memcpy'
memcpy(m_data, data, size);
^
../../AK/ByteBuffer.h:33:5: error: unknown type name 'u8'
u8& operator[](int i)
^
../../AK/RefCounted.h:27:53: error: unknown type name 'FalseType'
constexpr auto call_one_ref_left_if_present(...) -> FalseType
^
../../AK/ByteBuffer.h:237:5: error: use of undeclared identifier 'memcpy'
memcpy(new_data, m_data, m_size);
../../AK/ByteBuffer.h ^
:38:11: error: unknown type name 'u8'
const u8& operator[](int i) const
^
../../AK/ByteBuffer.h:237:5: error: use of undeclared identifier 'memcpy'
memcpy(new_data, m_data, m_size);
^
../../AK/ByteBuffer.h:46:5: error: unknown type name 'u8'
u8* pointer() { return m_data; }
^
../../AK/ByteBuffer.h:252:5: error: use of undeclared identifier 'memset'
../../AK/ByteBuffer.h:47:11: error: unknown type name 'u8'
memset(buffer->pointer(), 0, size);
^
const u8* pointer() const { return m_data; }
^
In file included from ../StringView.cpp:1:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:193:9: error: use of undeclared identifier 'memcpy'
../../AK/ByteBuffer.h:252:5../../AK/ByteBuffer.h:49:5: error: unknown type name 'u8'
: error: use of undeclared identifier 'memset' memcpy(pointer() + old_size, data, data_size);
^
u8* offset_pointer(int offset) { return m_data + offset; }
^
../../AK/ByteBuffer.h:50:11: error: unknown type name 'u8'
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:3:
In file included from ../../AK/ByteBuffer.h:6:
../../AK/RefPtr.h:94:11: error: no member named 'swap' in the global namespace
::swap(m_ptr, other.m_ptr);
~~^
../../AK/ByteBuffer.h:217:5: error: use of undeclared identifier 'memcpy'
memcpy(m_data, data, size);
^
../../AK/ByteBuffer.h:237:5: error: use of undeclared identifier 'memcpy'
memcpy(new_data, m_data, m_size);
^
const u8* offset_pointer(int offset) const { return m_data + offset; }
^
../../AK/ByteBuffer.h:252:5: error: use of undeclared identifier 'memset'
memset(buffer->pointer(), 0, size);
^
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:3:
../../AK/ByteBuffer.h:90fatal error: too many errors emitted, stopping now [-ferror-limit=]
:18: error: use of undeclared identifier 'move'
: m_impl(move(other.m_impl))
^
../../AK/ByteBuffer.h:96:22: error: use of undeclared identifier 'move'
m_impl = move(other.m_impl);
^
../../AK/ByteBuffer.h:193:9: error: use of undeclared identifier 'memcpy'
memset(buffer->pointer(), 0, size);
^
memcpy(pointer() + old_size, data, data_size);
^
../../AK/ByteBuffer.h:198:18: error: use of undeclared identifier 'move'
: m_impl(move(impl))
^
../../AK/ByteBuffer.h:217:5: error: use of undeclared identifier 'memcpy'
memcpy(m_data, data, size);
^
../../AK/ByteBuffer.h:237:5: error: use of undeclared identifier 'memcpy'
memcpy(new_data, m_data, m_size);
^
../../AK/ByteBuffer.h:252:5: error: use of undeclared identifier 'memset'
memset(buffer->pointer(), 0, size);
^
In file included from ../JsonArray.cpp:1:
In file included from ../../AK/JsonArray.h:3:
In file included from ../../AK/JsonArraySerializer.h:3:
In file included from ../../AK/JsonValue.h:3:
In file included from ../string.h:6:
../../AK/StringView.h:78:28: error: use of undeclared identifier 'strlen'
int other_length = strlen(cstring);
^
../../AK/StringView.h:81:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, cstring, m_length);
^
../../AK/StringView.h:98:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, other.m_characters, m_length);
^
In file included from ../String.cpp:1:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:6:
In file included from ../../AK/StringView.h:3:
../../AK/Vector.h:76:37: error: no member named 'move' in namespace 'AK'; did you mean simply 'move'?
new (&destination[i]) T(AK::move(source[i]));
^~~~~~~~
move
../../AK/Vector.h:69:17: note: 'move' declared here
static void move(T* destination, T* source, size_t count)
^
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:6:
In file included from ../../AK/StringView.h:3:
../../AK/Vector.h:76:37: error: no member named 'move' in namespace 'AK'; did you mean simply 'move'?
new (&destination[i]) T(AK::move(source[i]));
^~~~~~~~
move
../../AK/Vector.h:In file included from ../JsonArray.cpp:1:
In file included from ../../AK/JsonArray.h:3:
In file included from ../../AK/JsonArraySerializer.h:3:
In file included from ../../AK/JsonValue.h:3:
../string.h:155:17: error: 69:17: note: 'move' declared here
use of undeclared identifier 'strcmp'
static void move(T* destination, T* source, size_t count)
^
return !strcmp(characters(), cstring);
^
2../string.h:218:13: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, string.characters(), m_length);
^In file included from ../LogStream.cpp:1:
In file included from warnings and 20 errors generated.
../string.h:6:
../../AK/StringView.h:78:28: error: use of undeclared identifier 'strlen'
int other_length = strlen(cstring);
^
../../AK/Vector.h:372:30: error: no template named 'forward'; did you mean 'std::forward'?
new (slot(m_size)) T(forward<Args>(args)...);
^~~~~~~
std::forward
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:2297:1: note: 'std::forward' declared here
forward(typename remove_reference<_Tp>::type& __t) _NOEXCEPT
^
../../AK/StringView.h:81:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, cstring, m_length);
^
../../AK/Vector.h:372:30: error: no template named 'forward'; did you mean 'std::forward'?
new (slot(m_size)) T(forward<Args>(args)...);
^~~~~~~
std::forward
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:2297:1: note: 'std::forward' declared here
forward(typename remove_reference<_Tp>::type& __t) _NOEXCEPT
^
In file included from ../String.cpp:1:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:6:
In file included from ../../AK/StringView.h:3:
../../AK/Vector.h../string.h:241::372:30: error: no template named 'forward'; did you mean 'std::forward'?
12: error: use of undeclared identifier 'strcmp'
new (slot(m_size)) T(forward<Args>(args)...);
^~~~~~~
std::forward
return strcmp(characters, string.characters()) < 0;
^
../../AK/StringView.h:98:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, other.m_characters, m_length);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:2297:1: note: 'std::forward' declared here
In file included from ../JsonObject.cpp:1:
In file included from ../../AK/JsonObject.h:3:
In file included from ../string.h:6:
../../AK/StringView.h:78:forward(typename remove_reference<_Tp>::type& __t) _NOEXCEPT
^
28: error: use of undeclared identifier 'strlen'
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:6:
In file included from ../../AK/StringView.h:3:
../../AK/Vector.h:372:30: error: no template named 'forward'; did you mean 'std::forward'?
new (slot(m_size)) T(forward<Args>(args)...);
^~~~~~~
std::forward
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:2297:1: note: 'std::forward' declared here
forward(typename remove_reference<_Tp>::type& __t) _NOEXCEPT
^
int other_length = strlen(cstring);
^
In file included from ../StringView.cpp:1:
In file included from ../string.h:6:
../../AK/StringView.h:78:28: error: use of undeclared identifier 'strlen'
int other_length = strlen(cstring);
^
In file included from ../String.cpp:1:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:6:
In file included from ../../AK/StringView.h:3:
../../AK/Vector.h:532:16: error: use of undeclared identifier 'max'
return max(int(4), capacity + (capacity / 4) + 4);
^
../string.h:257:12: error: use of undeclared identifier 'strcmp'
return strcmp(characters, string.characters()) > 0;
^
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../StdLibExtras.h:7:
In file included from ../../AK/StringView.h:81:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, cstring, m_length);
^
../string.h:6:
In file included from ../../AK/StringView.h:3:
../../AK/Vector.h:532:16: error: use of undeclared identifier 'max'
return max(int(4), capacity + (capacity / 4) + 4);
^
make: *** [Makefile:20: ../StringBuilder.o] Error 1
make: *** Waiting for unfinished jobs....
../../AK/StringView.h:81:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, cstring, m_length);
^
../../AK/StringView.h:98:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, other.m_characters, m_length);
^
In file included from ../String.cpp:1:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:6:
../../AK/StringView.h:78:28: error: use of undeclared identifier 'strlen'
int other_length = strlen(cstring);
^
In file included from ../LogStream.cpp:1:
../string.h:155:17: error: use of undeclared identifier 'strcmp'
return !strcmp(characters(), cstring);
^
../../AK/StringView.h:98:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, other.m_characters, m_length);
^
../../AK/StringView.h:81:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, cstring, m_length);
^
../string.h:218:13: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, string.characters(), m_length);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
../string.h:241:12: error: use of undeclared identifier 'strcmp'
return strcmp(characters, string.characters()) < 0;
^
../string.h:257:12: error: use of undeclared identifier 'strcmp'
return strcmp(characters, string.characters()) > 0;
^
In file included from ../JsonObject.cpp:1:
In file included from ../../AK/JsonObject.h:3:
../string.h:155:17: error: use of undeclared identifier 'strcmp'
return !strcmp(characters(), cstring);
^
In file included from TestString.cpp:1:
In file included from ../../AK/TestSuite.h:15:
In file included from ../../AK/Function.h:29:
In file included from ../OwnPtr.h:3:
In file included from ../../AK/NonnullOwnPtr.h:5:
In file included from ../StdLibExtras.h:7:
In file included from ../string.h:6:
../../AK/StringView.h:78:28: error: use of undeclared identifier 'strlen'
int other_length = strlen(cstring);
^
In file included from ../StringView.cpp:1:
../string.h:155:17: error: use of undeclared identifier 'strcmp'../../AK/StringView.h:81:17: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, cstring, m_length);
^
../string.h:218:13: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, string.characters(), m_length);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
return !strcmp(characters(), cstring);
^
2 warnings and 20 errors generated.
../string.h:241:12: error: use of undeclared identifier 'strcmp'
return strcmp(characters, string.characters()) < 0;
^
2 warnings and 12 errors generated.
../string.h:218:13: error: use of undeclared identifier 'memcmp'
return !memcmp(m_characters, string.characters(), m_length);
^
../string.h:241:12: error: use of undeclared identifier 'strcmp'
return strcmp(characters, string.characters()) < 0;
^
2 warnings and 20 errors generated.
../string.h:257:12: error: use of undeclared identifier 'strcmp'
return strcmp(characters, string.characters()) > 0;
^
make: *** [Makefile:20: ../StringImpl.o] Error 1
2 warnings and 12 errors generated.
make: *** [Makefile:20: ../LogStream.o] Error 1
../StringView.cpp:53:13: error: use of undeclared identifier 'memcmp'
return !memcmp(characters_without_null_termination(), str.characters_without_null_termination(), str.length());
^
../string.h:257:12: error: use of undeclared identifier 'strcmp'
return strcmp(characters, string.characters()) > 0;
^
make: *** [Makefile:20: ../String.o] Error 1
make: *** [Makefile:20: ../JsonArray.o] Error 1
2 warnings and 13 errors generated.
make: *** [Makefile:20: ../StringView.o] Error 1
2 warnings and 12 errors generated.
make: *** [Makefile:20: ../JsonObject.o] Error 1
2 warnings and 20 errors generated.
make: *** [Makefile:20: TestString.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment