]> git.proxmox.com Git - mirror_qemu.git/commitdiff
json: Update references to RFC 7159 to RFC 8259
authorMarkus Armbruster <armbru@redhat.com>
Thu, 23 Aug 2018 16:40:25 +0000 (18:40 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 24 Aug 2018 18:27:14 +0000 (20:27 +0200)
RFC 8259 (December 2017) obsoletes RFC 7159 (March 2014).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180823164025.12553-59-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/qapi/qmp/qnum.h
qapi/introspect.json
qobject/json-parser.c

index 45bf02a036b366e56fe1efa5dada32c8b44e92f8..bbae0a5ec8a28095bec5a0fe1ce928267bb9b087 100644 (file)
@@ -25,7 +25,7 @@ typedef enum {
 
 /*
  * QNum encapsulates how our dialect of JSON fills in the blanks left
- * by the JSON specification (RFC 7159) regarding numbers.
+ * by the JSON specification (RFC 8259) regarding numbers.
  *
  * Conceptually, we treat number as an abstract type with three
  * concrete subtypes: floating-point, signed integer, unsigned
index 137b39b992b36cf371a3fff5761429f1d3558314..3d22166b2b9d9f566fd417fef543a848b87c2c6e 100644 (file)
 ##
 # @JSONType:
 #
-# The four primitive and two structured types according to RFC 7159
+# The four primitive and two structured types according to RFC 8259
 # section 1, plus 'int' (split off 'number'), plus the obvious top
 # type 'value'.
 #
index 3318b8dad04f5bbdd4533477c1d352290a766dc5..5a840dfd860735d3f7a2bea8b91cfb2dbc01e6d9 100644 (file)
@@ -516,7 +516,7 @@ static QObject *parse_literal(JSONParserContext *ctxt)
     }
     case JSON_FLOAT:
         /* FIXME dependent on locale; a pervasive issue in QEMU */
-        /* FIXME our lexer matches RFC 7159 in forbidding Inf or NaN,
+        /* FIXME our lexer matches RFC 8259 in forbidding Inf or NaN,
          * but those might be useful extensions beyond JSON */
         return QOBJECT(qnum_from_double(strtod(token->str, NULL)));
     default: