qemu/qobject
Markus Armbruster 481b002cc8 qobject: Add a special null QObject
I'm going to fix the JSON parser to recognize null.  The obvious
representation of JSON null as (QObject *)NULL doesn't work, because
the parser already uses it as an error value.  Perhaps we should
change it to free NULL for null, but that's more than I can do right
now.  Create a special null QObject instead.

The existing QDict, QList, and QString all represent something that
is a pointer in C and could therefore be associated with NULL.  But
right now, all three of these sub-types are always non-null once
created, so the new null sentinel object is intentionally unrelated
to them.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2015-05-11 08:59:07 -04:00
..
json-lexer.c json-lexer: fix escaped backslash in single-quoted string 2014-06-23 11:01:24 -04:00
json-parser.c json-parser: drop superfluous assignment for token variable 2014-06-11 10:10:29 -04:00
json-streamer.c
Makefile.objs qobject: Add a special null QObject 2015-05-11 08:59:07 -04:00
qbool.c
qdict.c qdict: Add qdict_join() 2014-05-19 11:36:48 +02:00
qerror.c qerror: Remove assert_no_error() 2014-01-06 15:02:30 -05:00
qfloat.c
qint.c
qjson.c qobject: Add a special null QObject 2015-05-11 08:59:07 -04:00
qlist.c
qnull.c qobject: Add a special null QObject 2015-05-11 08:59:07 -04:00
qstring.c qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00