Remove local copies of repo
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
#ifndef ALIASES_H
|
||||
#define ALIASES_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define u8 uint8_t
|
||||
#define u16 uint16_t
|
||||
#define u32 uint32_t
|
||||
#define u64 uint64_t
|
||||
|
||||
#define i8 int8_t
|
||||
#define i16 int16_t
|
||||
#define i32 int32_t
|
||||
#define i64 int64_t
|
||||
|
||||
#define f32 float
|
||||
#define f64 double
|
||||
#define f128 long double
|
||||
|
||||
#define INTERNAL static
|
||||
#define PERSISTENT static
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define CLASS_MEMBER static
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // !ALIASES_H
|
@@ -1,18 +0,0 @@
|
||||
#ifndef PATH_UTILS_H
|
||||
#define PATH_UTILS_H
|
||||
|
||||
#include "aliases.h"
|
||||
|
||||
#define NUMPARTS(...) \
|
||||
(sizeof((const char *[]){"", __VA_ARGS__}) / sizeof(const char *) - 1)
|
||||
|
||||
#define JOIN_PATH(DST, ...) join_path(DST, NUMPARTS(__VA_ARGS__), __VA_ARGS__)
|
||||
|
||||
void join_path(char *dst, u64 count, ...);
|
||||
|
||||
#define DIRNAME(DST, PATH) dirup(DST, 1, PATH)
|
||||
#define DIRUP(DST, COUNT, PATH) dirup(DST, COUNT, PATH)
|
||||
|
||||
void dirup(char *dst, u64 levels, const char *path);
|
||||
|
||||
#endif // !PATH_UTILS_H
|
Reference in New Issue
Block a user