diff options
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 324021b2..b262a8e7 100644 --- a/environment.c +++ b/environment.c @@ -257,6 +257,7 @@ env_t *new_compilation_unit(CORD *libname) )}, {"NextLine", next_line_type, "NextLine_t", "NextLine", {}}, {"Pattern", Type(TextType, .lang="Pattern", .env=namespace_env(env, "Pattern")), "Pattern_t", "Pattern$info", TypedArray(ns_entry_t, + {"escape_int", "Int$value_as_text", "func(i:Int)->Pattern"}, {"escape_text", "Pattern$escape_text", "func(text:Text)->Pattern"}, )}, {"Path", Type(TextType, .lang="Path", .env=namespace_env(env, "Path")), "Text_t", "Text$info", TypedArray(ns_entry_t, @@ -265,6 +266,7 @@ env_t *new_compilation_unit(CORD *libname) {"by_line", "Path$by_line", "func(path:Path)->func()->NextLine"}, {"children", "Path$children", "func(path:Path, include_hidden=no)->[Path]"}, {"create_directory", "Path$create_directory", "func(path:Path, permissions=0o644_i32)"}, + {"escape_int", "Int$value_as_text", "func(i:Int)->Path"}, {"escape_path", "Path$escape_path", "func(path:Path)->Path"}, {"escape_text", "Path$escape_text", "func(text:Text)->Path"}, {"exists", "Path$exists", "func(path:Path)->Bool"}, @@ -286,6 +288,7 @@ env_t *new_compilation_unit(CORD *libname) {"write_unique", "Path$write_unique", "func(path:Path, text:Text)->Path"}, )}, {"Shell", Type(TextType, .lang="Shell", .env=namespace_env(env, "Shell")), "Shell_t", "Shell$info", TypedArray(ns_entry_t, + {"escape_int", "Int$value_as_text", "func(i:Int)->Shell"}, {"escape_text", "Shell$escape_text", "func(text:Text)->Shell"}, {"run", "Shell$run", "func(command:Shell, status=!&Int32)->Text"}, )}, |
