various tweaks.

This commit is contained in:
rsc 2004-02-09 19:33:05 +00:00
parent c197370550
commit d51419bf43
13 changed files with 193 additions and 12 deletions

15
include/complete.h Normal file
View file

@ -0,0 +1,15 @@
#pragma lib "libcomplete.a"
#pragma src "/sys/src/libcomplete"
typedef struct Completion Completion;
struct Completion{
uchar advance; /* whether forward progress has been made */
uchar complete; /* whether the completion now represents a file or directory */
char *string; /* the string to advance, suffixed " " or "/" for file or directory */
int nfile; /* number of files that matched */
char **filename; /* their names */
};
Completion* complete(char *dir, char *s);
void freecompletion(Completion*);