aboutsummaryrefslogtreecommitdiff
path: root/py/makeqstrdata.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-23 15:18:55 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-23 15:18:55 +0100
commit202d5acd06d320f3d2485b85d4ff6c412e50ad21 (patch)
tree18de7343753940ba04d99ca9f181c7a0928a0548 /py/makeqstrdata.py
parent3e03d1b87e81f0960067519e0713f70eb6e9927c (diff)
py/makeqstrdata.py: Allow to have double-quote characters in qstrs.
When rendering the qstr for a C header file, the double-quate character must be escaped.
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r--py/makeqstrdata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py
index c00ec1eb2..8a3136b1f 100644
--- a/py/makeqstrdata.py
+++ b/py/makeqstrdata.py
@@ -116,7 +116,7 @@ def parse_input_headers(infiles):
def make_bytes(cfg_bytes_len, cfg_bytes_hash, qstr):
qhash = compute_hash(qstr, cfg_bytes_hash)
- if all(32 <= ord(c) <= 126 and c != '\\' for c in qstr):
+ if all(32 <= ord(c) <= 126 and c != '\\' and c != '"' for c in qstr):
# qstr is all printable ASCII so render it as-is (for easier debugging)
qlen = len(qstr)
qdata = qstr