Re: Sparse parsing question: string literal

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

 



On Sun, Aug 20, 2017 at 9:12 AM, Dibyendu Majumdar
<mobile@xxxxxxxxxxxxxxx> wrote:
> I see - so every string literal results in an un-named symbol, whose
> initializer is set to the string expression?

Yes, because you can do sizeof("hello"). The string literal need to have type
and size. That is why it is wrap in a symbol of char array.  It can have a
proper size. Int and float constant has fix size and type, they can be
represented
directly in expression.

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux