diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-15 16:53:18 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-15 16:53:18 -0500 |
| commit | d3eb8b8339b9f2aa1702cd6e38cc12448eff5882 (patch) | |
| tree | 80159a93c6fe235bd56d451945c6dd1fe1404162 /environment.c | |
| parent | 0caf96cfe7783c6d0dc30c74e7bed7dd315cc30a (diff) | |
Have ask() return an optional text
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c index cc7a92f6..af4c8530 100644 --- a/environment.c +++ b/environment.c @@ -43,7 +43,7 @@ env_t *new_compilation_unit(CORD libname) .default_val=FakeAST(Bool, true), .next=new(arg_t, .name="force_tty", .type=Type(BoolType), .default_val=FakeAST(Bool, true)))), - .ret=TEXT_TYPE)}}, + .ret=Type(OptionalType, TEXT_TYPE))}}, {"exit", {.code="tomo_exit", .type=Type(FunctionType, .args=new( arg_t, .name="message", .type=Type(OptionalType, .type=Type(TextType)), |
