Blame


1 d51419bf 2004-02-09 devnull #pragma lib "libcomplete.a"
2 d51419bf 2004-02-09 devnull #pragma src "/sys/src/libcomplete"
3 d51419bf 2004-02-09 devnull
4 d51419bf 2004-02-09 devnull typedef struct Completion Completion;
5 d51419bf 2004-02-09 devnull
6 d51419bf 2004-02-09 devnull struct Completion{
7 d51419bf 2004-02-09 devnull uchar advance; /* whether forward progress has been made */
8 d51419bf 2004-02-09 devnull uchar complete; /* whether the completion now represents a file or directory */
9 d51419bf 2004-02-09 devnull char *string; /* the string to advance, suffixed " " or "/" for file or directory */
10 d51419bf 2004-02-09 devnull int nfile; /* number of files that matched */
11 d51419bf 2004-02-09 devnull char **filename; /* their names */
12 d51419bf 2004-02-09 devnull };
13 d51419bf 2004-02-09 devnull
14 d51419bf 2004-02-09 devnull Completion* complete(char *dir, char *s);
15 d51419bf 2004-02-09 devnull void freecompletion(Completion*);