Flatten libs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 44s

This commit is contained in:
2026-02-12 23:16:57 +01:00
parent ab758d8929
commit 28ceabdb72
18 changed files with 19 additions and 28 deletions

View File

@@ -1,9 +1,9 @@
#include <limits.h> #include <limits.h>
#include <process/process.h> #include <process.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <terminal/terminal.h> #include <terminal.h>
#define MUTEX 2000 #define MUTEX 2000

View File

@@ -1,3 +0,0 @@
c += alloc/liballoc.c
o += alloc/liballoc.o

View File

@@ -1,7 +1,7 @@
/* liballoc breaks when optimized too aggressively, for eg. clang's -Oz */ /* liballoc breaks when optimized too aggressively, for eg. clang's -Oz */
#pragma clang optimize off #pragma clang optimize off
#include <alloc/liballoc.h> #include <liballoc.h>
#include <m/system.h> #include <m/system.h>
#define LIBALLOC_MUTEX 500 #define LIBALLOC_MUTEX 500

View File

@@ -1 +1,3 @@
include alloc/src.mk c += liballoc.c
o += liballoc.o

View File

@@ -1,4 +1,4 @@
#include <alloc/liballoc.h> #include <liballoc.h>
#include <m/system.h> #include <m/system.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -1,7 +1,7 @@
#include <alloc/liballoc.h> #include <liballoc.h>
#include <m/status.h> #include <m/status.h>
#include <m/system.h> #include <m/system.h>
#include <process/process.h> #include <process.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -1,3 +0,0 @@
c += process/process.c
o += process/process.o

View File

@@ -1 +1,3 @@
include process/src.mk c += process.c
o += process.o

View File

@@ -1 +1,3 @@
include terminal/src.mk c += terminal.c
o += terminal.o

View File

@@ -1,7 +1,6 @@
#include <m/system.h> #include <m/system.h>
#include <stddef.h> #include <stddef.h>
#include <terminal/device.h> #include <terminal.h>
#include <terminal/terminal.h>
void terminal_print (const char* string, size_t len) { void terminal_print (const char* string, size_t len) {
device_do (TERMINAL_DEVICE, TERMINAL_PUTSTR, (void*)string, &len, NULL, NULL); device_do (TERMINAL_DEVICE, TERMINAL_PUTSTR, (void*)string, &len, NULL, NULL);

View File

@@ -1,8 +1,11 @@
#ifndef _LIBTERMINAL_TERMINAL_TERMINAL_H #ifndef _LIBTERMINAL_TERMINAL_TERMINAL_H
#define _LIBTERMINAL_TERMINAL_TERMINAL_H #define _LIBTERMINAL_TERMINAL_TERMINAL_H
#include <m/terminal_device.h>
#include <stddef.h> #include <stddef.h>
#define TERMINAL_DEVICE 1
void terminal_print (const char* string, size_t len); void terminal_print (const char* string, size_t len);
#endif // _LIBTERMINAL_TERMINAL_TERMINAL_H #endif // _LIBTERMINAL_TERMINAL_TERMINAL_H

View File

@@ -1,8 +0,0 @@
#ifndef _LIBTERMINAL_TERMINAL_DEVICE_H
#define _LIBTERMINAL_TERMINAL_DEVICE_H
#define TERMINAL_DEVICE 1
#include <m/terminal_device.h>
#endif // _LIBTERMINAL_TERMINAL_DEVICE_H

View File

@@ -1,3 +0,0 @@
c += terminal/terminal.c
o += terminal/terminal.o