forked from koniifer/ableos
fix
This commit is contained in:
parent
b99cb09a74
commit
9ec3bb1f99
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -429,7 +429,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "hbbytecode"
|
||||
version = "0.1.0"
|
||||
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5555b9865a3ae9d512bc338c1f370aeca9975c60"
|
||||
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5a6474f06628d80386cdc4c09d443da9118ccfca"
|
||||
|
||||
[[package]]
|
||||
name = "hbbytecode"
|
||||
|
@ -439,7 +439,7 @@ source = "git+https://git.ablecorp.us/ableos/holey-bytes#e494785f93dad2722ebd9e5
|
|||
[[package]]
|
||||
name = "hblang"
|
||||
version = "0.1.0"
|
||||
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5555b9865a3ae9d512bc338c1f370aeca9975c60"
|
||||
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5a6474f06628d80386cdc4c09d443da9118ccfca"
|
||||
dependencies = [
|
||||
"hbvm 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
|
||||
]
|
||||
|
@ -447,7 +447,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "hbvm"
|
||||
version = "0.1.0"
|
||||
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5555b9865a3ae9d512bc338c1f370aeca9975c60"
|
||||
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#5a6474f06628d80386cdc4c09d443da9118ccfca"
|
||||
dependencies = [
|
||||
"hbbytecode 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
|
||||
]
|
||||
|
|
|
@ -70,7 +70,6 @@ impl Package {
|
|||
let mut bytes = Vec::new();
|
||||
// compile here
|
||||
|
||||
println!("Precompilation");
|
||||
let _ = hblang::run_compiler(
|
||||
&path,
|
||||
Options {
|
||||
|
@ -80,7 +79,6 @@ impl Package {
|
|||
&mut bytes,
|
||||
);
|
||||
let _ = hblang::run_compiler(&path, Default::default(), &mut bytes);
|
||||
println!("Post-compilation");
|
||||
|
||||
match std::fs::create_dir("target/programs") {
|
||||
Ok(_) => (),
|
||||
|
|
2
sysdata/libraries/ignim/README.md
Normal file
2
sysdata/libraries/ignim/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Ignim
|
||||
Ignim is the ableOS vulkan interface library.
|
7
sysdata/libraries/ignim/src/lib.hb
Normal file
7
sysdata/libraries/ignim/src/lib.hb
Normal file
|
@ -0,0 +1,7 @@
|
|||
VK_VERSION_MAJOR := 1;
|
||||
VK_VERSION_MINOR := 0;
|
||||
|
||||
init_vulkan := fn(): void {
|
||||
|
||||
return
|
||||
}
|
|
@ -16,4 +16,4 @@ create := fn(): int {
|
|||
msg_length := string.length(msg);
|
||||
*msg = 0
|
||||
return @eca(int, 1, 0, msg, msg_length)
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
string := @use("rel:string.hb")
|
||||
log := @use("rel:log.hb")
|
||||
memory := @use("rel:memory.hb")
|
||||
buffer := @use("rel:buffer.hb")
|
||||
buffer := @use("rel:buffer.hb")
|
|
@ -11,4 +11,4 @@ error := fn(message: ^u8): void return log(message, 0)
|
|||
warn := fn(message: ^u8): void return log(message, 1)
|
||||
info := fn(message: ^u8): void return log(message, 2)
|
||||
debug := fn(message: ^u8): void return log(message, 3)
|
||||
trace := fn(message: ^u8): void return log(message, 4)
|
||||
trace := fn(message: ^u8): void return log(message, 4)
|
|
@ -15,4 +15,4 @@ release_page := fn(ptr: ^u8, page_count: u8): void {
|
|||
*msg_ptr = ptr
|
||||
|
||||
return @eca(void, 3, 2, msg, 12)
|
||||
}
|
||||
}
|
|
@ -48,4 +48,4 @@ reverse := fn(s: ^u8): void {
|
|||
set := fn(change: ^u8, new: int): void {
|
||||
*change = new
|
||||
return
|
||||
}
|
||||
}
|
2
sysdata/libraries/windo/README.md
Normal file
2
sysdata/libraries/windo/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Pinnacle
|
||||
Pinnacle is the windowing system api for ableOS
|
14
sysdata/libraries/windo/src/element.hb
Normal file
14
sysdata/libraries/windo/src/element.hb
Normal file
|
@ -0,0 +1,14 @@
|
|||
Element := struct {
|
||||
width: int,
|
||||
height: int,
|
||||
|
||||
x: u16,
|
||||
y: u16,
|
||||
|
||||
id: int,
|
||||
}
|
||||
|
||||
create_element := fn(): Element {
|
||||
return Element.(0, 0, 0, 0, 0)
|
||||
}
|
||||
|
0
sysdata/libraries/windo/src/frame.hb
Normal file
0
sysdata/libraries/windo/src/frame.hb
Normal file
14
sysdata/libraries/windo/src/lib.hb
Normal file
14
sysdata/libraries/windo/src/lib.hb
Normal file
|
@ -0,0 +1,14 @@
|
|||
create_window := fn(): WindowID {
|
||||
return WindowID.(1, 2)
|
||||
}
|
||||
|
||||
WindowID := struct {
|
||||
host_id: int,
|
||||
window_id: int,
|
||||
}
|
||||
|
||||
/*
|
||||
update_ui := fn(window_id: WindowID): bool {
|
||||
return 1 == 0
|
||||
}
|
||||
*/
|
3
sysdata/libraries/windo/src/text.hb
Normal file
3
sysdata/libraries/windo/src/text.hb
Normal file
|
@ -0,0 +1,3 @@
|
|||
ui_lisp_text_example := "(text id_1)\0";
|
||||
|
||||
|
|
@ -12,4 +12,4 @@ main := fn(): int {
|
|||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
stn := @use("../../../libraries/stn/src/lib.hb");
|
||||
.{log, string, memory, buffer} := stn
|
||||
|
||||
windo := @use("../../../libraries/windo/src/lib.hb");
|
||||
.{WindowID, create_window} := windo
|
||||
|
||||
service_search := fn(): void {
|
||||
a := "\{01}\0"
|
||||
|
@ -19,10 +21,10 @@ main := fn(): int {
|
|||
log.info("abc\0")
|
||||
memory.release_page(memory_pages, 3)
|
||||
|
||||
window := windo.create_window()
|
||||
window := create_window()
|
||||
|
||||
// todo: abstract this out
|
||||
port_str := "\0\{70}\0"
|
||||
a := @eca(u8, 3, 3, port_str, 2)
|
||||
return 0
|
||||
}
|
||||
}
|
|
@ -18,4 +18,4 @@ main := fn(): void {
|
|||
td := s.display_int(a, page)
|
||||
log.debug(td)
|
||||
return
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue