Delete directory 'include'
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
// this code is licenced under Wrathmark licence
|
|
||||||
// © 2026 wullie wulliestudio.com
|
|
||||||
// please see attached licence for full usage and rights
|
|
||||||
|
|
||||||
#ifndef FILES_h
|
|
||||||
#define FILES_h
|
|
||||||
|
|
||||||
// file handling
|
|
||||||
long Wopen(const char *pathname, int flags, int mode);
|
|
||||||
long closeFile(long fd);
|
|
||||||
long reader(long fd, char *string);
|
|
||||||
long mkdir(const char *filePath, int mode);
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
// this code is licenced under Wrathmark licence
|
|
||||||
// © 2026 wullie wulliestudio.com
|
|
||||||
// please see attached licence for full usage and rights
|
|
||||||
|
|
||||||
#ifndef LOCALHEADER_H
|
|
||||||
#define LOCALHEADER_H
|
|
||||||
|
|
||||||
// syscall macros
|
|
||||||
#ifdef __linux__
|
|
||||||
#define SYS_read 0
|
|
||||||
#define SYS_write 1
|
|
||||||
#define SYS_open 2
|
|
||||||
#define SYS_close 3
|
|
||||||
#define SYS_sleep 35
|
|
||||||
#define SYS_exit 60
|
|
||||||
#define SYS_mkdir 83
|
|
||||||
|
|
||||||
|
|
||||||
#elif __FreeBSD__
|
|
||||||
#define SYS_read 3
|
|
||||||
#define SYS_write 4
|
|
||||||
#define SYS_open 5
|
|
||||||
#define SYS_close 6
|
|
||||||
#define SYS_sleep 244
|
|
||||||
#define SYS_exit 1
|
|
||||||
#define SYS_mkdir 136
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// local functions
|
|
||||||
void exit(int code);
|
|
||||||
|
|
||||||
// time spec for sleep
|
|
||||||
typedef struct timespec {
|
|
||||||
long tv_sec;
|
|
||||||
long tv_nsec;
|
|
||||||
} timespec;
|
|
||||||
|
|
||||||
// syscalls go here i dont want them exposed to the user
|
|
||||||
long syscall1(long number, long arg1);
|
|
||||||
long syscall2(long number, long arg1, long arg2);
|
|
||||||
long syscall3(long number, long arg1, long arg2, long arg3);
|
|
||||||
long syscall4(long number, long arg1, long arg2, long arg3, long arg4);
|
|
||||||
#endif
|
|
||||||
Binary file not shown.
@@ -1,41 +0,0 @@
|
|||||||
// this code is licenced under Wrathmark licence
|
|
||||||
// © 2026 wullie wulliestudio.com
|
|
||||||
// please see attached licence for full usage and rights
|
|
||||||
|
|
||||||
#ifndef MAIN_h
|
|
||||||
#define MAIN_h
|
|
||||||
|
|
||||||
|
|
||||||
// gay ass glibc shit why in the fuck does this exist like that
|
|
||||||
#undef NULL
|
|
||||||
#define NULL 0
|
|
||||||
|
|
||||||
#define bool _Bool
|
|
||||||
#define true 1
|
|
||||||
#define false 0
|
|
||||||
|
|
||||||
// import tree
|
|
||||||
#include "string.h"
|
|
||||||
#include "files.h"
|
|
||||||
|
|
||||||
// memory
|
|
||||||
void Wmalloc();
|
|
||||||
|
|
||||||
// error handling
|
|
||||||
void safeError(char *error);
|
|
||||||
void riskyError();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// math
|
|
||||||
int intParser(char *rawInt);
|
|
||||||
float invSqrt(float x);
|
|
||||||
float floatPow(float base, int exponant);
|
|
||||||
int intPow(int base, int exponant0);
|
|
||||||
|
|
||||||
|
|
||||||
// misc
|
|
||||||
void sleeper(long seconds);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
// this code is licenced under Wrathmark licence
|
|
||||||
// © 2026 wullie wulliestudio.com
|
|
||||||
// please see attached licence for full usage and rights
|
|
||||||
|
|
||||||
#ifndef STRING_h
|
|
||||||
#define STRING_h
|
|
||||||
|
|
||||||
// ANSI colors
|
|
||||||
// foreground
|
|
||||||
#define BLACK "\x1b[30m"
|
|
||||||
#define RED "\x1b[31m"
|
|
||||||
#define GREEN "\x1b[32m"
|
|
||||||
#define YELLOW "\x1b[33m"
|
|
||||||
#define BLUE "\x1b[34m"
|
|
||||||
#define MAGENTA "\x1b[35m"
|
|
||||||
#define CYAN "\x1b[36m"
|
|
||||||
#define WHITE "\x1b[37m"
|
|
||||||
#define NORMAL "\x1b[m"
|
|
||||||
|
|
||||||
// background
|
|
||||||
#define BBLACK "\x1b[40m"
|
|
||||||
#define BRED "\x1b[41m"
|
|
||||||
#define BGREEN "\x1b[42m"
|
|
||||||
#define BYELLOW "\x1b[43m"
|
|
||||||
#define BBLUE "\x1b[44m"
|
|
||||||
#define BMAGENTA "\x1b[45m"
|
|
||||||
#define BCYAN "\x1b[46m"
|
|
||||||
#define BWHITE "\x1b[47m"
|
|
||||||
|
|
||||||
// printing
|
|
||||||
void ColorPrint(char *string, char *color);
|
|
||||||
void BackgroundPrint(char *string, char *Bcolor);
|
|
||||||
void print(char *string);
|
|
||||||
|
|
||||||
long unsigned lengthStr(char *string);
|
|
||||||
|
|
||||||
// conversion
|
|
||||||
void upper(char string[]);
|
|
||||||
void lower(char string[]);
|
|
||||||
const char *intCon(int num);
|
|
||||||
|
|
||||||
|
|
||||||
void input();
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user