Added ESPTree header, which will handle the meta tree structure created on top of the esp/esm file buffer. Added editorconfig for column guidelines.
This commit is contained in:
10
.editorconfig
Normal file
10
.editorconfig
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
# All files
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
guidelines = 80
|
||||||
|
|
||||||
|
# Xml files
|
||||||
|
[*.xml]
|
||||||
|
indent_size = 2
|
||||||
@@ -11,6 +11,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mph_gen", "mph_gen\mph_gen.
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libz-static", "zlib-win-build\build-VS2022\libz-static\libz-static.vcxproj", "{B56D17BC-072B-42F3-844A-870A07AFBAAA}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libz-static", "zlib-win-build\build-VS2022\libz-static\libz-static.vcxproj", "{B56D17BC-072B-42F3-844A-870A07AFBAAA}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F2B93142-BC5A-4D28-8AAA-24D52FA59514}"
|
||||||
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
.editorconfig = .editorconfig
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Itanium = Debug|Itanium
|
Debug|Itanium = Debug|Itanium
|
||||||
|
|||||||
21
espReader/ESPTree.h
Normal file
21
espReader/ESPTree.h
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0.If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http ://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ESPReader.h"
|
||||||
|
|
||||||
|
typedef struct meta_node MetaNode;
|
||||||
|
|
||||||
|
/* Meta Nodes are used for constructing a more flexible tree structure
|
||||||
|
* on top of
|
||||||
|
*/
|
||||||
|
struct meta_node {
|
||||||
|
Node n;
|
||||||
|
MetaNode *parent;
|
||||||
|
MetaNode *prev;
|
||||||
|
MetaNode *next;
|
||||||
|
};
|
||||||
|
|
||||||
@@ -141,6 +141,7 @@
|
|||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="ESPReader.h" />
|
<ClInclude Include="ESPReader.h" />
|
||||||
|
<ClInclude Include="ESPTree.h" />
|
||||||
<ClInclude Include="msh.h" />
|
<ClInclude Include="msh.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -21,6 +21,9 @@
|
|||||||
<ClInclude Include="msh.h">
|
<ClInclude Include="msh.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="ESPTree.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="Reader.c">
|
<ClCompile Include="Reader.c">
|
||||||
|
|||||||
Reference in New Issue
Block a user