diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-24 17:28:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-24 17:28:09 +0300 |
commit | 0c0b248bc88a606a37f204fcb6bc3a1b9c62464f (patch) | |
tree | c0a75ed395de06572590092aeceb9e72da1f1598 /libs/libjson | |
parent | 8b91e6423697f9e76051b4b43c8463baee16ea94 (diff) |
SINT64_PARAM support moved into libjson
Diffstat (limited to 'libs/libjson')
-rw-r--r-- | libs/libjson/src/libjson.def | 1 | ||||
-rw-r--r-- | libs/libjson/src/libjson64.def | 1 | ||||
-rw-r--r-- | libs/libjson/src/stdafx.cxx | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/libs/libjson/src/libjson.def b/libs/libjson/src/libjson.def index 258e53e12e..0323f23db1 100644 --- a/libs/libjson/src/libjson.def +++ b/libs/libjson/src/libjson.def @@ -209,3 +209,4 @@ json_write_formatted @191 ??8JSONNode@@QBE_N_K@Z @206 NONAME
??9JSONNode@@QBE_N_J@Z @207 NONAME
??9JSONNode@@QBE_N_K@Z @208 NONAME
+??6@YGAAVJSONNode@@AAV0@ABUSINT64_PARAM@@@Z @209 NONAME
diff --git a/libs/libjson/src/libjson64.def b/libs/libjson/src/libjson64.def index a79e46e4e6..549cfb0904 100644 --- a/libs/libjson/src/libjson64.def +++ b/libs/libjson/src/libjson64.def @@ -209,3 +209,4 @@ json_write_formatted @191 ??8JSONNode@@QEBA_N_K@Z @206 NONAME
??9JSONNode@@QEBA_N_J@Z @207 NONAME
??9JSONNode@@QEBA_N_K@Z @208 NONAME
+??6@YAAEAVJSONNode@@AEAV0@AEBUSINT64_PARAM@@@Z @209 NONAME
diff --git a/libs/libjson/src/stdafx.cxx b/libs/libjson/src/stdafx.cxx index d4f920a7c3..a3f9c5951e 100644 --- a/libs/libjson/src/stdafx.cxx +++ b/libs/libjson/src/stdafx.cxx @@ -32,6 +32,13 @@ LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT64_PARAM ¶m) return json;
}
+LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const SINT64_PARAM ¶m)
+{
+ char str[40];
+ _i64toa(param.iValue, str, 10);
+ return json << CHAR_PARAM(param.szName, str);
+}
+
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const BOOL_PARAM ¶m)
{
json.push_back(JSONNode(param.szName, param.bValue));
|