Skip to content

Commit

Permalink
Update Ecc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Dec 24, 2023
1 parent 32e04bd commit 1c454bb
Show file tree
Hide file tree
Showing 8 changed files with 2,399 additions and 2,403 deletions.
94 changes: 45 additions & 49 deletions Sources/Ecc/Ecc.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
<IntDir>Debug\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>.\Release\</OutDir>
<IntDir>.\Release\</IntDir>
<OutDir>Release\</OutDir>
<IntDir>Release\</IntDir>
<LinkIncremental>false</LinkIncremental>
<ExecutablePath>$(SolutionDir)..\Tools.Win32;$(ExecutablePath)</ExecutablePath>
<IncludePath>$(SolutionDir);$(ProjectDir);$(IncludePath)</IncludePath>
Expand All @@ -124,8 +124,8 @@
<ExecutablePath>$(SolutionDir)..\Tools.Win32;$(ExecutablePath)</ExecutablePath>
<IncludePath>$(SolutionDir);$(ProjectDir);$(IncludePath)</IncludePath>
<SourcePath>$(SolutionDir)Ecc;$(SourcePath)</SourcePath>
<OutDir>.\Release\</OutDir>
<IntDir>.\Release\</IntDir>
<OutDir>Release\</OutDir>
<IntDir>Release\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand All @@ -142,8 +142,7 @@
<ObjectFileName>.\Debug\</ObjectFileName>
<ProgramDataBaseFileName>.\Debug\</ProgramDataBaseFileName>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories></AdditionalIncludeDirectories>
</ClCompile>
<Midl>
<TypeLibraryName>.\Debug\Ecc.tlb</TypeLibraryName>
Expand All @@ -165,9 +164,9 @@
<GenerateMapFile>true</GenerateMapFile>
</Link>
<CustomBuildStep>
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
mkdir $(SolutionDir)..\Bin\Debug 2&gt;nul
copy Debug\$(TargetName).exe $(SolutionDir)..\Bin\Debug\ &gt;nul
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
mkdir $(SolutionDir)..\Bin\Debug 2&gt;nul
copy Debug\$(TargetName).exe $(SolutionDir)..\Bin\Debug\ &gt;nul
copy Debug\$(TargetName).map $(SolutionDir)..\Bin\Debug\ &gt;nul</Command>
<Message>Copying %(Filename) binaries to \Bin\Debug</Message>
<Outputs>$(SolutionDir)..\Bin\Debug\$(TargetName).exe;%(Outputs)</Outputs>
Expand All @@ -187,8 +186,7 @@ copy Debug\$(TargetName).map $(SolutionDir)..\Bin\Debug\ &gt;nul</Command>
<ObjectFileName>.\Debug\</ObjectFileName>
<ProgramDataBaseFileName>.\Debug\</ProgramDataBaseFileName>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories></AdditionalIncludeDirectories>
</ClCompile>
<Midl>
<TypeLibraryName>.\Debug\Ecc.tlb</TypeLibraryName>
Expand All @@ -210,9 +208,9 @@ copy Debug\$(TargetName).map $(SolutionDir)..\Bin\Debug\ &gt;nul</Command>
<GenerateMapFile>true</GenerateMapFile>
</Link>
<CustomBuildStep>
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
mkdir $(SolutionDir)..\Bin\Debug 2&gt;nul
copy Debug\$(TargetName).exe $(SolutionDir)..\Bin\Debug\ &gt;nul
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
mkdir $(SolutionDir)..\Bin\Debug 2&gt;nul
copy Debug\$(TargetName).exe $(SolutionDir)..\Bin\Debug\ &gt;nul
copy Debug\$(TargetName).map $(SolutionDir)..\Bin\Debug\ &gt;nul</Command>
<Message>Copying %(Filename) binaries to \Bin\Debug</Message>
<Outputs>$(SolutionDir)..\Bin\Debug\$(TargetName).exe;%(Outputs)</Outputs>
Expand All @@ -236,8 +234,7 @@ copy Debug\$(TargetName).map $(SolutionDir)..\Bin\Debug\ &gt;nul</Command>
<ObjectFileName>.\Release\</ObjectFileName>
<ProgramDataBaseFileName>.\Release\</ProgramDataBaseFileName>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories></AdditionalIncludeDirectories>
</ClCompile>
<Midl>
<TypeLibraryName>.\Release\Ecc.tlb</TypeLibraryName>
Expand All @@ -259,11 +256,11 @@ copy Debug\$(TargetName).map $(SolutionDir)..\Bin\Debug\ &gt;nul</Command>
<GenerateMapFile>true</GenerateMapFile>
</Link>
<CustomBuildStep>
<Command>mkdir $(SolutionDir)..\x32\SamTFE\Mods\SSA\Bin\ 2&gt;nul
copy Release\$(TargetName).exe $(SolutionDir)..\x32\SamTFE\Mods\SSA\Bin\ &gt;nul
copy Release\$(TargetName).map $(SolutionDir)..\x32\SamTFE\Mods\SSA\Bin\ &gt;nul</Command>
<Message>Copying %(Filename) binaries to \x32\SamTFE\Mods\SSA\Bin\</Message>
<Outputs>$(SolutionDir)..\x32\SamTFE\Mods\SSA\Bin\$(TargetName).exe;%(Outputs)</Outputs>
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
copy Release\$(TargetName).exe $(SolutionDir)..\Bin\ &gt;nul
copy Release\$(TargetName).map $(SolutionDir)..\Bin\ &gt;nul</Command>
<Message>Copying %(Filename) binaries to \Bin</Message>
<Outputs>$(SolutionDir)..\Bin\$(TargetName).exe;%(Outputs)</Outputs>
</CustomBuildStep>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -284,8 +281,7 @@ copy Release\$(TargetName).map $(SolutionDir)..\x32\SamTFE\Mods\SSA\Bin\ &gt;nul
<ObjectFileName>.\Release\</ObjectFileName>
<ProgramDataBaseFileName>.\Release\</ProgramDataBaseFileName>
<DisableSpecificWarnings>4996;4333</DisableSpecificWarnings>
<AdditionalIncludeDirectories>
</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories></AdditionalIncludeDirectories>
</ClCompile>
<Midl>
<TypeLibraryName>.\Release\Ecc.tlb</TypeLibraryName>
Expand All @@ -307,53 +303,53 @@ copy Release\$(TargetName).map $(SolutionDir)..\x32\SamTFE\Mods\SSA\Bin\ &gt;nul
<GenerateMapFile>true</GenerateMapFile>
</Link>
<CustomBuildStep>
<Command>mkdir $(SolutionDir)..\x64\SamTFE\Mods\SSA\Bin\ 2&gt;nul
copy Release\$(TargetName).exe $(SolutionDir)..\x64\SamTFE\Mods\SSA\Bin\ &gt;nul
copy Release\$(TargetName).map $(SolutionDir)..\x64\SamTFE\Mods\SSA\Bin\ &gt;nul</Command>
<Message>Copying %(Filename) binaries to \x32\SamTFE\Mods\SSA\Bin\</Message>
<Outputs>$(SolutionDir)..\x64\SamTFE\Mods\SSA\Bin\$(TargetName).exe;%(Outputs)</Outputs>
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
copy Release\$(TargetName).exe $(SolutionDir)..\Bin\ &gt;nul
copy Release\$(TargetName).map $(SolutionDir)..\Bin\ &gt;nul</Command>
<Message>Copying %(Filename) binaries to \Bin</Message>
<Outputs>$(SolutionDir)..\Bin\$(TargetName).exe;%(Outputs)</Outputs>
</CustomBuildStep>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Template|Win32'">
<CustomBuildStep>
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
copy Debug\%(Filename).exe $(SolutionDir)..\Bin\ &gt;nul
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
copy Debug\%(Filename).exe $(SolutionDir)..\Bin\ &gt;nul
copy Debug\%(Filename).map $(SolutionDir)..\Bin\ &gt;nul</Command>
</CustomBuildStep>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Template|x64'">
<CustomBuildStep>
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
copy Debug\%(Filename).exe $(SolutionDir)..\Bin\ &gt;nul
<Command>mkdir $(SolutionDir)..\Bin 2&gt;nul
copy Debug\%(Filename).exe $(SolutionDir)..\Bin\ &gt;nul
copy Debug\%(Filename).map $(SolutionDir)..\Bin\ &gt;nul</Command>
</CustomBuildStep>
</ItemDefinitionGroup>
<ItemGroup>
<CustomBuild Include="Parser.y">
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
del %(RootDir)%(Directory)\Parser.c /q</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
del %(RootDir)%(Directory)\Parser.c /q</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Creating parser source</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Creating parser source</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(RootDir)%(Directory)\Parser.cpp;%(RootDir)%(Directory)\Parser.h;%(Outputs)</Outputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(RootDir)%(Directory)\Parser.cpp;%(RootDir)%(Directory)\Parser.h;%(Outputs)</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
del %(RootDir)%(Directory)\Parser.c /q</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">pushd $(SolutionDir)
bison -o$(ProjectName)/Parser.c $(ProjectName)/Parser.y -d
popd
copy %(RootDir)%(Directory)\Parser.c %(RootDir)%(Directory)\Parser.cpp
del %(RootDir)%(Directory)\Parser.c /q</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Creating parser source</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Creating parser source</Message>
Expand Down Expand Up @@ -393,4 +389,4 @@ del %(RootDir)%(Directory)\Parser.c /q</Command>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
112 changes: 56 additions & 56 deletions Sources/Ecc/Ecc.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{acd5aeef-9312-4c06-9a18-ffc69148b586}</UniqueIdentifier>
<Extensions>cpp</Extensions>
</Filter>
<Filter Include="Source Files\Grammar files">
<UniqueIdentifier>{97120739-0d00-462f-bb75-be637f0e69f3}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\Dummy">
<UniqueIdentifier>{414eb5ab-c891-41f1-85bb-3594afce7081}</UniqueIdentifier>
<Extensions>c</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{aebfcf57-f684-490f-baf9-b3c0fd748e23}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;fi;fd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{cf15f1a2-66f9-41f7-872d-8fbaa310a5e2}</UniqueIdentifier>
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Parser.c">
<Filter>Source Files\Dummy</Filter>
</ClCompile>
<ClCompile Include="Main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Parser.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Scanner.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Main.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="StdH.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="unistd.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="Parser.y">
<Filter>Source Files\Grammar files</Filter>
</CustomBuild>
<CustomBuild Include="Scanner.l">
<Filter>Source Files\Grammar files</Filter>
</CustomBuild>
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{acd5aeef-9312-4c06-9a18-ffc69148b586}</UniqueIdentifier>
<Extensions>cpp</Extensions>
</Filter>
<Filter Include="Source Files\Grammar files">
<UniqueIdentifier>{97120739-0d00-462f-bb75-be637f0e69f3}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\Dummy">
<UniqueIdentifier>{414eb5ab-c891-41f1-85bb-3594afce7081}</UniqueIdentifier>
<Extensions>c</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{aebfcf57-f684-490f-baf9-b3c0fd748e23}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;fi;fd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{cf15f1a2-66f9-41f7-872d-8fbaa310a5e2}</UniqueIdentifier>
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Parser.c">
<Filter>Source Files\Dummy</Filter>
</ClCompile>
<ClCompile Include="Main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Parser.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Scanner.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Main.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="StdH.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="unistd.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="Parser.y">
<Filter>Source Files\Grammar files</Filter>
</CustomBuild>
<CustomBuild Include="Scanner.l">
<Filter>Source Files\Grammar files</Filter>
</CustomBuild>
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions Sources/Ecc/Ecc.vcxproj.user
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>
4 changes: 2 additions & 2 deletions Sources/Ecc/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ void ReplaceIfChanged(const char *strOld, const char *strNew)

// skip #line directives
while(strNewLine[0]=='#' && strNewLine[1]=='l' && !feof(fNew)) {
fgets(strNewLine, sizeof(strNewLine)-1, fNew);
char *str = fgets(strNewLine, sizeof(strNewLine)-1, fNew);
}
while(strOldLine[0]=='#' && strOldLine[1]=='l' && !feof(fOld)) {
fgets(strOldLine, sizeof(strOldLine)-1, fOld);
char *str = fgets(strOldLine, sizeof(strOldLine)-1, fOld);
}
if (strcmp(strNewLine, strOldLine)!=0) {
iChanged = 1;
Expand Down
Loading

0 comments on commit 1c454bb

Please sign in to comment.