tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] How to use char "\"


From: Charles Gordon
Subject: Re: [Tinycc-devel] How to use char "\"
Date: Wed, 1 Oct 2014 00:30:05 +0200

On 30 sept. 2014, at 23:58, Evan Langlois <address@hidden> wrote:

>> Not exactly:  the C Standard *allows* ? to be escaped as \?, it does not 
>> specify that it should be.
> 
> Hmm .. I stand corrected!  OK - so if it sees \? its ? and if it sees ? it 
> checks to see if its a trigraph, and if it sees \??= then it cries.

To prevent trigraph expansion, the second ? should be escaped.

\??= would trigger the warning "unsupported escape sequence '\#’”  because 
trigraph expansion occurs before escape sequence conversion.

None of this is relevant in tcc, but it is still part of the C standard.
A more recent and less problematic oddity in the C standard syntax is digraphs.
Good news!  tcc does not support digraphs either!

Chqrlie.










reply via email to

[Prev in Thread] Current Thread [Next in Thread]