<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qapi-schema/event-max.exit, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/tests/qapi-schema/event-max.exit?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qapi-schema/event-max.exit?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2015-12-17T07:21:28+00:00</updated>
<entry>
<title>qapi: Remove obsolete tests for MAX collision</title>
<updated>2015-12-17T07:21:28+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2015-11-18T08:52:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=04e0639d4e77b6d55491d396c8aa13929ee8ed9a'/>
<id>urn:sha1:04e0639d4e77b6d55491d396c8aa13929ee8ed9a</id>
<content type='text'>
Now that we no longer collide with an implicit _MAX enum member,
we no longer need to reject it in the ad hoc parser, and can
remove several tests that are no longer needed.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;1447836791-369-24-git-send-email-eblake@redhat.com&gt;
[Commit message tweaked]
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: Better error messages for duplicated expressions</title>
<updated>2015-05-05T16:39:01+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2015-05-04T15:05:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4dc2e6906e1084fdd37bf67385c5dcd2c72ae22b'/>
<id>urn:sha1:4dc2e6906e1084fdd37bf67385c5dcd2c72ae22b</id>
<content type='text'>
The previous commit demonstrated that the generator overlooked
duplicate expressions:
- a complex type or command reusing a built-in type name
- redeclaration of a type name, whether by the same or different
metatype
- redeclaration of a command or event
- collision of a type with implicit 'Kind' enum for a union
- collision with an implicit MAX enum constant

Since the c_type() function in the generator treats all names
as being in the same namespace, this patch adds a global array
to track all known names and their source, to prevent collisions
before it can cause further problems.  While valid .json files
won't trigger any of these cases, we might as well be nicer to
developers that make a typo while trying to add new QAPI code.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: Add tests of redefined expressions</title>
<updated>2015-05-05T16:39:01+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2015-05-04T15:05:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=cfdd5bcad515a8371af59dba9625e31a6f6f733e'/>
<id>urn:sha1:cfdd5bcad515a8371af59dba9625e31a6f6f733e</id>
<content type='text'>
Demonstrate that the qapi generator doesn't deal very well with
redefined expressions.  At the parse level, they are silently
accepted; and while the testsuite just stops at parsing, I've
further tested that many of them cause generator crashes or
invalid C code if they were appended to qapi-schema-test.json.
A later patch will tighten things up and adjust the testsuite
to match.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
</feed>
