[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/.

Peter Stuge peter at stuge.se
Wed Dec 14 07:47:48 UTC 2011


Hi!

Sylvain Munaut wrote:
> > 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."

Ah good! I guess we only care about C99 compilers.


//Peter




More information about the baseband-devel mailing list