<p>Originally the commands were one array indexable by the enumerators, but as its now several separate groups of variable size (at startup time).  The macros are intended to map the old enumerator names to the new organisation, the group and the command within that group.</p>
<p>I don't remember that long ago, but since C enum values are not limited to the values of the enumerators I suspect testing for out of range values was just ensuring a known return for out of range inputs.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2274?email_source=notifications&email_token=AAIOWJ3CWQSE6GSFTWWMCKLQGEN73A5CNFSM4IPFVZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B6RCQ#issuecomment-524544138">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7BNZKP6YOW4KCIJ5TQGEN73ANCNFSM4IPFVZRQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJY2FXXGMD3HSGR4LN3QGEN73A5CNFSM4IPFVZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B6RCQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2274?email_source=notifications\u0026email_token=AAIOWJ3CWQSE6GSFTWWMCKLQGEN73A5CNFSM4IPFVZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B6RCQ#issuecomment-524544138",
"url": "https://github.com/geany/geany/issues/2274?email_source=notifications\u0026email_token=AAIOWJ3CWQSE6GSFTWWMCKLQGEN73A5CNFSM4IPFVZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B6RCQ#issuecomment-524544138",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>