From c7252588ebb95f97631e9470778c69afa00c35b5 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 1 Mar 2015 14:20:47 -0500 Subject: Huge restructure --- libc/include/stdio.h | 7 ------- libc/include/stdlib.h | 30 ------------------------------ libc/include/string.h | 4 ---- 3 files changed, 41 deletions(-) delete mode 100644 libc/include/stdio.h delete mode 100644 libc/include/stdlib.h delete mode 100644 libc/include/string.h (limited to 'libc') diff --git a/libc/include/stdio.h b/libc/include/stdio.h deleted file mode 100644 index 49966cf..0000000 --- a/libc/include/stdio.h +++ /dev/null @@ -1,7 +0,0 @@ -int printf(const char* fmt, ...) __attribute__ ((format (printf, 1, 2)));; -int puts(const char*); -int putchar(int); - -/* sets the I/O functions, allows easy switching between text mode and VBE */ -void set_putchar(void (*func)(int)); -void set_puts(void (*func)(const char*)); diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h deleted file mode 100644 index f55f0f5..0000000 --- a/libc/include/stdlib.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef _STDLIB_H_ -#define _STDLIB_H_ - -#include -#include -#include - -/* this is by no means standards-compliant... but who cares? :P */ - -/* NOT reentrant! */ -char* itoa(int val, int base); - -#define RAND_MAX ((1U << 31) - 1) - -#define MIN(x,y) ((xy)?x:y) - -uint64_t rand64(void); -unsigned int rand(void); -void srand(uint64_t); -int abs(int); -void *malloc(size_t); -int snprintf(char*, int, const char*, ...); -void assert_fail(const char*, const char*, int); -int toupper(int); -int tolower(int); - -#define assert(x) if(!(x))assert_fail(__func__, __FILE__, __LINE__); - -#endif diff --git a/libc/include/string.h b/libc/include/string.h deleted file mode 100644 index 05050a0..0000000 --- a/libc/include/string.h +++ /dev/null @@ -1,4 +0,0 @@ -#include -int strlen(const char*); -void* memset(void*, int, size_t); -void* memcpy(void*, void*, size_t); -- cgit v1.1