Switch: to freestanding stdint and stdbool headers

This commit is contained in:
xamidev
2024-08-24 16:26:14 +02:00
parent 0146613ce7
commit a03bb42790
26 changed files with 31 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
#ifndef INCLUDE_IO_H
#define INCLUDE_IO_H
#include "../libc/stdint.h"
#include <stdint.h>
void outb(unsigned short port, unsigned char data);
unsigned char inb(unsigned short port);

View File

@@ -1,6 +1,6 @@
#include "kheap.h"
#include "../libc/stdint.h"
#include <stdint.h>
extern uint32_t end;
uint32_t placement_address = (uint32_t)&end;

View File

@@ -1,7 +1,7 @@
#ifndef KHEAP_H
#define KHEAP_H
#include "../libc/stdint.h"
#include <stdint.h>
uint32_t kmalloc_a(uint32_t sz);
uint32_t kmalloc_p(uint32_t sz, uint32_t *phys);

View File

@@ -5,7 +5,7 @@
#include "system.h"
#include "paging.h"
#include "../drivers/ata.h"
#include "../libc/stdint.h"
#include <stdint.h>
#include "../drivers/framebuffer.h"
typedef struct {

View File

@@ -1,4 +1,4 @@
#include "../libc/stdint.h"
#include <stdint.h>
#include "paging.h"
#include "../libc/stdio.h"
#include "system.h"

View File

@@ -2,7 +2,7 @@
#define PAGING_H
#include "system.h"
#include "../libc/stdint.h"
#include <stdint.h>
typedef struct
{
uint32_t present : 1;

View File

@@ -2,7 +2,7 @@
#include "../libc/stdio.h"
#include "../libc/string.h"
#include "../programs/programs.h"
#include "../libc/stdint.h"
#include <stdint.h>
#define BUFFER_SIZE 256
#define MAX_COMMANDS 16

View File

@@ -1,5 +1,5 @@
#include "system.h"
#include "../libc/stdint.h"
#include <stdint.h>
void *memset(void *dest, char val, size_t count)
{

View File

@@ -1,9 +1,10 @@
#ifndef SYSTEM_H
#define SYSTEM_H
#include "../libc/stdint.h"
#include <stdint.h>
typedef int size_t;
#define NULL ((void*)0)
void *memset(void *dest, char val, size_t count);
void *memmove(void* dest, const void* src, size_t n);