
19 Oct
2021
19 Oct
'21
6:09 p.m.
Dear Simon,
In message CAPnjgZ3KS06_cy8mLL2V-ezqZYO6QEecz2C78hVaUQAnAz0fNg@mail.gmail.com you wrote:
I thought you were trying to use + at the end of a variable.
I used:
fred+=aaa
and got
cc1: warning: unknown escape sequence: '=''
You can try it yourself by editing sandbox.env in the u-boot-dm/env-working tree.
Hmmm...
-> cat foo.c #define A ampersand #define B berta
foo+=B; -> gcc -E foo.c # 0 "foo.c" # 0 "<built-in>" # 0 "<command-line>" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "<command-line>" 2 # 1 "foo.c"
foo+=berta;
-> cat bar.c fred+=aaa -> gcc -E bar.c # 0 "bar.c" # 0 "<built-in>" # 0 "<command-line>" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "<command-line>" 2 # 1 "bar.c" fred+=aaa
I do not see this problem...
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
I don't know if it's what you want, but it's what you get. :-)
- Larry Wall in 10502@jpl-devvax.JPL.NASA.GOV