Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
50888671
提交
50888671
authored
11月 17, 2019
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Upgrade C++ json dep to 3.7.3
上级
1d24755c
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
30 行增加
和
23 行删除
+30
-23
CMakeLists.txt
worker/deps/json/CMakeLists.txt
+1
-1
ChangeLog.md
worker/deps/json/ChangeLog.md
+11
-0
json.hpp
worker/deps/json/include/nlohmann/json.hpp
+8
-10
meson.build
worker/deps/json/meson.build
+1
-1
json.hpp
worker/deps/json/single_include/nlohmann/json.hpp
+8
-10
get-dep.sh
worker/scripts/get-dep.sh
+1
-1
没有找到文件。
worker/deps/json/CMakeLists.txt
浏览文件 @
50888671
...
...
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.1)
## PROJECT
## name and version
##
project
(
nlohmann_json VERSION 3.7.
2
LANGUAGES CXX
)
project
(
nlohmann_json VERSION 3.7.
3
LANGUAGES CXX
)
##
## INCLUDE
...
...
worker/deps/json/ChangeLog.md
浏览文件 @
50888671
# Change Log
All notable changes to this project will be documented in this file. This project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
## [v3.7.3](https://github.com/nlohmann/json/releases/tag/v3.7.3) (2019-11-17)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v3.7.2...v3.7.3
)
-
Project branches
[
\#1839
](
https://github.com/nlohmann/json/issues/1839
)
-
Quadratic destruction complexity introduced in
\#
1436
[
\#1837
](
https://github.com/nlohmann/json/issues/1837
)
-
Trying to open a file
[
\#1814
](
https://github.com/nlohmann/json/issues/1814
)
-
Comparing data type with value
\_
t::number
\_
integer fails
[
\#1783
](
https://github.com/nlohmann/json/issues/1783
)
-
CMake version config file is architecture-dependent
[
\#1697
](
https://github.com/nlohmann/json/issues/1697
)
-
Fix quadratic destruction complexity
[
\#1838
](
https://github.com/nlohmann/json/pull/1838
)
(
[nickaein](https://github.com/nickaein
)
)
## [v3.7.2](https://github.com/nlohmann/json/releases/tag/v3.7.2) (2019-11-10)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v3.7.1...v3.7.2
)
...
...
worker/deps/json/include/nlohmann/json.hpp
浏览文件 @
50888671
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 3.7.
2
| | |__ | | | | | | version 3.7.
3
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
@@ -32,7 +32,7 @@ SOFTWARE.
#define NLOHMANN_JSON_VERSION_MAJOR 3
#define NLOHMANN_JSON_VERSION_MINOR 7
#define NLOHMANN_JSON_VERSION_PATCH
2
#define NLOHMANN_JSON_VERSION_PATCH
3
#include <algorithm> // all_of, find, for_each
#include <cassert> // assert
...
...
@@ -953,7 +953,7 @@ class basic_json
object
=
nullptr
;
// silence warning, see #821
if
(
JSON_HEDLEY_UNLIKELY
(
t
==
value_t
::
null
))
{
JSON_THROW
(
other_error
::
create
(
500
,
"961c151d2e87f2686a955a9be24d316f1362bf21 3.7.
2
"
));
// LCOV_EXCL_LINE
JSON_THROW
(
other_error
::
create
(
500
,
"961c151d2e87f2686a955a9be24d316f1362bf21 3.7.
3
"
));
// LCOV_EXCL_LINE
}
break
;
}
...
...
@@ -1010,14 +1010,13 @@ class basic_json
else
if
(
t
==
value_t
::
object
)
{
stack
.
reserve
(
object
->
size
());
for
(
auto
&&
it
:
*
object
)
{
stack
.
push_back
(
std
::
move
(
it
.
second
));
}
}
while
(
!
stack
.
empty
())
while
(
not
stack
.
empty
())
{
// move the last item to local variable to be processed
basic_json
current_item
(
std
::
move
(
stack
.
back
()));
...
...
@@ -1027,8 +1026,6 @@ class basic_json
// its children to the stack to be processed later
if
(
current_item
.
is_array
())
{
stack
.
reserve
(
stack
.
size
()
+
current_item
.
m_value
.
array
->
size
());
std
::
move
(
current_item
.
m_value
.
array
->
begin
(),
current_item
.
m_value
.
array
->
end
(),
std
::
back_inserter
(
stack
));
...
...
@@ -1036,15 +1033,16 @@ class basic_json
}
else
if
(
current_item
.
is_object
())
{
stack
.
reserve
(
stack
.
size
()
+
current_item
.
m_value
.
object
->
size
());
for
(
auto
&&
it
:
*
current_item
.
m_value
.
object
)
{
stack
.
push_back
(
std
::
move
(
it
.
second
));
}
current_item
.
m_value
.
object
->
clear
();
}
// current_item is destroyed here
// it's now safe that current_item get destructed
// since it doesn't have any children
}
switch
(
t
)
...
...
worker/deps/json/meson.build
浏览文件 @
50888671
project('nlohmann_json',
'cpp',
version : '3.7.
2
',
version : '3.7.
3
',
license : 'MIT',
)
...
...
worker/deps/json/single_include/nlohmann/json.hpp
浏览文件 @
50888671
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 3.7.
2
| | |__ | | | | | | version 3.7.
3
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
@@ -32,7 +32,7 @@ SOFTWARE.
#define NLOHMANN_JSON_VERSION_MAJOR 3
#define NLOHMANN_JSON_VERSION_MINOR 7
#define NLOHMANN_JSON_VERSION_PATCH
2
#define NLOHMANN_JSON_VERSION_PATCH
3
#include <algorithm> // all_of, find, for_each
#include <cassert> // assert
...
...
@@ -15496,7 +15496,7 @@ class basic_json
object
=
nullptr
;
// silence warning, see #821
if
(
JSON_HEDLEY_UNLIKELY
(
t
==
value_t
::
null
))
{
JSON_THROW
(
other_error
::
create
(
500
,
"961c151d2e87f2686a955a9be24d316f1362bf21 3.7.
2
"
));
// LCOV_EXCL_LINE
JSON_THROW
(
other_error
::
create
(
500
,
"961c151d2e87f2686a955a9be24d316f1362bf21 3.7.
3
"
));
// LCOV_EXCL_LINE
}
break
;
}
...
...
@@ -15553,14 +15553,13 @@ class basic_json
else
if
(
t
==
value_t
::
object
)
{
stack
.
reserve
(
object
->
size
());
for
(
auto
&&
it
:
*
object
)
{
stack
.
push_back
(
std
::
move
(
it
.
second
));
}
}
while
(
!
stack
.
empty
())
while
(
not
stack
.
empty
())
{
// move the last item to local variable to be processed
basic_json
current_item
(
std
::
move
(
stack
.
back
()));
...
...
@@ -15570,8 +15569,6 @@ class basic_json
// its children to the stack to be processed later
if
(
current_item
.
is_array
())
{
stack
.
reserve
(
stack
.
size
()
+
current_item
.
m_value
.
array
->
size
());
std
::
move
(
current_item
.
m_value
.
array
->
begin
(),
current_item
.
m_value
.
array
->
end
(),
std
::
back_inserter
(
stack
));
...
...
@@ -15579,15 +15576,16 @@ class basic_json
}
else
if
(
current_item
.
is_object
())
{
stack
.
reserve
(
stack
.
size
()
+
current_item
.
m_value
.
object
->
size
());
for
(
auto
&&
it
:
*
current_item
.
m_value
.
object
)
{
stack
.
push_back
(
std
::
move
(
it
.
second
));
}
current_item
.
m_value
.
object
->
clear
();
}
// current_item is destroyed here
// it's now safe that current_item get destructed
// since it doesn't have any children
}
switch
(
t
)
...
...
worker/scripts/get-dep.sh
浏览文件 @
50888671
...
...
@@ -55,7 +55,7 @@ function get_gyp()
function
get_json
()
{
GIT_REPO
=
"https://github.com/nlohmann/json.git"
GIT_TAG
=
"v3.7.
2
"
GIT_TAG
=
"v3.7.
3
"
DEST
=
"deps/json"
get_dep
"
${
GIT_REPO
}
"
"
${
GIT_TAG
}
"
"
${
DEST
}
"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论