[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Chained declarations of types, variables and units
From: |
Jose E. Marchesi |
Subject: |
Chained declarations of types, variables and units |
Date: |
Sat, 07 Nov 2020 19:56:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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!
- Chained declarations of types, variables and units,
Jose E. Marchesi <=