X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fccan_tokenizer%2Fread_cstring.c;h=9a62d0cc5b8c02b171e5b8cc1e56906197298355;hp=2302180c856943e452b1d016e5b4dc532af5073e;hb=165727526f785b05f67f3d88f9518a0a840acbbf;hpb=69cc1b45b4921c0be738902fe0d5225f135e2aae diff --git a/ccan/ccan_tokenizer/read_cstring.c b/ccan/ccan_tokenizer/read_cstring.c index 2302180c..9a62d0cc 100644 --- a/ccan/ccan_tokenizer/read_cstring.c +++ b/ccan/ccan_tokenizer/read_cstring.c @@ -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;