forked from Imagelibrary/binutils-gdb
* python/py-cmd.c (cmdpy_completer): Add comment.
(completers): Make const.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2014-05-13 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
|
* python/py-cmd.c (cmdpy_completer): Add comment.
|
||||||
|
(completers): Make const.
|
||||||
|
|
||||||
2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
|
2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
* infrun.c (resume): Remove should_resume (unused). Move up
|
* infrun.c (resume): Remove should_resume (unused). Move up
|
||||||
|
|||||||
@@ -32,13 +32,15 @@
|
|||||||
/* Struct representing built-in completion types. */
|
/* Struct representing built-in completion types. */
|
||||||
struct cmdpy_completer
|
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;
|
char *name;
|
||||||
/* Completion function. */
|
/* Completion function. */
|
||||||
completer_ftype *completer;
|
completer_ftype *completer;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct cmdpy_completer completers[] =
|
static const struct cmdpy_completer completers[] =
|
||||||
{
|
{
|
||||||
{ "COMPLETE_NONE", noop_completer },
|
{ "COMPLETE_NONE", noop_completer },
|
||||||
{ "COMPLETE_FILENAME", filename_completer },
|
{ "COMPLETE_FILENAME", filename_completer },
|
||||||
|
|||||||
Reference in New Issue
Block a user