Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
5e74a88d
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
5e74a88d
编写于
2月 13, 2018
作者:
W
wanderingbort
提交者:
GitHub
2月 13, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1367 from EOSIO/stltest-cleanup
Stltest cleanup
上级
9459ed1c
d6095f43
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
28 addition
and
17 deletion
+28
-17
contracts/eosiolib/eosiolib.cpp
contracts/eosiolib/eosiolib.cpp
+3
-1
contracts/libc++/upstream
contracts/libc++/upstream
+1
-1
contracts/musl/CMakeLists.txt
contracts/musl/CMakeLists.txt
+8
-3
contracts/musl/upstream
contracts/musl/upstream
+1
-1
contracts/stltest/stltest.cpp
contracts/stltest/stltest.cpp
+12
-10
plugins/txn_test_gen_plugin/CMakeLists.txt
plugins/txn_test_gen_plugin/CMakeLists.txt
+3
-1
未找到文件。
contracts/eosiolib/eosiolib.cpp
浏览文件 @
5e74a88d
...
...
@@ -489,7 +489,9 @@ void* malloc(size_t size)
void
*
calloc
(
size_t
count
,
size_t
size
)
{
return
eosio
::
memory_heap
.
malloc
(
count
*
size
);
void
*
ptr
=
eosio
::
memory_heap
.
malloc
(
count
*
size
);
memset
(
ptr
,
0
,
count
*
size
);
return
ptr
;
}
void
*
realloc
(
void
*
ptr
,
size_t
size
)
...
...
upstream
@
959b01fb
比较
35a26f82
...
959b01fb
Subproject commit
35a26f82dae8b292290815ae6ede8f849ce7806f
Subproject commit
959b01fb8b617851e260bd2218ac8ba74269fec9
contracts/musl/CMakeLists.txt
浏览文件 @
5e74a88d
...
...
@@ -4,18 +4,23 @@ file(GLOB ENV_SOURCES "upstream/src/env/*.c")
file
(
GLOB ERRNO_SOURCES
"upstream/src/errno/*.c"
)
file
(
GLOB EXIT_SOURCES
"upstream/src/exit/*.c"
)
file
(
GLOB LOCALE_SOURCES
"upstream/src/locale/*.c"
)
file
(
GLOB MALLOC_SOURCES
"upstream/src/malloc/*.c"
)
file
(
GLOB MBYTE_SOURCES
"upstream/src/multibyte/*.c"
)
file
(
GLOB MISC_SOURCES
"upstream/src/misc/*.c"
)
file
(
GLOB SEARCH_SOURCES
"upstream/src/search/*.c"
)
file
(
GLOB STDIO_SOURCES
"upstream/src/stdio/*.c"
)
file
(
GLOB STDLIB_SOURCES
"upstream/src/stdlib/*.c"
)
file
(
GLOB STRING_SOURCES
"upstream/src/string/*.c"
)
file
(
GLOB TIME_SOURCES
"upstream/src/time/*.c"
)
file
(
GLOB THREAD_SOURCES
"upstream/src/thread/*.c"
)
#only for __lock __unlock
file
(
GLOB
INTERNAL_SOURCES upstream/src/internal/intscan.c upstream/src/internal/shgetc.c upstream/src/internal/libc.c
)
set
(
INTERNAL_SOURCES upstream/src/internal/intscan.c upstream/src/internal/shgetc.c upstream/src/internal/libc.c
)
add_wast_library
(
TARGET libc
SOURCE_FILES
${
CRYPT_SOURCES
}
${
CTYPE_SOURCES
}
${
ENV_SOURCES
}
${
ERRNO_SOURCES
}
${
EXIT_SOURCES
}
${
INTERNAL_SOURCES
}
${
LOCALE_SOURCES
}
${
MBYTE_SOURCES
}
${
SEARCH_SOURCES
}
${
STDIO_SOURCES
}
${
STDLIB_SOURCES
}
${
STRING_SOURCES
}
${
TIME_SOURCES
}
${
THREAD_SOURCES
}
INCLUDE_FOLDERS
${
CMAKE_SOURCE_DIR
}
/contracts/musl/upstream/include
${
CMAKE_SOURCE_DIR
}
/contracts/musl/upstream/src/internal
${
CMAKE_SOURCE_DIR
}
/contracts/musl/upstream/arch/eos
${
CMAKE_SOURCE_DIR
}
/contracts/
${
MISC_SOURCES
}
${
SEARCH_SOURCES
}
${
STDIO_SOURCES
}
${
STDLIB_SOURCES
}
${
STRING_SOURCES
}
${
TIME_SOURCES
}
${
THREAD_SOURCES
}
INCLUDE_FOLDERS
${
CMAKE_SOURCE_DIR
}
/contracts/musl/upstream/include
${
CMAKE_SOURCE_DIR
}
/contracts/musl/upstream/src/internal
${
CMAKE_SOURCE_DIR
}
/contracts/musl/upstream/arch/eos
${
CMAKE_SOURCE_DIR
}
/contracts/
DESTINATION_FOLDER
${
CMAKE_CURRENT_BINARY_DIR
}
)
upstream
@
ee49ba89
比较
29098b1f
...
ee49ba89
Subproject commit
29098b1f3044e7a9e2c1152028dba08885ea04f
9
Subproject commit
ee49ba896db1de3c3e4f4285eb4e285b641a6cd
9
contracts/stltest/stltest.cpp
浏览文件 @
5e74a88d
...
...
@@ -6,17 +6,13 @@
// include entire libc
#include <alloca.h>
#include <ar.h>
#include <assert.h>
#include <byteswap.h>
#include <cpio.h>
#include <crypt.h>
#include <ctype.h>
#include <elf.h>
#include <endian.h>
#include <errno.h>
#include <features.h>
#include <fnmatch.h>
#include <inttypes.h>
#include <iso646.h>
#include <limits.h>
...
...
@@ -25,8 +21,6 @@
#include <math.h>
#include <memory.h>
#include <monetary.h>
#include <mqueue.h>
#include <regex.h>
#include <search.h>
#include <stdalign.h>
#include <stdarg.h>
...
...
@@ -39,15 +33,11 @@
#include <stdnoreturn.h>
#include <string.h>
#include <strings.h>
#include <stropts.h>
#include <sysexits.h>
#include <tar.h>
#include <uchar.h>
#include <unistd.h>
#include <values.h>
#include <wchar.h>
#include <wctype.h>
#include <wordexp.h>
//include entire libstdc++
#include<algorithm>
...
...
@@ -201,6 +191,10 @@ namespace stltest {
}
};
static
void
f
(
const
char
*
__restrict
,
...)
{
prints
(
"f() called
\n
"
);
}
static
void
on
(
const
message
&
msg
)
{
/* manual initialization of global variable
new(&std::__start_std_streams)std::ios_base::Init;
...
...
@@ -216,8 +210,16 @@ namespace stltest {
prints("\nEOS string: "); prints_l(s2.get_data(), s2.get_size());
*/
prints
(
"STL test start
\n
"
);
/* doesn't work with WASM::serializeWithInjection
printf("stdout output\n", 0);
fprintf(stderr, "stderr output\n", 0);
*/
void
*
ptr
=
malloc
(
10
);
free
(
ptr
);
f
(
"abc"
,
10
,
20
);
//auto mptr = new MSTR();
//delete mptr;
std
::
array
<
uint32_t
,
10
>
arr
;
arr
.
fill
(
3
);
...
...
plugins/txn_test_gen_plugin/CMakeLists.txt
浏览文件 @
5e74a88d
...
...
@@ -8,6 +8,8 @@ target_link_libraries( txn_test_gen_plugin appbase fc http_plugin chain_plugin )
target_include_directories
(
txn_test_gen_plugin PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include"
)
target_include_directories
(
txn_test_gen_plugin PUBLIC
${
CMAKE_BINARY_DIR
}
/contracts
)
add_dependencies
(
txn_test_gen_plugin currency
)
install
(
TARGETS
txn_test_gen_plugin
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录