From 8911721efbf3b3721376e2baa30bae002c2975c2 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Mon, 15 Jan 2007 21:04:26 +0000 Subject: 20070115 --- module/complete.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 module/complete.m (limited to 'module') 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); +}; -- cgit v1.2.3