diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-14 20:00:42 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-14 20:02:51 +0100 |
commit | b673c1a77d0af50ddb57d3b82f56141059150007 (patch) | |
tree | 782a9c4a90ff859d49c02d51bdb7c8872c3503c7 /Kernel | |
parent | bfef4afa6a47f014c1664010c3b074ec0a1204b0 (diff) | |
download | serenity-b673c1a77d0af50ddb57d3b82f56141059150007.zip |
Build Painter & friends into LibC. Use it in the GUI test app.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/ProcessGUI.cpp | 2 | ||||
-rw-r--r-- | Kernel/kprintf.cpp | 2 | ||||
-rw-r--r-- | Kernel/kprintf.h | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/Kernel/ProcessGUI.cpp b/Kernel/ProcessGUI.cpp index 06ac5d64fd..4f849e4e85 100644 --- a/Kernel/ProcessGUI.cpp +++ b/Kernel/ProcessGUI.cpp @@ -111,6 +111,8 @@ int Process::gui$invalidate_window(int window_id) if (it == m_windows.end()) return -EBADWINDOW; auto& window = *(*it).value; + // FIXME: This should queue up a message that the window server process can read. + // Poking into its data structures is not good. WindowManager::the().invalidate(window); return 0; } diff --git a/Kernel/kprintf.cpp b/Kernel/kprintf.cpp index f084eafc8e..412f915ea6 100644 --- a/Kernel/kprintf.cpp +++ b/Kernel/kprintf.cpp @@ -39,7 +39,7 @@ static void debugger_putch(char*&, char ch) IO::out8(0xe9, ch); } -int dbgprintf(const char* fmt, ...) +extern "C" int dbgprintf(const char* fmt, ...) { va_list ap; va_start(ap, fmt); diff --git a/Kernel/kprintf.h b/Kernel/kprintf.h index bb7eeb0144..2406b9c07d 100644 --- a/Kernel/kprintf.h +++ b/Kernel/kprintf.h @@ -2,7 +2,8 @@ #include <AK/Compiler.h> +extern "C" { int dbgprintf(const char *fmt, ...); int kprintf(const char *fmt, ...); int ksprintf(char* buf, const char *fmt, ...); - +} |