xemu/scripts/qapi
Markus Armbruster f9c146399d qapi/common: Fix guardname() for funny filenames
guardname() fails to return a valid C identifier for arguments
containing anything but [A-Za-z0-9_.-'].  Fix that.  Don't bother
protecting ticklish identifiers; header guards are all-caps, and no
ticklish identifiers are.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180211093607.27351-22-armbru@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2018-03-02 13:14:10 -06:00
..
__init__.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
commands.py qapi: Make code-generating visitors use QAPIGen more 2018-03-02 13:14:10 -06:00
common.py qapi/common: Fix guardname() for funny filenames 2018-03-02 13:14:10 -06:00
doc.py qapi: Make code-generating visitors use QAPIGen more 2018-03-02 13:14:10 -06:00
events.py qapi: Make code-generating visitors use QAPIGen more 2018-03-02 13:14:10 -06:00
introspect.py qapi: Make code-generating visitors use QAPIGen more 2018-03-02 13:14:10 -06:00
types.py qapi/types qapi/visit: Generate built-in stuff into separate files 2018-03-02 13:14:10 -06:00
visit.py qapi/types qapi/visit: Generate built-in stuff into separate files 2018-03-02 13:14:10 -06:00