summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/strrb.h
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2018-12-21 10:18:28 +0100
committerOliver Smith <osmith@sysmocom.de>2018-12-21 13:13:11 +0100
commit19742408cf3d83bb67e4b8c2fc3b0cbbee7bee59 (patch)
treeed055dde1b3982298221d869b92fe243625083da /include/osmocom/core/strrb.h
parente8c3b1bc0b459a94aa490743e8e1320185e48473 (diff)
GSUP: add end marker to enum osmo_gsup_iei
Simplify gsup_test.c by defining an end marker in gsup.h. No need to manually update the last element every time anymore. The C standard guarantees, that the end marker will have the last value plus one: "Each subsequent enumerator with no = defines its enumeration constant as the value of the constant expression obtained by adding 1 to the value of the previous enumeration constant." (From C99: 6.7.2.2 Enumeration specifiers) Change-Id: I2aab7245e209f0ebd2f33a83d4d181dd3339cb17
Diffstat (limited to 'include/osmocom/core/strrb.h')
0 files changed, 0 insertions, 0 deletions