escape_to_c: Escape trigraphs
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Mon, 6 Jun 2016 16:04:00 +0000 (12:04 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 7 Jun 2016 13:32:43 +0000 (09:32 -0400)
commit994ce224f1ecc787b1ced49a1420ec3c1103adf1
treebe105d4be3cba8a582d5e1b4ba5f576e185ef61b
parentf1f6b48a844d2eb6505b135d1085b33d54d26bf2
escape_to_c: Escape trigraphs

Produce more standard-compliant code instead of relying on the default
behaviour of gcc (or on its `-Wno-trigraphs` flag).

See also: https://github.com/nitlang/nit/pull/1949/commits/000ac8de3c64790b0fbb0e868e406a6a280f3fa9

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
lib/core/text/abstract_text.nit
lib/core/text/flat.nit