forked from AbleOS/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]]
|
[[package]]
|
||||||
name = "hbbytecode"
|
name = "hbbytecode"
|
||||||
version = "0.1.0"
|
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]]
|
[[package]]
|
||||||
name = "hbbytecode"
|
name = "hbbytecode"
|
||||||
|
@ -439,7 +439,7 @@ source = "git+https://git.ablecorp.us/ableos/holey-bytes#e494785f93dad2722ebd9e5
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hblang"
|
name = "hblang"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"hbvm 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
|
"hbvm 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
|
||||||
]
|
]
|
||||||
|
@ -447,7 +447,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hbvm"
|
name = "hbvm"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"hbbytecode 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
|
"hbbytecode 0.1.0 (git+https://git.ablecorp.us/AbleOS/holey-bytes.git)",
|
||||||
]
|
]
|
||||||
|
|
|
@ -70,7 +70,6 @@ impl Package {
|
||||||
let mut bytes = Vec::new();
|
let mut bytes = Vec::new();
|
||||||
// compile here
|
// compile here
|
||||||
|
|
||||||
println!("Precompilation");
|
|
||||||
let _ = hblang::run_compiler(
|
let _ = hblang::run_compiler(
|
||||||
&path,
|
&path,
|
||||||
Options {
|
Options {
|
||||||
|
@ -80,7 +79,6 @@ impl Package {
|
||||||
&mut bytes,
|
&mut bytes,
|
||||||
);
|
);
|
||||||
let _ = hblang::run_compiler(&path, Default::default(), &mut bytes);
|
let _ = hblang::run_compiler(&path, Default::default(), &mut bytes);
|
||||||
println!("Post-compilation");
|
|
||||||
|
|
||||||
match std::fs::create_dir("target/programs") {
|
match std::fs::create_dir("target/programs") {
|
||||||
Ok(_) => (),
|
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
|
||||||
|
}
|
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";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
stn := @use("../../../libraries/stn/src/lib.hb");
|
stn := @use("../../../libraries/stn/src/lib.hb");
|
||||||
.{log, string, memory, buffer} := stn
|
.{log, string, memory, buffer} := stn
|
||||||
|
|
||||||
|
windo := @use("../../../libraries/windo/src/lib.hb");
|
||||||
|
.{WindowID, create_window} := windo
|
||||||
|
|
||||||
service_search := fn(): void {
|
service_search := fn(): void {
|
||||||
a := "\{01}\0"
|
a := "\{01}\0"
|
||||||
|
@ -19,7 +21,7 @@ main := fn(): int {
|
||||||
log.info("abc\0")
|
log.info("abc\0")
|
||||||
memory.release_page(memory_pages, 3)
|
memory.release_page(memory_pages, 3)
|
||||||
|
|
||||||
window := windo.create_window()
|
window := create_window()
|
||||||
|
|
||||||
// todo: abstract this out
|
// todo: abstract this out
|
||||||
port_str := "\0\{70}\0"
|
port_str := "\0\{70}\0"
|
||||||
|
|
Loading…
Reference in a new issue