Initial commit
This commit is contained in:
.gitignoreLinker.ldMakefileMakefile.flags
driver/irq/pic
execformat/pe
extlib
graphics
interrupt
handler.asm.Shandler.chandlers.hinit.cinterrupt.hinterrupt_testcode.Sload_gdt.Smap_handler.Ssyscall.Ssyscall.htestcode.h
kernel
libc
READMEabs.c
main.cmain.hinclude
assert.hctype.herrno.hfloat.hinttypes.hiso646.hlimits.hlocale.h
memcmp.cstrncat.cstrncmp.cstrncpy.cpdclib
_PDCLIB_config.h_PDCLIB_defguard.h_PDCLIB_glue.h_PDCLIB_internal.h_PDCLIB_lib_ext1.h_PDCLIB_print.h_PDCLIB_tzcode.h
signal.hstdalign.hstdarg.hstdbool.hstddef.hstdint.hstdio.hstdlib.hstdnoreturn.hstring.hthreads.htime.hwctype.hmemory
liballoc_impl.cmemory.cmemory.hmemory.hppmemory_cpp.cpppaging_init.cpaging_internal.hpaging_map.cpaging_modeswitch.Spaging_physical.ctest_fillbits.ctest_take_bitfield.c
run.cmdruntime
calling_convention.Scalling_convention.hmemcpy.cmemcpy.hmemset_memmove.Spanic_assert.asm.Spanic_assert.hprintf.cprintf.hstdio.cstdio.hstring.ctest_memmove.ctest_utf8.cunicode.cunicode.h
util
vterm
2
vterm/vterm.c
Normal file
2
vterm/vterm.c
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
#include "../extlib/libvterm/vterm.h"
|
13
vterm/vterm.cpp
Normal file
13
vterm/vterm.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
#include "vterm.hpp"
|
||||
|
||||
static void *defaultMalloc(size_t size, void *userdata) {
|
||||
void *ptr = kMalloc(size);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
static void defaultFree(void *ptr, void *userdata) {
|
||||
kFree(ptr);
|
||||
}
|
||||
|
||||
VTermAllocatorFunctions vterm_Allocator = {defaultMalloc, defaultFree};
|
28
vterm/vterm.hpp
Normal file
28
vterm/vterm.hpp
Normal file
@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "../main.h"
|
||||
|
||||
#include "../memory/memory.h"
|
||||
#include "../memory/memory.hpp"
|
||||
#include "../extlib/libvterm/vterm.h"
|
||||
#include <cstring>
|
||||
|
||||
|
||||
namespace helos {
|
||||
|
||||
|
||||
class Terminal {
|
||||
public:
|
||||
Terminal() {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
extern VTermAllocatorFunctions vterm_Allocator;
|
||||
|
||||
|
||||
} // namespace helos
|
||||
|
||||
extern "C" {
|
||||
FASTCALL_ABI void vterm_Init();
|
||||
}
|
Reference in New Issue
Block a user