Files
ibuild/src/io.h
0x221E 3829703102 Add: Discovery phase added
Add: StringPool, StringView
2026-01-16 16:44:30 +01:00

29 lines
458 B
C

#ifndef IO_H
#define IO_H
#include "string.h"
typedef struct Arena Arena;
struct DirEntry
{
StringView path;
unsigned char type;
};
struct DirOpContext
{
Arena* a_f;
StringPool* sp;
};
typedef struct DirEntry DirEntry;
typedef struct DirOpContext DirOpContext;
// a should not contain a trailing slash
StringView path_concat_ss(StringPool* sp, StringView* a, StringView* b);
size_t dir_get_recursive(DirOpContext* doc, StringView* p);
#endif