<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18712">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/+/18712/2/include/osmocom/bsc/bsc_subscriber.h">File include/osmocom/bsc/bsc_subscriber.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/+/18712/2/include/osmocom/bsc/bsc_subscriber.h@11">Patch Set #2, Line 11:</a> <code style="font-family:monospace,monospace">struct osmo_mobile_identity;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Can we please include structs from header files instead of leaving potentially dangling definitions  […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">it is good to avoid as many #include as possible in .h files, and to #include headers in .c files instead,<br>Reason being: smaller compile units (from less includes) and helping to avoid circular header dependencies.</p><p style="white-space: pre-wrap; word-wrap: break-word;">but I including a header from an entirely other library of course has no danger of circular includes, and naming the header can make it more clear where it's coming from.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I still kind of prefer less #includes in .h, you get the entire picture in the .c anyway.<br>avoiding evangelism here, have your #include then.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18712">change 18712</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/+/18712"/><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: Id6cccaac64392b737b3bba8f3a22a88009adb23b </div>
<div style="display:none"> Gerrit-Change-Number: 18712 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </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: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 15 Jun 2020 01:36:02 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>