2023-07-18 20:33:00 -07:00
|
|
|
#pragma once
|
|
|
|
#include "gen.hpp"
|
|
|
|
|
|
|
|
namespace gen {
|
|
|
|
|
|
|
|
struct SymbolInfo
|
|
|
|
{
|
|
|
|
StringCached File;
|
|
|
|
char const* Marker;
|
|
|
|
Code Signature;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct Scanner
|
|
|
|
{
|
|
|
|
struct RequestEntry
|
|
|
|
{
|
|
|
|
SymbolInfo Info;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Receipt
|
|
|
|
{
|
|
|
|
StringCached File;
|
|
|
|
Code Defintion;
|
|
|
|
bool Result;
|
|
|
|
};
|
|
|
|
|
|
|
|
AllocatorInfo MemAlloc;
|
|
|
|
|
|
|
|
static void set_allocator( AllocatorInfo allocator );
|
|
|
|
|
2023-07-19 20:42:28 -07:00
|
|
|
Array<FileInfo> Files;
|
2023-07-18 20:33:00 -07:00
|
|
|
String Buffer;
|
2023-07-19 20:42:28 -07:00
|
|
|
Array<RequestEntry> Requests;
|
2023-07-18 20:33:00 -07:00
|
|
|
|
|
|
|
void add_files( s32 num, char const** files );
|
|
|
|
|
|
|
|
void add( SymbolInfo signature, Policy policy );
|
|
|
|
|
2023-07-19 20:42:28 -07:00
|
|
|
bool process_requests( Array<Receipt> out_receipts );
|
2023-07-18 20:33:00 -07:00
|
|
|
};
|
2023-07-19 20:42:28 -07:00
|
|
|
|
|
|
|
// namespace gen
|
2023-07-20 22:12:38 -07:00
|
|
|
}
|