mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
More build fixes, some code cleanup and untabify.
This commit is contained in:
parent
77d483da02
commit
6d8d857dd4
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
/* Assign these to get command completion, see cli.c for
|
/* Assign these to get command completion, see cli.c for
|
||||||
* example usage. */
|
* example usage. */
|
||||||
char *(*rl_complete)(char *token, int *match);
|
extern char *(*rl_complete)(char *token, int *match);
|
||||||
int (*rl_list_possib)(char *token, char ***av);
|
extern int (*rl_list_possib)(char *token, char ***av);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** For compatibility with FSF readline.
|
** For compatibility with FSF readline.
|
||||||
|
@ -24,7 +24,7 @@ strdup(p)
|
|||||||
/*
|
/*
|
||||||
** strcmp-like sorting predicate for qsort.
|
** strcmp-like sorting predicate for qsort.
|
||||||
*/
|
*/
|
||||||
STATIC int
|
static int
|
||||||
compare(p1, p2)
|
compare(p1, p2)
|
||||||
CONST void *p1;
|
CONST void *p1;
|
||||||
CONST void *p2;
|
CONST void *p2;
|
||||||
@ -41,7 +41,7 @@ compare(p1, p2)
|
|||||||
** Fill in *avp with an array of names that match file, up to its length.
|
** Fill in *avp with an array of names that match file, up to its length.
|
||||||
** Ignore . and .. .
|
** Ignore . and .. .
|
||||||
*/
|
*/
|
||||||
STATIC int
|
static int
|
||||||
FindMatches(dir, file, avp)
|
FindMatches(dir, file, avp)
|
||||||
char *dir;
|
char *dir;
|
||||||
char *file;
|
char *file;
|
||||||
@ -124,7 +124,7 @@ FindMatches(dir, file, avp)
|
|||||||
/*
|
/*
|
||||||
** Split a pathname into allocated directory and trailing filename parts.
|
** Split a pathname into allocated directory and trailing filename parts.
|
||||||
*/
|
*/
|
||||||
STATIC int
|
static int
|
||||||
SplitPath(path, dirpart, filepart)
|
SplitPath(path, dirpart, filepart)
|
||||||
char *path;
|
char *path;
|
||||||
char **dirpart;
|
char **dirpart;
|
||||||
|
597
src/editline.c
597
src/editline.c
File diff suppressed because it is too large
Load Diff
@ -35,21 +35,6 @@
|
|||||||
|
|
||||||
typedef unsigned char CHAR;
|
typedef unsigned char CHAR;
|
||||||
|
|
||||||
#if defined(HIDE)
|
|
||||||
#define STATIC static
|
|
||||||
#else
|
|
||||||
#define STATIC /* NULL */
|
|
||||||
#endif /* !defined(HIDE) */
|
|
||||||
|
|
||||||
#if !defined(CONST)
|
|
||||||
#if defined(__STDC__)
|
|
||||||
#define CONST const
|
|
||||||
#else
|
|
||||||
#define CONST
|
|
||||||
#endif /* defined(__STDC__) */
|
|
||||||
#endif /* !defined(CONST) */
|
|
||||||
|
|
||||||
|
|
||||||
#define MEM_INC 64
|
#define MEM_INC 64
|
||||||
#define SCREEN_INC 256
|
#define SCREEN_INC 256
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user