mirror of git://git.sv.gnu.org/nano.git
Constifying the input parameter of strtosc() and strtomenu().
Patch by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5528 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
42a761e77f
commit
539a4b42be
|
@ -1,3 +1,6 @@
|
||||||
|
2016-01-04 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
* src/global.c (strtosc, strtomenu): Constify the input parameter.
|
||||||
|
|
||||||
2016-01-03 Benno Schulenberg <bensberg@justemail.net>
|
2016-01-03 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/text.c (do_deletion), src/nano.c (do_input): Let reset_multis()
|
* src/text.c (do_deletion), src/nano.c (do_input): Let reset_multis()
|
||||||
figure out whether after a deletion a full refresh is needed, before
|
figure out whether after a deletion a full refresh is needed, before
|
||||||
|
|
|
@ -1327,7 +1327,7 @@ const char *flagtostr(int flag)
|
||||||
#ifndef DISABLE_NANORC
|
#ifndef DISABLE_NANORC
|
||||||
/* Interpret a function string given in the rc file, and return a
|
/* Interpret a function string given in the rc file, and return a
|
||||||
* shortcut struct with the corresponding function filled in. */
|
* shortcut struct with the corresponding function filled in. */
|
||||||
sc *strtosc(char *input)
|
sc *strtosc(const char *input)
|
||||||
{
|
{
|
||||||
sc *s;
|
sc *s;
|
||||||
|
|
||||||
|
@ -1580,7 +1580,7 @@ sc *strtosc(char *input)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interpret a menu name and return the corresponding menu flag. */
|
/* Interpret a menu name and return the corresponding menu flag. */
|
||||||
int strtomenu(char *input)
|
int strtomenu(const char *input)
|
||||||
{
|
{
|
||||||
if (!strcasecmp(input, "all"))
|
if (!strcasecmp(input, "all"))
|
||||||
return (MMOST|MHELP|MYESNO);
|
return (MMOST|MHELP|MYESNO);
|
||||||
|
|
|
@ -372,8 +372,8 @@ void set_spell_shortcuts(void);
|
||||||
#endif
|
#endif
|
||||||
const subnfunc *sctofunc(sc *s);
|
const subnfunc *sctofunc(sc *s);
|
||||||
const char *flagtostr(int flag);
|
const char *flagtostr(int flag);
|
||||||
sc *strtosc(char *input);
|
sc *strtosc(const char *input);
|
||||||
int strtomenu(char *input);
|
int strtomenu(const char *input);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
void thanks_for_all_the_fish(void);
|
void thanks_for_all_the_fish(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue