<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25972">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25972/1/include/osmocom/bsc/gsm_data.h">File include/osmocom/bsc/gsm_data.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/osmo-bsc/+/25972/1/include/osmocom/bsc/gsm_data.h@1448">Patch Set #1, Line 1448:</a> <code style="font-family:monospace,monospace">typedef unsigned int chan_counts_t [CHAN_COUNTS1_N][CHAN_COUNTS2_N][_GSM_LCHAN_MAX];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">lol, the linter says "NEW_TYPEDEFS: do not add new typedefs"</p><p style="white-space: pre-wrap; word-wrap: break-word;">but I'd really really like to fixate the array dimensions.<br>interwebs says one can put it in a struct like</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  struct chan_counts {<br>      unsigned int x[2][3][4];<br>  }</pre><p style="white-space: pre-wrap; word-wrap: break-word;">but i don't know, seems weird to me when all i need is an array.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Also for functions accessing only the third or second dimension, i still need to put the array dimensions, and if not as a typedef, then all callers need to put the correct array dimensions everywhere.</p><p style="white-space: pre-wrap; word-wrap: break-word;">seems we don't have a way to deal with multi-dimension arrays yet, in the way that i'd like to do it? any suggestions?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25972">change 25972</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/c/osmo-bsc/+/25972"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2fb48c549186db812b1e9d6b735a92e80f27b8d3 </div>
<div style="display:none"> Gerrit-Change-Number: 25972 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 27 Oct 2021 21:03:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>