Const poison a couple of interfaces.
Obtained from: lua boot project Sponsored by: Netflix
This commit is contained in:
parent
c5095910a0
commit
bd04a914bc
@ -49,10 +49,10 @@ void interact(const char *rc);
|
||||
int include(const char *filename);
|
||||
|
||||
/* interp_backslash.c */
|
||||
char *backslash(char *str);
|
||||
char *backslash(const char *str);
|
||||
|
||||
/* interp_parse.c */
|
||||
int parse(int *argc, char ***argv, char *str);
|
||||
int parse(int *argc, char ***argv, const char *str);
|
||||
|
||||
/* interp_forth.c */
|
||||
void bf_init(const char *rc);
|
||||
|
@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$");
|
||||
* processing" done on it. Original can be free'd if desired.
|
||||
*/
|
||||
char *
|
||||
backslash(char *str)
|
||||
backslash(const char *str)
|
||||
{
|
||||
/*
|
||||
* Remove backslashes from the strings. Turn \040 etc. into a single
|
||||
|
@ -82,7 +82,7 @@ isdquote(int ch)
|
||||
}
|
||||
|
||||
int
|
||||
parse(int *argc, char ***argv, char *str)
|
||||
parse(int *argc, char ***argv, const char *str)
|
||||
{
|
||||
int ac;
|
||||
char *val, *p, *q, *copy = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user