Skip to content

Commit 202d5ac

Browse files
committed
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.
1 parent 3e03d1b commit 202d5ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/makeqstrdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def parse_input_headers(infiles):
116116

117117
def make_bytes(cfg_bytes_len, cfg_bytes_hash, qstr):
118118
qhash = compute_hash(qstr, cfg_bytes_hash)
119-
if all(32 <= ord(c) <= 126 and c != '\\' for c in qstr):
119+
if all(32 <= ord(c) <= 126 and c != '\\' and c != '"' for c in qstr):
120120
# qstr is all printable ASCII so render it as-is (for easier debugging)
121121
qlen = len(qstr)
122122
qdata = qstr

0 commit comments

Comments
 (0)