mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Make sure local functions are marked static.
Sparse (cgcc) is very picky about such things, which is great.
This commit is contained in:
parent
722dae35a2
commit
cbf276d9ff
@ -2,7 +2,7 @@
|
|||||||
#include "editline.h"
|
#include "editline.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
char *list[] = {
|
static char *list[] = {
|
||||||
"foo ", "bar ", "bsd ", "cli ", "ls ", "cd ", "malloc ", "tee ", NULL
|
"foo ", "bar ", "bsd ", "cli ", "ls ", "cd ", "malloc ", "tee ", NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ char *list[] = {
|
|||||||
** Attempt to complete the pathname, returning an allocated copy.
|
** Attempt to complete the pathname, returning an allocated copy.
|
||||||
** Fill in *unique if we completed it, or set it to 0 if ambiguous.
|
** Fill in *unique if we completed it, or set it to 0 if ambiguous.
|
||||||
*/
|
*/
|
||||||
char *my_rl_complete(char *token, int *match)
|
static char *my_rl_complete(char *token, int *match)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int index = -1;
|
int index = -1;
|
||||||
@ -41,7 +41,7 @@ char *my_rl_complete(char *token, int *match)
|
|||||||
/*
|
/*
|
||||||
** Return all possible completions.
|
** Return all possible completions.
|
||||||
*/
|
*/
|
||||||
int my_rl_list_possib(char *token, char ***av)
|
static int my_rl_list_possib(char *token, char ***av)
|
||||||
{
|
{
|
||||||
int i, num, total = 0;
|
int i, num, total = 0;
|
||||||
char **copy;
|
char **copy;
|
||||||
|
Loading…
Reference in New Issue
Block a user