compiles agian...

This commit is contained in:
2023-08-21 21:40:23 -04:00
parent 4a2ed6de4e
commit 5c47777972
45 changed files with 70 additions and 66 deletions

View File

@ -1,3 +1,5 @@
#include "builder.hpp"
Builder Builder::open( char const* path )
{
Builder result;

View File

@ -1,3 +1,6 @@
#pragma once
#include "gen.hpp"
struct Builder
{
FileInfo File;

View File

@ -1,9 +1,6 @@
#pragma once
#include "gen.scanner.hpp"
namespace gen {
struct Policy
{
// Nothing for now.
@ -68,6 +65,3 @@ struct Editor
bool process_requests( Array<Receipt> out_receipts );
};
// namespace gen
};

View File

@ -1 +1 @@
#include "scanner.hpp"

View File

@ -1,3 +1,6 @@
#pragma once
#include "gen.hpp"
// This is a simple file reader that reads the entire file into memory.
// It has an extra option to skip the first few lines for undesired includes.
// This is done so that includes can be kept in dependency and component files so that intellisense works.
@ -48,7 +51,7 @@ Code scan_file( char const* path, bool skip_header_includes = true )
}
// Skip the line
sptr skip_size = sptr( scanner - str );
sptr skip_size = sptr( scanner - str.Data );
if ( current == '\r' )
{
skip_size += 2;