diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-01-15 21:04:26 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-01-15 21:04:26 +0000 |
| commit | 8911721efbf3b3721376e2baa30bae002c2975c2 (patch) | |
| tree | aa059ffa39c2c4f1cd5ed2e137dcb9b079de2717 /module | |
| parent | 0e96539ff7cff23233d3f0a64bb285b385a3a1f4 (diff) | |
20070115
Diffstat (limited to 'module')
| -rw-r--r-- | module/complete.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/module/complete.m b/module/complete.m new file mode 100644 index 00000000..82495ef9 --- /dev/null +++ b/module/complete.m @@ -0,0 +1,15 @@ +Complete: module +{ + PATH: con "/dis/lib/complete.dis"; + + Completion: adt { + advance: int; # whether forward progress has been made + complete: int; # whether the completion now represents a file or directory + str: string; # string to advance, suffixed " " (file) or "/" (directory) + nmatch: int; # number of files that matched + filename: array of string; # their names + }; + + init: fn(); + complete: fn(dir, s: string): (ref Completion, string); +}; |
