export sl_did_you_mean that uses OptimalStringAlignmentDistance to propose an alternative

This commit is contained in:
Love Hornquist Astrand
2011-11-22 12:18:37 -08:00
parent 791c70eaa2
commit d26df6ba7f
2 changed files with 86 additions and 0 deletions

View File

@@ -61,6 +61,8 @@ int sl_make_argv(char*, int*, char***);
void sl_apropos (SL_cmd *cmd, const char *topic);
SL_cmd *sl_match (SL_cmd *cmds, char *cmd, int exactp);
void sl_slc_help (SL_cmd *cmds, int argc, char **argv);
void sl_did_you_mean(SL_cmd *cmds, const char *match);
#ifdef __cplusplus
}