poke-devel
[Top][All Lists]
Advanced

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

Re: Chained declarations of types, variables and units


From: Mohammad-Reza Nabipoor
Subject: Re: Chained declarations of types, variables and units
Date: Sat, 7 Nov 2020 23:11:06 +0330

Hi, Jose!

On Sat, Nov 07, 2020 at 07:56:04PM +0100, Jose E. Marchesi wrote:
> 
> Hi people!
> 
> I just pushed to the branch jemarch/nodefs an additional change, that
> makes it possible to chain several declarations of variables, types and
> units.
> 
> Examples:
> 
> var PF_X = 0x1,
>     PF_W = 0x2,
>     PF_R = 0x4;
> 
> type Elf_Half = uint<16>,
>      Elf_Word = uint<32>,
>      Elf64_Xword = uint<64>;
> 
> unit MyBit = 1,
>      MyWhatever = 13;
> 
> This allows to write more compact code.
> Salud!
> 

:+1:


reply via email to

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