]> Git Repo - qemu.git/commit
qapi/common: Fix guardname() for funny filenames
authorMarkus Armbruster <[email protected]>
Sun, 11 Feb 2018 09:35:59 +0000 (10:35 +0100)
committerEric Blake <[email protected]>
Fri, 2 Mar 2018 19:14:10 +0000 (13:14 -0600)
commitf9c146399dabefb8cd13c9c467a9e710af15ea70
tree7a52384f0b3e5bf358c4f91b882e4be872bbc992
parentcdb6610ae4283720037bae2af1f78bd40eb5fe71
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 <[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-Id: <20180211093607[email protected]>
Reviewed-by: Michael Roth <[email protected]>
Signed-off-by: Eric Blake <[email protected]>
scripts/qapi/common.py
This page took 0.0255 seconds and 4 git commands to generate.