<p><a href="https://gerrit.osmocom.org/12410">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12410/2/include/osmocom/gsm/gsup.h">File include/osmocom/gsm/gsup.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12410/2/include/osmocom/gsm/gsup.h@102">Patch Set #2, Line 102:</a> <code style="font-family:monospace,monospace">OSMO_GSUP_IEI_END_MARKER</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">We usually prefix the end marker by '_' ;)</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Thanks, fixed.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Any warranties that this item would be 0x47, and not e.g. 0x36?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Yes, the C standard says:<br>"If the first enumerator has no =, the value of its enumeration constant is 0. 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."</p><p style="white-space: pre-wrap; word-wrap: break-word;">See this draft of C99 for example, in 6.7.2.2 Enumeration specifiers:<br>http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf</p><p style="white-space: pre-wrap; word-wrap: break-word;">(Turns out non-drafts are not published for free.)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12410/2/tests/gsup/gsup_test.c">File tests/gsup/gsup_test.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12410/2/tests/gsup/gsup_test.c@404">Patch Set #2, Line 404:</a> <code style="font-family:monospace,monospace"><= OSMO_GSUP_IEI_END_MARKER - 1</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Cosmetic: you could avoid this arithmetic: […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Right, that's better :)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12410">change 12410</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12410"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I2aab7245e209f0ebd2f33a83d4d181dd3339cb17 </div>
<div style="display:none"> Gerrit-Change-Number: 12410 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 21 Dec 2018 12:14:38 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>