]> git.ozlabs.org Git - ccan/blobdiff - ccan/ccan_tokenizer/read_cstring.c
talloc: allow replacement allocator
[ccan] / ccan / ccan_tokenizer / read_cstring.c
index 2302180c856943e452b1d016e5b4dc532af5073e..9a62d0cc5b8c02b171e5b8cc1e56906197298355 100644 (file)
@@ -125,6 +125,8 @@ char *read_cstring(array_char *out, const char *s, const char *e, char quoteChar
                                                                "Double quote characters need not be escaped within single quotes"); */
                                                        break;
                                                }
+                                               if (c=='?') // \? is needed in some situations to avoid building a trigraph
+                                                       break;
                                                tok_msg_warn(unknown_escape, s-2,
                                                        "Unknown escape sequence '\\%c'", c);
                                                break;