head 1.2; access; symbols pkgsrc-2018Q1:1.1.0.4 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.2 pkgsrc-2017Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2018.06.08.19.53.30; author nros; state dead; branches; next 1.1; commitid fJMPFrxp6OL2ZvFA; 1.1 date 2017.10.12.18.38.48; author nros; state Exp; branches; next ; commitid MYLrGybOtHVhfNaA; desc @@ 1.2 log @Updated textproc/qore-json-module to version 1.7 . Removed patch-src_ql__json.qpp fixed upstream. Changes from release notes: * deprecated support for the non-published JSON-RPC 1.1 protocol * added support for JSON-RPC 2.0 * added the JsonRpcConnection user module * improved argument error messages with RPC calls in the JsonRpcHandler module * fixed date serialization to use ISO-8601 format (instead of near-ISO-8601 format) * parse_json() now ignores UTF-8 and Unicode BOMs at the start of passed JSON string * fixed a bug in request logging in the JsonRpcHandler module * fixed a bug serializing hash keys with embedded quotes @ text @$NetBSD: patch-src_ql__json.qpp,v 1.1 2017/10/12 18:38:48 nros Exp $ Fix build using c++11 --- src/ql_json.qpp.orig 2017-10-12 17:48:07.000000000 +0000 +++ src/ql_json.qpp @@@@ -474,7 +474,7 @@@@ static int do_json_value(QoreString* str if (vtype == NT_FLOAT) { double f = v.getAsFloat(); // check for nan, +/-inf and serialize as null - if (isnan(f) || isinf(f)) + if (std::isnan(f) || std::isinf(f)) str->concat("null"); else str->sprintf("%.20g", f); @ 1.1 log @Revbump and add patch for building with c++11 because of lang/qore update. @ text @d1 1 a1 1 $NetBSD$ @