refactor: split up the utilities file into smaller modules

This commit is contained in:
lisk77 2025-09-19 03:48:08 +02:00
parent abaa6e12fc
commit ff71a92249
13 changed files with 572 additions and 488 deletions

32
include/object.h Normal file
View file

@ -0,0 +1,32 @@
#ifndef OBJECT_H
#define OBJECT_H
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <fcntl.h>
#include <zlib.h>
#ifdef _WIN32
#include <windows.h>
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#endif
#else
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
#endif
#include "hash.h"
#include "file.h"
#include "tree.h"
#include "utilities.h"
char* get_object(char*, size_t*);
void* parse_object(char*, ObjectType, size_t*);
#endif // OBJECT_H