[PATCH] osmocon: correct parsing of -m

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Sylvain Munaut 246tnt at gmail.com
Wed Dec 14 07:43:02 UTC 2011


Hi,

> I think not neccessarily so. If there is no specified value for any
> enum value then IIRC they are all undefined, and could thus also be
> negative. Bad.

The C99 standard clearly states ( 6.7.2.2 paragraph 3 )

"An enumerator with = defines its enumeration constant as the value of
the constant expression. If the first enumerator has no =, the value
of its enumeration constant is 0."

Cheers,

    Sylvain




More information about the baseband-devel mailing list