feat: lifetime elision, tooling CI, registry, and LSP locals
Ship the QUALITY_PLAN stretch from ownership through ecosystem: C.1 lifetime elision (bootstrap + selfhost), bux fmt/test/doc CI hooks, stdlib goldens, package registry (bux search/add), and LSP 0.4 position-sensitive locals with inferred let types. Full-tree format pass plus Map/Set remove double-free fix.
This commit is contained in:
+29
-29
@@ -1,40 +1,40 @@
|
||||
module Std::Os {
|
||||
|
||||
extern func bux_argc() -> int;
|
||||
extern func bux_argv(index: int) -> String;
|
||||
extern func bux_getenv(name: String) -> String;
|
||||
extern func bux_setenv(name: String, value: String) -> int;
|
||||
extern func bux_getcwd() -> String;
|
||||
extern func bux_chdir(path: String) -> int;
|
||||
extern func bux_exit(code: int);
|
||||
extern func bux_argc() -> int;
|
||||
extern func bux_argv(index: int) -> String;
|
||||
extern func bux_getenv(name: String) -> String;
|
||||
extern func bux_setenv(name: String, value: String) -> int;
|
||||
extern func bux_getcwd() -> String;
|
||||
extern func bux_chdir(path: String) -> int;
|
||||
extern func bux_exit(code: int);
|
||||
|
||||
func Os_ArgsCount() -> int {
|
||||
return bux_argc();
|
||||
}
|
||||
func Os_ArgsCount() -> int {
|
||||
return bux_argc();
|
||||
}
|
||||
|
||||
func Os_Args(index: int) -> String {
|
||||
return bux_argv(index);
|
||||
}
|
||||
func Os_Args(index: int) -> String {
|
||||
return bux_argv(index);
|
||||
}
|
||||
|
||||
func Os_GetEnv(name: String) -> String {
|
||||
return bux_getenv(name);
|
||||
}
|
||||
func Os_GetEnv(name: String) -> String {
|
||||
return bux_getenv(name);
|
||||
}
|
||||
|
||||
func Os_SetEnv(name: String, value: String) -> bool {
|
||||
return bux_setenv(name, value) == 0;
|
||||
}
|
||||
func Os_SetEnv(name: String, value: String) -> bool {
|
||||
return bux_setenv(name, value) == 0;
|
||||
}
|
||||
|
||||
func Os_GetCwd() -> String {
|
||||
return bux_getcwd();
|
||||
}
|
||||
func Os_GetCwd() -> String {
|
||||
return bux_getcwd();
|
||||
}
|
||||
|
||||
func Os_Chdir(path: String) -> bool {
|
||||
return bux_chdir(path) == 0;
|
||||
}
|
||||
func Os_Chdir(path: String) -> bool {
|
||||
return bux_chdir(path) == 0;
|
||||
}
|
||||
|
||||
/* Terminate the process with the given exit code */
|
||||
func Os_Exit(code: int) {
|
||||
bux_exit(code);
|
||||
}
|
||||
/* Terminate the process with the given exit code */
|
||||
func Os_Exit(code: int) {
|
||||
bux_exit(code);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user