MCPcopy Create free account
hub / github.com/NetHack/NetHack / count_autocompletions

Function count_autocompletions

src/cmd.c:3311–3322  ·  view source on GitHub ↗

return the number of changed autocompletions */

Source from the content-addressed store, hash-verified

3309
3310/* return the number of changed autocompletions */
3311int
3312count_autocompletions(void)
3313{
3314 struct ext_func_tab *efp;
3315 int n = 0;
3316
3317 for (efp = extcmdlist; efp->ef_txt; efp++)
3318 if ((efp->flags & AUTOCOMP_ADJ) != 0)
3319 n++;
3320
3321 return n;
3322}
3323
3324/* save&clear the mouse button actions, or restore the saved ones */
3325void

Callers 1

optfn_o_autocompleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected