Re: Question about Sparse parsing of initializers

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

 



Hi Chris,

On 21 August 2017 at 20:31, Christopher Li <sparse@xxxxxxxxxxx> wrote:
> On Mon, Aug 21, 2017 at 3:29 PM, Dibyendu Majumdar
> <mobile@xxxxxxxxxxxxxxx> wrote:
>> I see a comment in show_initializer_expr() that:
>>
>> // Initializer indexes and identifiers should
>> // have been evaluated to EXPR_POS
>>
>> Does this mean that EXPR_IDENTIFIER and EXPR_INDEX are intermediate
>> steps that get replaced by EXPR_POS?
>
> Yes, that is exactly the case.
>
> EXPR_IDENTIFIER are for { .name = "my name" }
> EXPR_INDEX are for { [2] = 10 }
>
> EXPR_POS has convert those into structure bit offset.
>

Okay thanks!

Regards
Dibyendu
--
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