<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9543">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">verify_value_string_arrays_are_terminated.py: allow terminating with '{}'<br><br>Writing '{ 0, NULL }' is actually identical to just '{}', and that's what I use<br>these days in all sorts of other contexts. So allow this notation as well in<br>the C code grepper.<br><br>Change-Id: I0822d2d997dccbfb31316953a7b6024c317d92cf<br>---<br>M scripts/verify_value_string_arrays_are_terminated.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/43/9543/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/verify_value_string_arrays_are_terminated.py b/scripts/verify_value_string_arrays_are_terminated.py</span><br><span>index 020bb4d..ad936a5 100755</span><br><span>--- a/scripts/verify_value_string_arrays_are_terminated.py</span><br><span>+++ b/scripts/verify_value_string_arrays_are_terminated.py</span><br><span>@@ -18,7 +18,7 @@</span><br><span>   re.MULTILINE | re.DOTALL)</span><br><span> </span><br><span> members = r'(\.(value|str)\s*=\s*)?'</span><br><span style="color: hsl(0, 100%, 40%);">-terminator_re = re.compile('{\s*' + members + '(0|NULL)\s*,'</span><br><span style="color: hsl(120, 100%, 40%);">+terminator_re = re.compile('{}|{\s*' + members + '(0|NULL)\s*,'</span><br><span>                            '\s*' + members + '(0|NULL)\s*}')</span><br><span> errors_found = 0</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9543">change 9543</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/9543"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I0822d2d997dccbfb31316953a7b6024c317d92cf </div>
<div style="display:none"> Gerrit-Change-Number: 9543 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>