mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
get_env for Win32, @pierrec's get_config_dir and get_home_dir
This commit is contained in:
committed by
Christoffer Lerno
parent
2a683a6a05
commit
c5404c6573
@@ -448,6 +448,17 @@ fn void Path.free(self)
|
||||
free(self.path_string.ptr);
|
||||
}
|
||||
|
||||
|
||||
fn usz! Path.to_format(&self, Formatter* formatter) @dynamic
|
||||
{
|
||||
return formatter.print(self.str_view());
|
||||
}
|
||||
|
||||
fn String Path.to_string(&self, Allocator* using = mem::heap()) @dynamic
|
||||
{
|
||||
return self.str_view().copy(using);
|
||||
}
|
||||
|
||||
const bool[256] RESERVED_PATH_CHAR_POSIX = {
|
||||
[0] = true,
|
||||
['/'] = true,
|
||||
|
||||
Reference in New Issue
Block a user