* python/py-cmd.c (cmdpy_completer): Add comment.
(completers): Make const.
This commit is contained in:
parent
5a9b370378
commit
75ddda778c
2 changed files with 9 additions and 2 deletions
|
@ -32,13 +32,15 @@
|
|||
/* Struct representing built-in completion types. */
|
||||
struct cmdpy_completer
|
||||
{
|
||||
/* Python symbol name. */
|
||||
/* Python symbol name.
|
||||
This isn't a const char * for Python 2.4's sake.
|
||||
PyModule_AddIntConstant only takes a char *, sigh. */
|
||||
char *name;
|
||||
/* Completion function. */
|
||||
completer_ftype *completer;
|
||||
};
|
||||
|
||||
static struct cmdpy_completer completers[] =
|
||||
static const struct cmdpy_completer completers[] =
|
||||
{
|
||||
{ "COMPLETE_NONE", noop_completer },
|
||||
{ "COMPLETE_FILENAME", filename_completer },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue