diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 17:07:39 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 17:07:39 +0000 |
| commit | 37da2899f40661e3e9631e497da8dc59b971cbd0 (patch) | |
| tree | cbc6d4680e347d906f5fa7fca73214418741df72 /appl/acme/acme/edit/src/d.b | |
| parent | 54bc8ff236ac10b3eaa928fd6bcfc0cdb2ba46ae (diff) | |
20060303a
Diffstat (limited to 'appl/acme/acme/edit/src/d.b')
| -rw-r--r-- | appl/acme/acme/edit/src/d.b | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/appl/acme/acme/edit/src/d.b b/appl/acme/acme/edit/src/d.b new file mode 100644 index 00000000..0b663942 --- /dev/null +++ b/appl/acme/acme/edit/src/d.b @@ -0,0 +1,30 @@ +implement Dd; + +include "sys.m"; +include "draw.m"; +include "sh.m"; + +Dd : module { + init : fn(ctxt : ref Draw->Context, argl : list of string); +}; + +init(ctxt : ref Draw->Context, argl : list of string) +{ + sys := load Sys Sys->PATH; + stderr := sys->fildes(2); + if (len argl != 1) { + sys->fprint(stderr, "usage : d\n"); + return; + } + cmd := "/acme/edit/c"; + file := cmd + ".dis"; + c := load Command file; + if(c == nil) { + sys->fprint(stderr, "%s: %r\n", cmd); + return; + } + argl = nil; + argl = "" :: argl; + argl = cmd :: argl; + c->init(ctxt, argl); +}
\ No newline at end of file |
