Standardize root field type prefixes
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 23 Sep 2020 14:51:05 +0000 (10:51 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 23 Sep 2020 14:51:05 +0000 (10:51 -0400)
commita7e54146a88519ce2eca45c6c59a59da157079a5
treeb9c6aa714321fd0b1137e924baa4dbdea295214c
parent8b061dd514eb2cadac7b909411c8fb3e8b2abf76
Standardize root field type prefixes

This patch changes `cgen.py` and what depends on it so that:

* `_RootFtPrefixes` attribute names always begin with `P` (packet) or
  `ER` (event record).

* `_RootFtPrefixes` attribute values for event record prefixes do not
  begin with `er`.

  The C source context where this is used indicates that it's an event
  record field, so `er` is redundant.

  This also makes the documentation easier to understand.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/cgen.py
barectf/templates/c/barectf.c-macros.j2
barectf/templates/c/barectf.c.j2
This page took 0.025384 seconds and 4 git commands to generate.