Skip to content

Instantly share code, notes, and snippets.

View fujii's full-sized avatar

Fujii Hironori fujii

View GitHub Profile
@fujii
fujii / UnifiedSource186-showincludes.txt
Created November 20, 2017 09:46
Result of /showincludes of UnifiedSource186.cpp
1>------ ビルド開始: プロジェクト: WebCore (WebCore\WebCore), 構成: Debug x64 ------
1>UnifiedSource186.cpp
1>メモ: インクルード ファイル: C:\webkit\ga\Source\WebCore\css/DOMCSSNamespace.cpp
1>メモ: インクルード ファイル: C:\webkit\ga\Source\WebCore\config.h
1>メモ: インクルード ファイル: C:\webkit\ga\WebKitBuild\Debug\DerivedSources\PAL\PALHeaderDetection.h
1>メモ: インクルード ファイル: C:\webkit\ga\Source\WebCore\platform\PlatformExportMacros.h
1>メモ: インクルード ファイル: C:\webkit\ga\WebKitBuild\Debug\DerivedSources\ForwardingHeaders\wtf/ExportMacros.h
1>メモ: インクルード ファイル: C:\webkit\ga\Source\WebCore\PAL\pal/ExportMacros.h
1>メモ: インクルード ファイル: C:\webkit\ga\Source\WebCore\ForwardingHeaders\runtime/JSExportMacros.h
1>メモ: インクルード ファイル: C:\webkit\ga\WebKitBuild\Debug\DerivedSources\ForwardingHeaders\JavaScriptCore/JSExportMacros.h
@fujii
fujii / bn_asm.c
Created December 12, 2017 09:34
cl /O2 -c bn_asm.c (cl.exe version 19.12.25830.2 never finish compiling)
/* $OpenBSD: bn_asm.c,v 1.15 2017/05/02 03:59:44 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
@fujii
fujii / first-build-log.txt
Created December 22, 2017 08:16
WebKit WinCairo port build logs
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Debug/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Debug/Source/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Debug/Source/WTF/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Debug/Source/WTF/wtf/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Debug/Source/JavaScriptCore/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Debug/Source/JavaScriptCore/shell/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/webkit/gb/WebKitBuild/Debug/Source/ThirdParty/ANGLE/CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run
@fujii
fujii / a.cpp
Created January 25, 2018 05:04
MSVC template friend class issue
namespace WTF {
template<typename T> class NeverDestroyed {
public:
NeverDestroyed() {
new T;
}
};
crash log for WebKitWebProcess (pid 80205):
[New LWP 80205]
[New LWP 80211]
[New LWP 80214]
[New LWP 80210]
[New LWP 80250]
[New LWP 80215]
[New LWP 80217]
[New LWP 80248]
crash log for WebKitWebProcess (pid 51594):
[New LWP 51594]
[New LWP 51602]
[New LWP 51606]
[New LWP 51604]
[New LWP 51645]
[New LWP 51641]
[New LWP 51607]
[New LWP 51639]
@fujii
fujii / gtkdoc-mkdb.patch
Created February 20, 2018 07:59
Patch for gtk-doc 1.25
--- gtkdoc-mkdb.orig 2017-05-02 05:45:20.000000000 -0700
+++ gtkdoc-mkdb 2018-02-19 23:55:07.865360274 -0800
@@ -3809,7 +3809,10 @@
}
}
- my $pad1 = " " x (24 - length ($name));
+ my $pad1 = "";
+ if (length ($name) < 24) {
+ my $pad1 = " " x (24 - length ($name));
cmake_minimum_required(VERSION 3.0)
add_library(WebCore STATIC foo.c)
add_custom_command(TARGET WebCore PRE_LINK COMMAND ${CMAKE_COMMAND} -E echo hello)
add_executable(TestWebCore main.c)
target_link_libraries(TestWebCore WebCore)
#include <cstddef>
#include <utility>
#include <cstdint>
#define ALWAYS_INLINE inline
#define bitwise_cast reinterpret_cast
namespace WTF {
using PoisonedBits = uintptr_t;
+ /home/fujii/work/webkit/ga/Tools/jhbuild/jhbuild-wrapper --gtk run cmake -DPORT="GTK" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -G Ninja -DSHOW_BINDINGS_GENERATION_PROGRESS=1 -DDEVELOPER_MODE=ON -DENABLE_EXPERIMENTAL_FEATURES=ON "/home/fujii/work/webkit/ga"
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/clang-5.0
-- Check for working C compiler: /usr/bin/clang-5.0 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++-5.0