Skip to content
Snippets Groups Projects
Commit 202d5acd authored by Damien George's avatar Damien George
Browse files

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.
parent 3e03d1b8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment