mirror of
https://github.com/0x221E/ibuild.git
synced 2026-01-18 02:42:20 +00:00
Add: Discovery phase added
Add: StringPool, StringView
This commit is contained in:
28
src/io.h
Normal file
28
src/io.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user