Skip to contentSkip to conversation

json-parser: fix formatting of comment

PATCH Applied Paolo Bonzini 3 participants 3 messages Jul 13

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 json-parser: fix formatting of comment

---
 qobject/json-parser.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
qobject/json-parser.c +4 -3
index 5935730c0c7..6b1b4762bda 100644
@@ -29,9 +29,10 @@
  * object, an error, or NULL (if the object is incomplete and no error
  * happened) after every token.  Therefore it has an explicit
  * representation of its parser stack; each stack entry consists of a
- * parser state and a QObject: - a QList, for an array that is being
- * added to - a QDict, for a dictionary that is being added to - a
- * QString, for the key of the next pair that will be added to a QDict
+ * parser state and a QObject:
+ * - a QList, for an array that is being added to
+ * - a QDict, for a dictionary that is being added to
+ * - a QString, for the key of the next pair that will be added to a QDict
  *
  * The stack represents an arbitrary nesting of arrays and dictionaries
  * (whose next key has been parsed); it can also have a dictionary whose
Signature · 1 line
2.54.0
#1 lore raw
Quoted 10 lines · Paolo Bonzini
---
 qobject/json-parser.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
qobject/json-parser.c +0 -0
index 5935730c0c7..6b1b4762bda 100644

qobject/json-parser.c line 35

Quoted 10 lines
qobject/json-parser.c +4 -3
@@ -29,9 +29,10 @@
  * object, an error, or NULL (if the object is incomplete and no error
  * happened) after every token.  Therefore it has an explicit
  * representation of its parser stack; each stack entry consists of a
- * parser state and a QObject: - a QList, for an array that is being
- * added to - a QDict, for a dictionary that is being added to - a
- * QString, for the key of the next pair that will be added to a QDict
+ * parser state and a QObject:
+ * - a QList, for an array that is being added to
+ * - a QDict, for a dictionary that is being added to
+ * - a QString, for the key of the next pair that will be added to a QDict

bike shedding a little....

representation of its parser stack; each stack entry consists of a parser state and a QObject:
- QList: an array that is being added to
- QDict: a dictionary that is being added to
- QString: the key of the next pair that will be added to a QDict

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
Reviewed-by on v1 1/1 Applied
#2 lore raw
In reply to Paolo Bonzini
Quoted 13 lines · Paolo Bonzini
---
 qobject/json-parser.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
qobject/json-parser.c +0 -0
index 5935730c0c7..6b1b4762bda 100644
@@ -29,9 +29,10 @@
  * object, an error, or NULL (if the object is incomplete and no error
  * happened) after every token.  Therefore it has an explicit
  * representation of its parser stack; each stack entry consists of a

qobject/json-parser.c line 38

Quoted 10 lines
qobject/json-parser.c +4 -3
- * parser state and a QObject: - a QList, for an array that is being
- * added to - a QDict, for a dictionary that is being added to - a
- * QString, for the key of the next pair that will be added to a QDict
+ * parser state and a QObject:
+ * - a QList, for an array that is being added to
+ * - a QDict, for a dictionary that is being added to
+ * - a QString, for the key of the next pair that will be added to a QDict
  *
  * The stack represents an arbitrary nesting of arrays and dictionaries
  * (whose next key has been parsed); it can also have a dictionary whose

I screwed this up. My apologies!

Queued for 11.1. Thanks!