This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MODULE HaikuAppTest; | |
| IMPORT S := SYSTEM, O := HaikuOS, P := HaikuPosix, C := HaikuCpp, CU := HaikuCppUtils, B := HaikuBeDecls, Kernel, IO := HaikuTerminal, TS := HostThreadSections; | |
| TYPE | |
| PtrView = POINTER TO View; | |
| View = RECORD (B.BView) END; | |
| PtrWindow = POINTER TO Window; | |
| Window = RECORD (B.BWindow) | |
| view: PtrView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| set -e | |
| rm -rf install | |
| INSTALL="$PWD/install" | |
| export PKG_CONFIG_PATH="$INSTALL/lib/pkgconfig:$PKG_CONFIG_PATH" | |
| export PATH="$INSTALL/bin:$PATH" | |
| build_package() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ExternalAllocator.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define ROUNDDOWN(a, b) (((a) / (b)) * (b)) | |
| #define ROUNDUP(a, b) ROUNDDOWN((a) + (b) - 1, b) | |
| static void Assert(bool cond) {if (!cond) abort();} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!sh | |
| set -e | |
| git clone --depth=1 -b inproc-haiku https://github.com/X547/wayland.git | |
| git clone --depth=1 -b 1.26 https://github.com/wayland-project/wayland-protocols.git | |
| git clone --depth=1 https://github.com/X547/wayland-server.git | |
| git clone --depth=1 -b xkbcommon-1.4.1 https://github.com/xkbcommon/libxkbcommon.git | |
| git clone --depth=1 -b xkeyboard-config-2.36 https://github.com/freedesktop/xkeyboard-config.git | |
| git clone --depth=1 -b gtk-3-24-haiku https://github.com/X547/gtk.git gtk3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/gallium/drivers/zink/zink_kopper.c b/src/gallium/drivers/zink/zink_kopper.c | |
| index 569215eef1d..ddc486d6472 100644 | |
| --- a/src/gallium/drivers/zink/zink_kopper.c | |
| +++ b/src/gallium/drivers/zink/zink_kopper.c | |
| @@ -325,6 +325,10 @@ update_swapchain(struct zink_screen *screen, struct kopper_displaytarget *cdt, u | |
| struct kopper_swapchain *cswap = kopper_CreateSwapchain(screen, cdt, w, h, &error); | |
| if (!cswap) | |
| return error; | |
| + | |
| + if (util_queue_is_initialized(&screen->flush_queue)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!sh | |
| set -e | |
| gcc --shared libgcc.c -Wl,--version-script=libgcc.ver -o lib/libgcc_s.so.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| rm -f kernel_arch_riscv64.a && ar csrDT kernel_arch_riscv64.a \ | |
| objects/haiku/riscv64/release/system/kernel/arch/riscv64/Htif.o \ | |
| objects/haiku/riscv64/release/system/kernel/arch/riscv64/RISCV64VMTranslationMap.o \ | |
| objects/haiku/riscv64/release/system/kernel/arch/riscv64/arch_asm.o \ | |
| objects/haiku/riscv64/release/system/kernel/arch/riscv64/arch_commpage.o \ | |
| objects/haiku/riscv64/release/system/kernel/arch/riscv64/arch_cpu.o \ | |
| objects/haiku/riscv64/release/system/kernel/arch/riscv64/arch_debug.o \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MODULE TestUnicode2; | |
| CONST | |
| ph* = 0FFFDH; (* � *) | |
| bom* = 0FEFFH; | |
| PROCEDURE CharLen8* (ch: SHORTCHAR): INTEGER; | |
| BEGIN | |
| CASE ch OF | |
| | 000X .. 07FX: RETURN 1; | |
| | 0C0X .. 0DFX: RETURN 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <algorithm> | |
| #include <Application.h> | |
| #include <Window.h> | |
| #include <View.h> | |
| #include <Rect.h> | |
| float FontSizeFromHeight(BFont font, float height) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From a94d195b2ef1188052d0b950bc889b5eb0dfc3dc Mon Sep 17 00:00:00 2001 | |
| From: X512 <danger_mail@list.ru> | |
| Date: Fri, 31 Dec 2021 08:17:23 +0900 | |
| Subject: Haiku: fix build and minimal operation | |
| --- | |
| dlls/nsiproxy.sys/ndis.c | 10 ++++++++ | |
| dlls/ntdll/unix/file.c | 2 ++ | |
| dlls/ntdll/unix/loader.c | 4 +++ | |
| dlls/ntdll/unix/serial.c | 2 ++ |