diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-10-18 09:43:40 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-10-22 09:26:12 +0200 |
commit | 2a7bbedd7752b77d91eb2db0e8dea23852ce556b (patch) | |
tree | 9e195329b414ddebd89aed20be85471ca7a6a62d /tests/qapi-schema/flat-union-invalid-branch-key.err | |
parent | f3d4aa5add400018130e2908a400e6b6a9a94f98 (diff) |
qapi: Store pragma state in QAPISourceInfo, not global state
The frontend can't be run more than once due to its global state.
A future commit will want to do that.
Recent commit "qapi: Move context-sensitive checking to the proper
place" got rid of many global variables already, but pragma state is
still stored in global variables (that's why a pragma directive's
scope is the complete schema).
Move the pragma state to QAPISourceInfo.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20191018074345.24034-3-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/flat-union-invalid-branch-key.err')
0 files changed, 0 insertions, 0 deletions