Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4fcbdbe authored by Martin Geisler's avatar Martin Geisler Committed by Automerger Merge Worker
Browse files

Merge changes Ia692582c,Id28f9dcb am: eba62d42 am: 4d722cfd

parents 80eeeade 4d722cfd
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -191,7 +191,9 @@ enum CoffeeAddition: 3 {
>      [field_list](#fields)?\
>      [field_list](#fields)?\
>    `}`
>    `}`


A *packet* is a declaration of a sequence of [fields](#fields).
A *packet* is a declaration of a sequence of [fields](#fields). While packets
can contain bit-fields, the size of the whole packet must be a multiple of 8
bits.


A *packet* can optionally inherit from another *packet* declaration. In this case the packet
A *packet* can optionally inherit from another *packet* declaration. In this case the packet
inherits the parent's fields and the child's fields replace the
inherits the parent's fields and the child's fields replace the
@@ -434,6 +436,9 @@ An *array* field defines a sequence of `N` elements of type `T`.
- An [identifier](#identifier) referencing an [enum](#enum), a [struct](#struct)
- An [identifier](#identifier) referencing an [enum](#enum), a [struct](#struct)
or a [custom field](#custom-field) type.
or a [custom field](#custom-field) type.


The size of `T` must always be a multiple of 8 bits, that is, the array elements
must start at byte boundaries.

```
```
packet Brew {
packet Brew {
   pots: 8[2],
   pots: 8[2],