This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fdump-ast-original and strg:
- From: Dale Johannesen <dalej at apple dot com>
- To: tim at hollebeek dot com
- Cc: Dale Johannesen <dalej at apple dot com>, Florian Krohm <florian at edamail dot fishkill dot ibm dot com>, Guillaume <guillaume dot thouvenin at polymtl dot ca>, Joe Buck <jbuck at synopsys dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 30 Nov 2001 15:01:58 -0800
- Subject: Re: fdump-ast-original and strg:
On Friday, November 30, 2001, at 03:07 PM, Tim Hollebeek wrote:
>
>> On Friday, November 30, 2001, at 10:12 AM, Florian Krohm wrote:
>>
>>> I'm afraid, things are even a bit more complex.
>>> Consider a string containing two characters, the first
>>> of which contains the bit pattern 00001010. The second
>>> character is '2'. If you want to recover the original
>>> representation for that string you will have to use a
>>> string concatenation e.g. "\12" "2" or "\x6" "2".
>>> Note that you cannot write "\122" as that would specify
>>> only a single character.
>>
>> "\0122" works.
>
> I believe you can also use "\12\2".
No, that specifies a second character with bit pattern 00000010,
which is not '2'.