More build fixes, some code cleanup and untabify.

This commit is contained in:
Joachim Nilsson 2008-12-02 21:58:55 +01:00
parent 77d483da02
commit 6d8d857dd4
5 changed files with 937 additions and 1057 deletions

View File

@ -4,8 +4,8 @@
/* Assign these to get command completion, see cli.c for
* example usage. */
char *(*rl_complete)(char *token, int *match);
int (*rl_list_possib)(char *token, char ***av);
extern char *(*rl_complete)(char *token, int *match);
extern int (*rl_list_possib)(char *token, char ***av);
/*
** For compatibility with FSF readline.

View File

@ -24,7 +24,7 @@ strdup(p)
/*
** strcmp-like sorting predicate for qsort.
*/
STATIC int
static int
compare(p1, p2)
CONST void *p1;
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.
** Ignore . and .. .
*/
STATIC int
static int
FindMatches(dir, file, avp)
char *dir;
char *file;
@ -124,7 +124,7 @@ FindMatches(dir, file, avp)
/*
** Split a pathname into allocated directory and trailing filename parts.
*/
STATIC int
static int
SplitPath(path, dirpart, filepart)
char *path;
char **dirpart;

File diff suppressed because it is too large Load Diff

View File

@ -35,21 +35,6 @@
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 SCREEN_INC 256