mirror of
https://github.com/cc65/cc65.git
synced 2024-06-07 23:29:39 +00:00
initial fix
This commit is contained in:
parent
5537b61e6a
commit
0e8fcfe249
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="ar65\add.h" />
|
||||
<ClInclude Include="ar65\del.h" />
|
||||
|
|
|
@ -77,7 +77,7 @@ static HashEntry* NewHashEntry (const char* Name, const ObjData* Module)
|
|||
/* Create and return a new hash entry */
|
||||
{
|
||||
/* Get the length of the name */
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Get memory for the struct */
|
||||
HashEntry* H = xmalloc (sizeof (HashEntry) + Len);
|
||||
|
|
|
@ -103,7 +103,7 @@ void WriteVar (FILE* F, unsigned long V)
|
|||
void WriteStr (FILE* F, const char* S)
|
||||
/* Write a string to the file */
|
||||
{
|
||||
unsigned Len = strlen (S);
|
||||
unsigned Len = (unsigned)strlen (S);
|
||||
WriteVar (F, Len);
|
||||
WriteData (F, S, Len);
|
||||
}
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="ca65\anonname.h" />
|
||||
<ClInclude Include="ca65\asserts.h" />
|
||||
|
|
|
@ -1889,7 +1889,7 @@ int FindInstruction (const StrBuf* Ident)
|
|||
return -1;
|
||||
} else {
|
||||
/* Found, return the entry */
|
||||
return ID - InsTab->Ins;
|
||||
return (int)(ID - InsTab->Ins);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -288,7 +288,7 @@ void ObjWriteVar (unsigned long V)
|
|||
void ObjWriteStr (const char* S)
|
||||
/* Write a string to the object file */
|
||||
{
|
||||
unsigned Len = strlen (S);
|
||||
unsigned Len = (unsigned)strlen (S);
|
||||
|
||||
/* Write the string with the length preceeded (this is easier for
|
||||
** the reading routine than the C format since the length is known in
|
||||
|
|
|
@ -1346,10 +1346,10 @@ static void DoIncBin (void)
|
|||
}
|
||||
|
||||
/* Insert it into the output */
|
||||
EmitData (Buf, BytesRead);
|
||||
EmitData (Buf, (unsigned)BytesRead);
|
||||
|
||||
/* Keep the counters current */
|
||||
Count -= BytesRead;
|
||||
Count -= (long)BytesRead;
|
||||
}
|
||||
|
||||
Done:
|
||||
|
|
|
@ -562,7 +562,7 @@ int NewInputFile (const char* Name)
|
|||
SB_Init (&S->V.File.Line);
|
||||
|
||||
/* Push the path for this file onto the include search lists */
|
||||
SB_CopyBuf (&Path, Name, FindName (Name) - Name);
|
||||
SB_CopyBuf (&Path, Name, (unsigned)(FindName (Name) - Name));
|
||||
SB_Terminate (&Path);
|
||||
S->V.File.IncSearchPath = PushSearchPath (IncSearchPath, SB_GetConstBuf (&Path));
|
||||
S->V.File.BinSearchPath = PushSearchPath (BinSearchPath, SB_GetConstBuf (&Path));
|
||||
|
|
60
src/cc65.sln
60
src/cc65.sln
|
@ -1,6 +1,8 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual C++ Express 2010
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.6.33829.357
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common", "common.vcxproj", "{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cc65", "cc65.vcxproj", "{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}"
|
||||
|
@ -66,61 +68,115 @@ EndProject
|
|||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Debug|x64.Build.0 = Debug|x64
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Release|Win32.Build.0 = Release|Win32
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Release|x64.ActiveCfg = Release|x64
|
||||
{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}.Release|x64.Build.0 = Release|x64
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Debug|x64.Build.0 = Debug|x64
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Release|Win32.Build.0 = Release|Win32
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Release|x64.ActiveCfg = Release|x64
|
||||
{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}.Release|x64.Build.0 = Release|x64
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Debug|x64.Build.0 = Debug|x64
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Release|Win32.Build.0 = Release|Win32
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Release|x64.ActiveCfg = Release|x64
|
||||
{D28CB737-E6CA-49C4-8CE9-FF05F86DD4EC}.Release|x64.Build.0 = Release|x64
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Debug|x64.Build.0 = Debug|x64
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Release|Win32.Build.0 = Release|Win32
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Release|x64.ActiveCfg = Release|x64
|
||||
{5E8C19C6-B167-440C-8BEF-3CBF109CDB49}.Release|x64.Build.0 = Release|x64
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Debug|x64.Build.0 = Debug|x64
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Release|Win32.Build.0 = Release|Win32
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Release|x64.ActiveCfg = Release|x64
|
||||
{26C749A0-814C-47A2-9D36-AE92AE932FE4}.Release|x64.Build.0 = Release|x64
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Debug|x64.Build.0 = Debug|x64
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Release|Win32.Build.0 = Release|Win32
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Release|x64.ActiveCfg = Release|x64
|
||||
{F657912F-050A-488B-B203-50ED5715CDD7}.Release|x64.Build.0 = Release|x64
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Debug|x64.Build.0 = Debug|x64
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Release|Win32.Build.0 = Release|Win32
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Release|x64.ActiveCfg = Release|x64
|
||||
{0BCFB793-2B25-40E2-B265-75848824AC4C}.Release|x64.Build.0 = Release|x64
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Debug|x64.Build.0 = Debug|x64
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Release|Win32.Build.0 = Release|Win32
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Release|x64.ActiveCfg = Release|x64
|
||||
{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}.Release|x64.Build.0 = Release|x64
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Debug|x64.Build.0 = Debug|x64
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Release|Win32.Build.0 = Release|Win32
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Release|x64.ActiveCfg = Release|x64
|
||||
{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}.Release|x64.Build.0 = Release|x64
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Debug|x64.Build.0 = Debug|x64
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Release|Win32.Build.0 = Release|Win32
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Release|x64.ActiveCfg = Release|x64
|
||||
{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}.Release|x64.Build.0 = Release|x64
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Debug|x64.Build.0 = Debug|x64
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Release|Win32.Build.0 = Release|Win32
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Release|x64.ActiveCfg = Release|x64
|
||||
{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}.Release|x64.Build.0 = Release|x64
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Debug|x64.Build.0 = Debug|x64
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Release|Win32.Build.0 = Release|Win32
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Release|x64.ActiveCfg = Release|x64
|
||||
{002A366E-2863-46A8-BDDE-DDF534AAEC73}.Release|x64.Build.0 = Release|x64
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Debug|x64.Build.0 = Debug|x64
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Release|Win32.Build.0 = Release|Win32
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Release|x64.ActiveCfg = Release|x64
|
||||
{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{B17EDBD5-DC04-4970-9CBD-56A98B6A3FCA}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="cc65\anonname.h" />
|
||||
<ClInclude Include="cc65\asmcode.h" />
|
||||
|
|
|
@ -427,7 +427,7 @@ int ParseOpcArgStr (const char* Arg, unsigned short* ArgInfo, struct StrBuf* Nam
|
|||
if (NameEnd == 0 || NameEnd > OffsetPart) {
|
||||
NameEnd = OffsetPart;
|
||||
}
|
||||
SB_CopyBuf (Name, Arg, NameEnd - Arg);
|
||||
SB_CopyBuf (Name, Arg, (unsigned)(NameEnd - Arg));
|
||||
SB_Terminate (Name);
|
||||
|
||||
} else {
|
||||
|
@ -435,7 +435,7 @@ int ParseOpcArgStr (const char* Arg, unsigned short* ArgInfo, struct StrBuf* Nam
|
|||
if (Parentheses == 0) {
|
||||
SB_CopyStr (Name, Arg);
|
||||
} else {
|
||||
SB_CopyBuf (Name, Arg, End - Arg);
|
||||
SB_CopyBuf (Name, Arg, (unsigned)(End - Arg));
|
||||
}
|
||||
SB_Terminate (Name);
|
||||
}
|
||||
|
|
|
@ -121,9 +121,9 @@ static const char* GetLabelName (unsigned Flags, uintptr_t Label, long Offs)
|
|||
case CF_STATIC:
|
||||
/* Local static memory cell */
|
||||
if (Offs) {
|
||||
xsprintf (Buf, sizeof (Buf), "%s%+ld", LocalDataLabelName (Label), Offs);
|
||||
xsprintf (Buf, sizeof (Buf), "%s%+ld", LocalDataLabelName ((unsigned)Label), Offs);
|
||||
} else {
|
||||
xsprintf (Buf, sizeof (Buf), "%s", LocalDataLabelName (Label));
|
||||
xsprintf (Buf, sizeof (Buf), "%s", LocalDataLabelName ((unsigned)Label));
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -140,9 +140,9 @@ static const char* GetLabelName (unsigned Flags, uintptr_t Label, long Offs)
|
|||
/* Literal */
|
||||
/* Static memory cell */
|
||||
if (Offs) {
|
||||
xsprintf (Buf, sizeof (Buf), "%s%+ld", PooledLiteralLabelName (Label), Offs);
|
||||
xsprintf (Buf, sizeof (Buf), "%s%+ld", PooledLiteralLabelName ((unsigned)Label), Offs);
|
||||
} else {
|
||||
xsprintf (Buf, sizeof (Buf), "%s", PooledLiteralLabelName (Label));
|
||||
xsprintf (Buf, sizeof (Buf), "%s", PooledLiteralLabelName ((unsigned)Label));
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -159,9 +159,9 @@ static const char* GetLabelName (unsigned Flags, uintptr_t Label, long Offs)
|
|||
case CF_CODE:
|
||||
/* Code label location */
|
||||
if (Offs) {
|
||||
xsprintf (Buf, sizeof (Buf), "%s%+ld", LocalLabelName (Label), Offs);
|
||||
xsprintf (Buf, sizeof (Buf), "%s%+ld", LocalLabelName ((unsigned)Label), Offs);
|
||||
} else {
|
||||
xsprintf (Buf, sizeof (Buf), "%s", LocalLabelName (Label));
|
||||
xsprintf (Buf, sizeof (Buf), "%s", LocalLabelName ((unsigned)Label));
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -952,7 +952,7 @@ cmp_t FindBoolCmpCond (const char* Name)
|
|||
/* Check for the correct subroutine name */
|
||||
if (strncmp (Name, "bool", 4) == 0) {
|
||||
/* Name is ok, search for the code in the table */
|
||||
return FindCmpCond (Name+4, strlen(Name)-4);
|
||||
return FindCmpCond (Name+4, (unsigned)strlen(Name)-4);
|
||||
} else {
|
||||
/* Not found */
|
||||
return CMP_INV;
|
||||
|
@ -966,7 +966,7 @@ cmp_t FindTosCmpCond (const char* Name)
|
|||
** Return the condition code or CMP_INV on failure.
|
||||
*/
|
||||
{
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Check for the correct subroutine name */
|
||||
if (strncmp (Name, "tos", 3) == 0 && strcmp (Name+Len-2, "ax") == 0) {
|
||||
|
|
|
@ -432,7 +432,7 @@ static void ReadOptStats (const char* Name)
|
|||
|
||||
/* Remove trailing white space including the line terminator */
|
||||
B = Buf;
|
||||
Len = strlen (B);
|
||||
Len = (unsigned)strlen (B);
|
||||
while (Len > 0 && IsSpace (B[Len-1])) {
|
||||
--Len;
|
||||
}
|
||||
|
|
|
@ -973,7 +973,7 @@ int IsRegVar (StackOpData* D)
|
|||
}
|
||||
|
||||
/* Must be the same zp loc with high byte in X */
|
||||
Len = strlen (LoadA->Arg);
|
||||
Len = (unsigned)strlen (LoadA->Arg);
|
||||
if (strncmp (LoadA->Arg, LoadX->Arg, Len) != 0 ||
|
||||
strcmp (LoadX->Arg + Len, "+1") != 0) {
|
||||
return 0;
|
||||
|
|
|
@ -55,7 +55,7 @@ static int MemAccess (CodeSeg* S, unsigned From, unsigned To, const CodeEntry* N
|
|||
/* Checks a range of code entries if there are any memory accesses to N->Arg */
|
||||
{
|
||||
/* Get the length of the argument */
|
||||
unsigned NLen = strlen (N->Arg);
|
||||
unsigned NLen = (unsigned)strlen (N->Arg);
|
||||
|
||||
/* What to check for? */
|
||||
enum {
|
||||
|
@ -97,7 +97,7 @@ static int MemAccess (CodeSeg* S, unsigned From, unsigned To, const CodeEntry* N
|
|||
return 1;
|
||||
}
|
||||
|
||||
ELen = strlen (E->Arg);
|
||||
ELen = (unsigned)strlen (E->Arg);
|
||||
if ((What & Base) != 0) {
|
||||
if (ELen == NLen - 2 && strncmp (E->Arg, N->Arg, NLen-2) == 0) {
|
||||
/* Found an access */
|
||||
|
|
|
@ -308,7 +308,7 @@ unsigned OptPtrLoad3 (CodeSeg* S)
|
|||
!CS_RangeHasLabel (S, I+1, 5) &&
|
||||
!CE_HasLabel (L[7]) &&
|
||||
/* Check the label last because this is quite costly */
|
||||
(Len = strlen (L[0]->Arg)) > 3 &&
|
||||
(Len = (unsigned)strlen (L[0]->Arg)) > 3 &&
|
||||
L[0]->Arg[0] == '<' &&
|
||||
L[0]->Arg[1] == '(' &&
|
||||
strlen (L[1]->Arg) == Len &&
|
||||
|
@ -412,7 +412,7 @@ unsigned OptPtrLoad4 (CodeSeg* S)
|
|||
CE_IsCallTo (L[8], "ldauidx") &&
|
||||
!CE_HasLabel (L[8]) &&
|
||||
/* Check the label last because this is quite costly */
|
||||
(Len = strlen (L[0]->Arg)) > 3 &&
|
||||
(Len = (unsigned)strlen (L[0]->Arg)) > 3 &&
|
||||
L[0]->Arg[0] == '<' &&
|
||||
L[0]->Arg[1] == '(' &&
|
||||
strlen (L[1]->Arg) == Len &&
|
||||
|
@ -971,7 +971,7 @@ unsigned OptPtrLoad12 (CodeSeg* S)
|
|||
if (L[0]->OPC == OP65_LDA &&
|
||||
L[0]->AM == AM65_ZP &&
|
||||
strncmp (L[0]->Arg, "regbank+", 8) == 0 &&
|
||||
(Len = strlen (L[0]->Arg)) > 0 &&
|
||||
(Len = (unsigned)strlen (L[0]->Arg)) > 0 &&
|
||||
CS_GetEntries (S, L+1, I+1, 14) &&
|
||||
!CS_RangeHasLabel (S, I+1, 7) &&
|
||||
!CS_RangeHasLabel (S, I+9, 5) &&
|
||||
|
@ -1100,7 +1100,7 @@ unsigned OptPtrLoad13 (CodeSeg* S)
|
|||
CS_GetEntries (S, L+1, I+1, 3) &&
|
||||
!CS_RangeHasLabel (S, I+1, 3) &&
|
||||
L[1]->OPC == OP65_LDX && L[1]->AM == AM65_ZP &&
|
||||
(Len = strlen (L[0]->Arg)) > 0 &&
|
||||
(Len = (unsigned)strlen (L[0]->Arg)) > 0 &&
|
||||
strncmp (L[0]->Arg, L[1]->Arg, Len) == 0 &&
|
||||
strcmp (L[1]->Arg + Len, "+1") == 0 &&
|
||||
L[2]->OPC == OP65_LDY &&
|
||||
|
@ -1173,7 +1173,7 @@ unsigned OptPtrLoad14 (CodeSeg* S)
|
|||
CS_GetEntries (S, L+1, I+1, 4) &&
|
||||
!CS_RangeHasLabel (S, I+1, 4) &&
|
||||
L[1]->OPC == OP65_LDX && L[1]->AM == AM65_ZP &&
|
||||
(Len = strlen (L[0]->Arg)) > 0 &&
|
||||
(Len = (unsigned)strlen (L[0]->Arg)) > 0 &&
|
||||
strncmp (L[0]->Arg, L[1]->Arg, Len) == 0 &&
|
||||
strcmp (L[1]->Arg + Len, "+1") == 0 &&
|
||||
(L[2]->Chg & REG_AX) == 0 &&
|
||||
|
@ -1244,7 +1244,7 @@ unsigned OptPtrLoad15 (CodeSeg* S)
|
|||
L[0]->OPC == OP65_LDA && L[0]->AM == AM65_ZP &&
|
||||
L[1]->OPC == OP65_LDX && L[1]->AM == AM65_ZP &&
|
||||
!CS_RangeHasLabel (S, I+1, 2) &&
|
||||
(Len = strlen (L[0]->Arg)) > 0 &&
|
||||
(Len = (unsigned)strlen (L[0]->Arg)) > 0 &&
|
||||
strncmp (L[0]->Arg, L[1]->Arg, Len) == 0 &&
|
||||
strcmp (L[1]->Arg + Len, "+1") == 0) {
|
||||
|
||||
|
@ -1620,7 +1620,7 @@ unsigned OptPtrLoad19 (CodeSeg* S)
|
|||
|
||||
CodeEntry* X;
|
||||
char* Label;
|
||||
int Len = strlen(L[4]->Arg);
|
||||
int Len = (int)strlen(L[4]->Arg);
|
||||
|
||||
/* Track the insertion point */
|
||||
unsigned IP = I + 12;
|
||||
|
|
|
@ -111,7 +111,7 @@ static const char* LoadAXZP (CodeSeg* S, unsigned I)
|
|||
L[1]->OPC == OP65_LDX &&
|
||||
L[1]->AM == AM65_ZP &&
|
||||
!CE_HasLabel (L[1]) &&
|
||||
(Len = strlen (L[0]->Arg)) == strlen (L[1]->Arg) - 2 &&
|
||||
(Len = (unsigned)strlen (L[0]->Arg)) == strlen (L[1]->Arg) - 2 &&
|
||||
memcmp (L[0]->Arg, L[1]->Arg, Len) == 0 &&
|
||||
L[1]->Arg[Len] == '+' &&
|
||||
L[1]->Arg[Len+1] == '1') {
|
||||
|
@ -196,7 +196,7 @@ static const char* LoadAXImm (CodeSeg* S, unsigned I)
|
|||
}
|
||||
|
||||
/* Check for a load of a label address */
|
||||
if ((Len = strlen (ALoad->Arg)) > 3 &&
|
||||
if ((Len = (unsigned)strlen (ALoad->Arg)) > 3 &&
|
||||
ALoad->Arg[0] == '<' &&
|
||||
ALoad->Arg[1] == '(' &&
|
||||
strlen (XLoad->Arg) == Len &&
|
||||
|
@ -703,7 +703,7 @@ unsigned OptPtrStore3 (CodeSeg* S)
|
|||
!CE_HasLabel (P[1]) &&
|
||||
strncmp (P[0]->Arg, "regbank+", 8) == 0) {
|
||||
|
||||
unsigned Len = strlen (P[0]->Arg);
|
||||
unsigned Len = (unsigned)strlen (P[0]->Arg);
|
||||
|
||||
if (strncmp (P[0]->Arg, P[1]->Arg, Len) == 0 &&
|
||||
P[1]->Arg[Len+0] == '+' &&
|
||||
|
|
|
@ -96,7 +96,7 @@ unsigned TypeLen (const Type* T)
|
|||
while (T->C != T_END) {
|
||||
++T;
|
||||
}
|
||||
return T - Start;
|
||||
return (unsigned)(T - Start);
|
||||
}
|
||||
|
||||
|
||||
|
@ -255,10 +255,10 @@ unsigned SizeOf (const Type* T)
|
|||
return SIZEOF_LONGLONG;
|
||||
|
||||
case T_FLOAT:
|
||||
return SIZEOF_FLOAT;
|
||||
return (unsigned)SIZEOF_FLOAT;
|
||||
|
||||
case T_DOUBLE:
|
||||
return SIZEOF_DOUBLE;
|
||||
return (unsigned)SIZEOF_DOUBLE;
|
||||
|
||||
case T_STRUCT:
|
||||
case T_UNION:
|
||||
|
|
|
@ -111,18 +111,18 @@ const char* ED_GetLabelName (const ExprDesc* Expr, long Offs)
|
|||
case E_LOC_LITERAL:
|
||||
/* Literal in the literal pool */
|
||||
if (Offs) {
|
||||
SB_Printf (&Buf, "%s%+ld", PooledLiteralLabelName (Expr->Name), Offs);
|
||||
SB_Printf (&Buf, "%s%+ld", PooledLiteralLabelName ((unsigned)Expr->Name), Offs);
|
||||
} else {
|
||||
SB_Printf (&Buf, "%s", PooledLiteralLabelName (Expr->Name));
|
||||
SB_Printf (&Buf, "%s", PooledLiteralLabelName ((unsigned)Expr->Name));
|
||||
}
|
||||
break;
|
||||
|
||||
case E_LOC_CODE:
|
||||
/* Code label location */
|
||||
if (Offs) {
|
||||
SB_Printf (&Buf, "%s%+ld", LocalLabelName (Expr->Name), Offs);
|
||||
SB_Printf (&Buf, "%s%+ld", LocalLabelName ((unsigned)Expr->Name), Offs);
|
||||
} else {
|
||||
SB_Printf (&Buf, "%s", LocalLabelName (Expr->Name));
|
||||
SB_Printf (&Buf, "%s", LocalLabelName ((unsigned)Expr->Name));
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ static IFile* NewIFile (const char* Name, InputType Type)
|
|||
/* Create and return a new IFile */
|
||||
{
|
||||
/* Get the length of the name */
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Allocate a IFile structure */
|
||||
IFile* IF = (IFile*) xmalloc (sizeof (IFile) + Len);
|
||||
|
@ -203,7 +203,7 @@ static AFile* NewAFile (IFile* IF, FILE* F)
|
|||
** To avoid file search overhead, we will add one path only once.
|
||||
** This is checked by the PushSearchPath function.
|
||||
*/
|
||||
SB_CopyBuf (&Path, IF->Name, FindName (IF->Name) - IF->Name);
|
||||
SB_CopyBuf (&Path, IF->Name, (unsigned)(FindName (IF->Name) - IF->Name));
|
||||
SB_Terminate (&Path);
|
||||
AF->SearchPath = PushSearchPath (UsrIncSearchPath, SB_GetConstBuf (&Path));
|
||||
SB_Done (&Path);
|
||||
|
|
|
@ -468,7 +468,7 @@ void OutputGlobalLiteralPool (void)
|
|||
Literal* AddLiteral (const char* S)
|
||||
/* Add a literal string to the literal pool. Return the literal. */
|
||||
{
|
||||
return AddLiteralBuf (S, strlen (S) + 1);
|
||||
return AddLiteralBuf (S, (unsigned)strlen (S) + 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ Macro* NewMacro (const char* Name)
|
|||
*/
|
||||
{
|
||||
/* Get the length of the macro name */
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Allocate the structure */
|
||||
Macro* M = (Macro*) xmalloc (sizeof(Macro) + Len);
|
||||
|
|
|
@ -363,7 +363,7 @@ static void DefineSym (const char* Def)
|
|||
** terminator.
|
||||
*/
|
||||
char* Q;
|
||||
unsigned Len = strlen (Def)+1;
|
||||
unsigned Len = (unsigned)strlen (Def)+1;
|
||||
char* S = (char*) xmalloc (Len);
|
||||
memcpy (S, Def, Len);
|
||||
Q = S + (P - Def);
|
||||
|
@ -542,7 +542,7 @@ static void OptDebugOpt (const char* Opt attribute ((unused)), const char* Arg)
|
|||
/* Remove trailing control chars. This will also remove the
|
||||
** trailing newline.
|
||||
*/
|
||||
unsigned Len = strlen (Buf);
|
||||
unsigned Len = (unsigned)strlen (Buf);
|
||||
while (Len > 0 && IsControl (Buf[Len-1])) {
|
||||
--Len;
|
||||
}
|
||||
|
@ -836,7 +836,7 @@ static void OptWarning (const char* Opt attribute ((unused)), const char* Arg)
|
|||
/* Get the next suboption */
|
||||
Pos = strchr (Arg, ',');
|
||||
if (Pos) {
|
||||
SB_CopyBuf (&W, Arg, Pos - Arg);
|
||||
SB_CopyBuf (&W, Arg, (unsigned)(Pos - Arg));
|
||||
Arg = Pos + 1;
|
||||
} else {
|
||||
SB_CopyStr (&W, Arg);
|
||||
|
|
|
@ -616,7 +616,7 @@ const OPCDesc* FindOP65 (const char* M)
|
|||
** storage, converting it to upper case.
|
||||
*/
|
||||
char Mnemo[sizeof (OPCTable[0].Mnemo)];
|
||||
Len = strlen (M);
|
||||
Len = (unsigned)strlen (M);
|
||||
if (Len >= sizeof (OPCTable[0].Mnemo)) {
|
||||
/* Invalid length means invalid opcode */
|
||||
return 0;
|
||||
|
|
|
@ -272,7 +272,7 @@ static IntStack* GetWarning (StrBuf* B)
|
|||
static int HasStr (StrBuf* B, const char* E)
|
||||
/* Checks if E follows in B. If so, skips it and returns true */
|
||||
{
|
||||
unsigned Len = strlen (E);
|
||||
unsigned Len = (unsigned)strlen (E);
|
||||
if (SB_GetLen (B) - SB_GetIndex (B) >= Len) {
|
||||
if (strncmp (SB_GetConstBuf (B) + SB_GetIndex (B), E, Len) == 0) {
|
||||
/* Found */
|
||||
|
|
|
@ -1843,7 +1843,7 @@ static unsigned SubstMacroArgs (unsigned NameIdx, StrBuf* Target, MacroExp* E, M
|
|||
++Idx;
|
||||
|
||||
/* May be used for later concatenation */
|
||||
TokLen = strlen (Ident);
|
||||
TokLen = (unsigned)strlen (Ident);
|
||||
}
|
||||
|
||||
/* Special casing for 'L' prefixing '#' */
|
||||
|
@ -2186,7 +2186,7 @@ static unsigned ReplaceMacros (StrBuf* Source, StrBuf* Target, MacroExp* E, unsi
|
|||
if ((E->Flags & MES_FIRST_TOKEN) != 0) {
|
||||
E->Flags |= MES_BEGIN_WITH_IDENT;
|
||||
}
|
||||
ME_SetTokLens (E, strlen (M->Name));
|
||||
ME_SetTokLens (E, (unsigned)strlen (M->Name));
|
||||
}
|
||||
|
||||
/* Since we have already got on hold of the next
|
||||
|
@ -2317,7 +2317,7 @@ static unsigned ReplaceMacros (StrBuf* Source, StrBuf* Target, MacroExp* E, unsi
|
|||
if ((E->Flags & MES_FIRST_TOKEN) != 0) {
|
||||
E->Flags |= MES_BEGIN_WITH_IDENT;
|
||||
}
|
||||
ME_SetTokLens (E, strlen (Ident));
|
||||
ME_SetTokLens (E, (unsigned)strlen (Ident));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -2370,7 +2370,7 @@ static unsigned ReplaceMacros (StrBuf* Source, StrBuf* Target, MacroExp* E, unsi
|
|||
*/
|
||||
if (IsIdent (CurC)) {
|
||||
/* Memorize the previous pp-token and check it later */
|
||||
LazyCheckNextPPTok (Target, strlen (Ident));
|
||||
LazyCheckNextPPTok (Target, (unsigned)strlen (Ident));
|
||||
}
|
||||
} else {
|
||||
SB_AppendChar (Target, CurC);
|
||||
|
@ -2485,7 +2485,7 @@ static int ParseMacroReplacement (StrBuf* Source, Macro* M)
|
|||
SB_AppendStr (&M->Replacement, Ident);
|
||||
} else {
|
||||
if (M->ParamCount >= 0 && GetPunc (Ident)) {
|
||||
Len = strlen (Ident);
|
||||
Len = (unsigned)strlen (Ident);
|
||||
/* Check for # */
|
||||
if (Len == 1 && Ident[0] == '#') {
|
||||
HasWhiteSpace = SkipWhitespace (0);
|
||||
|
|
|
@ -1232,7 +1232,7 @@ static void StdFunc_strlen (FuncDesc* F attribute ((unused)), ExprDesc* Expr)
|
|||
size_t Len = strnlen (GetLiteralStr (Arg.V.LVal), GetLiteralSize (Arg.V.LVal) - 1);
|
||||
|
||||
/* Constant string literal */
|
||||
ED_MakeConstAbs (Expr, Len, type_size_t);
|
||||
ED_MakeConstAbs (Expr, (long)Len, type_size_t);
|
||||
|
||||
/* We don't need the literal any longer */
|
||||
ReleaseLiteral (Arg.V.LVal);
|
||||
|
@ -1391,7 +1391,7 @@ int FindStdFunc (const char* Name)
|
|||
if (D == 0) {
|
||||
return -1;
|
||||
} else {
|
||||
return D - StdFuncs;
|
||||
return (int)(D - StdFuncs);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ SymEntry* NewSymEntry (const char* Name, unsigned Flags)
|
|||
/* Create a new symbol table with the given name */
|
||||
{
|
||||
/* Get the length of the name */
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Allocate memory for the symbol entry */
|
||||
SymEntry* E = xmalloc (sizeof (SymEntry) + Len);
|
||||
|
@ -260,7 +260,7 @@ void SymSetAsmName (SymEntry* Sym)
|
|||
PRECONDITION (Sym->AsmName == 0);
|
||||
|
||||
/* The assembler name starts with an underline */
|
||||
Len = strlen (Sym->Name);
|
||||
Len = (unsigned)strlen (Sym->Name);
|
||||
Sym->AsmName = xmalloc (Len + 2);
|
||||
Sym->AsmName[0] = '_';
|
||||
memcpy (Sym->AsmName+1, Sym->Name, Len+1);
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{1C7A3FEF-DD0B-4B10-BC33-C3BE29BF67CC}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="chrcvt65\error.c" />
|
||||
<ClCompile Include="chrcvt65\main.c" />
|
||||
|
|
|
@ -401,7 +401,7 @@ static void ConvertFile (const char* Input, const char* Output)
|
|||
Offs = OffsetBuf[0] + (OffsetBuf[1] << 8);
|
||||
|
||||
/* Calculate the remaining data in the buffer for this character */
|
||||
Remaining = Size - (Offs + (VectorBuf - Buf));
|
||||
Remaining = Size - (Offs + (int)(VectorBuf - Buf));
|
||||
|
||||
/* Check if the offset is valid */
|
||||
if (Remaining <= 0) {
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{F657912F-050A-488B-B203-50ED5715CDD7}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="cl65\error.c" />
|
||||
<ClCompile Include="cl65\global.c" />
|
||||
|
|
|
@ -247,7 +247,7 @@ static void CmdAddArg (CmdDesc* Cmd, const char* Arg)
|
|||
|
||||
/* Add a copy of the new argument, allow a NULL pointer */
|
||||
if (Arg) {
|
||||
Cmd->Args[Cmd->ArgCount++] = CmdAllocArg (Arg, strlen (Arg));
|
||||
Cmd->Args[Cmd->ArgCount++] = CmdAllocArg (Arg, (unsigned)strlen (Arg));
|
||||
} else {
|
||||
Cmd->Args[Cmd->ArgCount++] = 0;
|
||||
}
|
||||
|
@ -274,7 +274,7 @@ static void CmdAddArgList (CmdDesc* Cmd, const char* ArgList)
|
|||
if (*P == '\0' || *P == ',') {
|
||||
|
||||
/* End of argument, add it */
|
||||
unsigned Len = P - Arg;
|
||||
unsigned Len = (unsigned)(P - Arg);
|
||||
|
||||
/* Expand the argument vector if needed */
|
||||
if (Cmd->ArgCount >= Cmd->ArgMax) {
|
||||
|
@ -408,7 +408,7 @@ static void SetTargetFiles (void)
|
|||
{
|
||||
/* Get a pointer to the system name and its length */
|
||||
const char* TargetName = GetTargetName (Target);
|
||||
unsigned TargetNameLen = strlen (TargetName);
|
||||
unsigned TargetNameLen = (unsigned)strlen (TargetName);
|
||||
|
||||
/* Set the library file */
|
||||
TargetLib = xmalloc (TargetNameLen + 4 + 1);
|
||||
|
@ -437,7 +437,7 @@ static void ExecProgram (CmdDesc* Cmd)
|
|||
}
|
||||
|
||||
/* Call the program */
|
||||
Status = spawnvp (P_WAIT, Cmd->Name, SPAWN_ARGV_CONST_CAST Cmd->Args);
|
||||
Status = (int)spawnvp (P_WAIT, Cmd->Name, SPAWN_ARGV_CONST_CAST Cmd->Args);
|
||||
|
||||
/* Check the result code */
|
||||
if (Status < 0) {
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{F5DB5D1A-05BC-48FE-B346-4E96DD522AA2}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="co65\convert.c" />
|
||||
<ClCompile Include="co65\error.c" />
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{71DC1F68-BFC4-478C-8655-C8E9C9654D2B}</ProjectGuid>
|
||||
|
@ -22,16 +30,25 @@
|
|||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -39,11 +56,21 @@
|
|||
<PreprocessorDefinitions>_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_LIB;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_LIB;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="common\abend.h" />
|
||||
<ClInclude Include="common\addrsize.h" />
|
||||
|
|
|
@ -126,7 +126,7 @@ static void ExpandFile (CmdLine* L, const char* Name)
|
|||
/* Skip trailing whitespace (this will also kill the newline that is
|
||||
** appended by fgets().
|
||||
*/
|
||||
unsigned Len = strlen (Buf);
|
||||
unsigned Len = (unsigned)strlen (Buf);
|
||||
while (Len > 0 && IsSpace (Buf [Len-1])) {
|
||||
--Len;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ const char* FindExt (const char* Name)
|
|||
const char* S;
|
||||
|
||||
/* Get the length of the name */
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
if (Len < 2) {
|
||||
return 0;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ const char* FindName (const char* Path)
|
|||
*/
|
||||
{
|
||||
/* Get the length of the name */
|
||||
int Len = strlen (Path);
|
||||
int Len = (int)strlen (Path);
|
||||
|
||||
/* Search for the path separator */
|
||||
while (Len > 0 && Path[Len-1] != '\\' && Path[Len-1] != '/') {
|
||||
|
|
|
@ -73,7 +73,7 @@ static char* CleanupPath (const char* Path)
|
|||
char* NewPath;
|
||||
|
||||
/* Get the length of the path */
|
||||
Len = strlen (Path);
|
||||
Len = (unsigned)strlen (Path);
|
||||
|
||||
/* Check for a trailing path separator and remove it */
|
||||
if (Len > 0 && (Path[Len-1] == '\\' || Path[Len-1] == '/')) {
|
||||
|
|
|
@ -79,7 +79,7 @@ StrBuf* SB_InitFromString (StrBuf* B, const char* S)
|
|||
*/
|
||||
{
|
||||
B->Allocated = 0;
|
||||
B->Len = strlen (S);
|
||||
B->Len = (unsigned)strlen (S);
|
||||
B->Index = 0;
|
||||
B->Buf = (char*) S;
|
||||
return B;
|
||||
|
@ -244,7 +244,7 @@ void SB_CopyBuf (StrBuf* Target, const char* Buf, unsigned Size)
|
|||
void SB_CopyStr (StrBuf* Target, const char* S)
|
||||
/* Copy S to Target, discarding the old contents of Target */
|
||||
{
|
||||
SB_CopyBuf (Target, S, strlen (S));
|
||||
SB_CopyBuf (Target, S, (unsigned)strlen (S));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -291,7 +291,7 @@ void SB_AppendBuf (StrBuf* B, const char* S, unsigned Size)
|
|||
void SB_AppendStr (StrBuf* B, const char* S)
|
||||
/* Append a string to the end of the string buffer */
|
||||
{
|
||||
SB_AppendBuf (B, S, strlen (S));
|
||||
SB_AppendBuf (B, S, (unsigned)strlen (S));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -425,7 +425,7 @@ int SB_CompareStr (const StrBuf* S1, const char* S2)
|
|||
/* Do a lexical compare of S1 and S2. See strcmp for result codes. */
|
||||
{
|
||||
int Result;
|
||||
unsigned S2Len = strlen (S2);
|
||||
unsigned S2Len = (unsigned)strlen (S2);
|
||||
if (S1->Len < S2Len) {
|
||||
Result = memcmp (S1->Buf, S2, S1->Len);
|
||||
if (Result == 0) {
|
||||
|
|
|
@ -105,7 +105,7 @@ char* xstrdup (const char* S)
|
|||
if (S) {
|
||||
|
||||
/* Get the length of the string */
|
||||
unsigned Len = strlen (S) + 1;
|
||||
unsigned Len = (unsigned)strlen (S) + 1;
|
||||
|
||||
/* Allocate memory and return a copy */
|
||||
return memcpy (xmalloc (Len), S, Len);
|
||||
|
|
|
@ -191,7 +191,7 @@ static void ToStr (PrintfCtrl* P, uintmax_t Val)
|
|||
*S++ = P->CharTable[Val % P->Base];
|
||||
Val /= P->Base;
|
||||
}
|
||||
P->ArgLen = S - P->ArgBuf;
|
||||
P->ArgLen = (int)(S - P->ArgBuf);
|
||||
}
|
||||
|
||||
|
||||
|
@ -316,10 +316,10 @@ static void FormatStr (PrintfCtrl* P, const char* Val)
|
|||
Len = P->Prec;
|
||||
} else {
|
||||
/* Terminating zero found */
|
||||
Len = S - Val;
|
||||
Len = (int)(S - Val);
|
||||
}
|
||||
} else {
|
||||
Len = strlen (Val);
|
||||
Len = (int)strlen (Val);
|
||||
}
|
||||
|
||||
/* Determine the width padding needed */
|
||||
|
@ -352,13 +352,13 @@ static void StoreOffset (PrintfCtrl* P)
|
|||
/* Store the current output offset (%n format spec) */
|
||||
{
|
||||
switch (P->LengthMod) {
|
||||
case lmChar: *va_arg (P->ap, int*) = P->BufFill; break;
|
||||
case lmShort: *va_arg (P->ap, int*) = P->BufFill; break;
|
||||
case lmInt: *va_arg (P->ap, int*) = P->BufFill; break;
|
||||
case lmLong: *va_arg (P->ap, long*) = P->BufFill; break;
|
||||
case lmIntMax: *va_arg (P->ap, intmax_t*) = P->BufFill; break;
|
||||
case lmSizeT: *va_arg (P->ap, size_t*) = P->BufFill; break;
|
||||
case lmPtrDiffT: *va_arg (P->ap, ptrdiff_t*) = P->BufFill; break;
|
||||
case lmChar: *va_arg (P->ap, int*) = (int)P->BufFill; break;
|
||||
case lmShort: *va_arg (P->ap, int*) = (int)P->BufFill; break;
|
||||
case lmInt: *va_arg (P->ap, int*) = (int)P->BufFill; break;
|
||||
case lmLong: *va_arg (P->ap, long*) = (int)P->BufFill; break;
|
||||
case lmIntMax: *va_arg (P->ap, intmax_t*) = (int)P->BufFill; break;
|
||||
case lmSizeT: *va_arg (P->ap, size_t*) = (int)P->BufFill; break;
|
||||
case lmPtrDiffT: *va_arg (P->ap, ptrdiff_t*) = (int)P->BufFill; break;
|
||||
default: FAIL ("Invalid size modifier for %n format spec. in xvsnprintf()");
|
||||
}
|
||||
}
|
||||
|
@ -638,7 +638,7 @@ int xvsnprintf (char* Buf, size_t Size, const char* Format, va_list ap)
|
|||
** Beware: The terminating zero is not counted for the function result!
|
||||
*/
|
||||
AddChar (&P, '\0');
|
||||
return P.BufFill - 1;
|
||||
return (int)(P.BufFill - 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{0BCFB793-2B25-40E2-B265-75848824AC4C}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="da65\asminc.c" />
|
||||
<ClCompile Include="da65\attrtab.c" />
|
||||
|
|
|
@ -112,7 +112,7 @@ void AsmInc (const char* Filename, char CommentStart, int IgnoreUnknown)
|
|||
}
|
||||
|
||||
/* Remove trailing whitespace */
|
||||
Len = strlen (L);
|
||||
Len = (unsigned)strlen (L);
|
||||
while (Len > 0 && IsSpace (L[Len-1])) {
|
||||
--Len;
|
||||
}
|
||||
|
|
|
@ -140,7 +140,7 @@ void LoadCode (void)
|
|||
}
|
||||
|
||||
/* Read from the file and remember the number of bytes read */
|
||||
Count = fread (CodeBuf + StartAddr, 1, MaxCount, F);
|
||||
Count = (long)fread (CodeBuf + StartAddr, 1, MaxCount, F);
|
||||
if (ferror (F) || Count != MaxCount) {
|
||||
Error ("Error reading from '%s': %s", InFile, strerror (errno));
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ void AddDepLabel (unsigned Addr, attr_t Attr, const char* BaseName, unsigned Off
|
|||
*/
|
||||
{
|
||||
/* Allocate memory for the dependent label name */
|
||||
unsigned NameLen = strlen (BaseName);
|
||||
unsigned NameLen = (unsigned)strlen (BaseName);
|
||||
char* DepName = xmalloc (NameLen + 7); /* "+$ABCD\0" */
|
||||
|
||||
/* Create the new name in the buffer */
|
||||
|
@ -220,7 +220,7 @@ static void AddLabelRange (unsigned Addr, attr_t Attr,
|
|||
const char* Format = UseHexOffs? "$%02X" : "%u";
|
||||
|
||||
/* Allocate memory for the dependent label names */
|
||||
unsigned NameLen = strlen (Name);
|
||||
unsigned NameLen = (unsigned)strlen (Name);
|
||||
char* DepName = xmalloc (NameLen + 7); /* "+$ABCD" */
|
||||
char* DepOffs = DepName + NameLen + 1;
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ void AddAbsSegment (unsigned Start, unsigned End, const char* Name)
|
|||
/* Add an absolute segment to the segment table */
|
||||
{
|
||||
/* Get the length of the name */
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Create a new segment */
|
||||
Segment* S = xmalloc (sizeof (Segment) + Len);
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{E0FD0AB3-3BEE-496F-8108-A8E0F8933F39}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="grc65\main.c" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -268,7 +268,7 @@ static void fillOut (char *name, int len, char *filler)
|
|||
setLen (name, len);
|
||||
fprintf (outputSFile, "\t.byte \"%s\"\n", name);
|
||||
|
||||
a = strlen (name);
|
||||
a = (int)strlen (name);
|
||||
if (a < len) {
|
||||
fprintf (outputSFile, "\t.res (%i - %i), %s\n", len, a, filler);
|
||||
}
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{26C749A0-814C-47A2-9D36-AE92AE932FE4}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="ld65\asserts.h" />
|
||||
<ClInclude Include="ld65\bin.h" />
|
||||
|
@ -118,4 +149,4 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
|
@ -141,7 +141,7 @@ static int ConDesCompare (void* Data, const void* E1, const void* E2)
|
|||
** the void pointers to object pointers.
|
||||
*/
|
||||
ConDesDesc* CD = ((ConDesDesc*) Data);
|
||||
int Type = CD - ConDes;
|
||||
int Type =(int)( CD - ConDes);
|
||||
const Export* Exp1 = (const Export*) E1;
|
||||
const Export* Exp2 = (const Export*) E2;
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ void WriteVar (FILE* F, unsigned long V)
|
|||
void WriteStr (FILE* F, const char* S)
|
||||
/* Write a string to the file */
|
||||
{
|
||||
unsigned Len = strlen (S);
|
||||
unsigned Len = (unsigned)strlen (S);
|
||||
WriteVar (F, Len);
|
||||
WriteData (F, S, Len);
|
||||
}
|
||||
|
|
|
@ -892,7 +892,7 @@ static void O65WriteImports (O65Desc* D)
|
|||
/* Get the name */
|
||||
const char* Name = GetString (ExtSymName (S));
|
||||
/* And write it to the output file */
|
||||
WriteData (D->F, Name, strlen (Name) + 1);
|
||||
WriteData (D->F, Name, (unsigned)strlen (Name) + 1);
|
||||
/* Next symbol */
|
||||
S = ExtSymNext (S);
|
||||
}
|
||||
|
@ -991,7 +991,7 @@ static void O65WriteExports (O65Desc* D)
|
|||
}
|
||||
|
||||
/* Write the name to the output file */
|
||||
WriteData (D->F, Name, strlen (Name) + 1);
|
||||
WriteData (D->F, Name, (unsigned)strlen (Name) + 1);
|
||||
|
||||
/* Output the segment id followed by the literal value */
|
||||
Write8 (D->F, SegmentID);
|
||||
|
@ -1383,16 +1383,16 @@ void O65WriteTarget (O65Desc* D, File* F)
|
|||
*/
|
||||
T = time (0);
|
||||
strcpy (OptBuf, ctime (&T));
|
||||
OptLen = strlen (OptBuf);
|
||||
OptLen = (unsigned)strlen (OptBuf);
|
||||
while (OptLen > 0 && IsControl (OptBuf[OptLen-1])) {
|
||||
--OptLen;
|
||||
}
|
||||
OptBuf[OptLen] = '\0';
|
||||
O65SetOption (D, O65OPT_TIMESTAMP, OptBuf, OptLen + 1);
|
||||
sprintf (OptBuf, "ld65 V%s", GetVersionAsString ());
|
||||
O65SetOption (D, O65OPT_ASM, OptBuf, strlen (OptBuf) + 1);
|
||||
O65SetOption (D, O65OPT_ASM, OptBuf, (unsigned)strlen (OptBuf) + 1);
|
||||
Name = FindName (D->Filename);
|
||||
O65SetOption (D, O65OPT_FILENAME, Name, strlen (Name) + 1);
|
||||
O65SetOption (D, O65OPT_FILENAME, Name, (unsigned)strlen (Name) + 1);
|
||||
|
||||
/* Write the header */
|
||||
O65WriteHeader (D);
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{FF8576C2-1253-44FE-A51B-D9AE35F3CEAD}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="od65\dump.c" />
|
||||
<ClCompile Include="od65\error.c" />
|
||||
|
|
|
@ -110,7 +110,7 @@ static char* TimeToStr (unsigned long Time)
|
|||
char* S = asctime (localtime (&T));
|
||||
|
||||
/* Remove the trailing newline */
|
||||
unsigned Len = strlen (S);
|
||||
unsigned Len = (unsigned)strlen (S);
|
||||
if (Len > 0 && S[Len-1] == '\n') {
|
||||
S[Len-1 ] = '\0';
|
||||
}
|
||||
|
@ -386,7 +386,7 @@ void DumpObjOptions (FILE* F, unsigned long Offset)
|
|||
|
||||
case OPT_ARGSTR:
|
||||
ArgStr = GetString (&StrPool, Val);
|
||||
ArgLen = strlen (ArgStr);
|
||||
ArgLen = (unsigned)strlen (ArgStr);
|
||||
printf (" Data:%*s\"%s\"\n", (int)(24-ArgLen), "", ArgStr);
|
||||
break;
|
||||
|
||||
|
@ -447,7 +447,7 @@ void DumpObjFiles (FILE* F, unsigned long Offset)
|
|||
const char* Name = GetString (&StrPool, ReadVar (F));
|
||||
unsigned long MTime = Read32 (F);
|
||||
unsigned long Size = ReadVar (F);
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Print the header */
|
||||
printf (" Index:%27u\n", I);
|
||||
|
@ -497,7 +497,7 @@ void DumpObjSegments (FILE* F, unsigned long Offset)
|
|||
unsigned long DataSize = Read32 (F);
|
||||
unsigned long NextSeg = ftell (F) + DataSize;
|
||||
const char* Name = GetString (&StrPool, ReadVar (F));
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
unsigned Flags = ReadVar (F);
|
||||
unsigned long Size = ReadVar (F);
|
||||
unsigned long Align = ReadVar (F);
|
||||
|
@ -558,7 +558,7 @@ void DumpObjImports (FILE* F, unsigned long Offset)
|
|||
/* Read the data for one import */
|
||||
unsigned char AddrSize = Read8 (F);
|
||||
const char* Name = GetString (&StrPool, ReadVar (F));
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Skip both line info lists */
|
||||
SkipLineInfoList (F);
|
||||
|
@ -620,7 +620,7 @@ void DumpObjExports (FILE* F, unsigned long Offset)
|
|||
unsigned char AddrSize = Read8 (F);
|
||||
ReadData (F, ConDes, SYM_GET_CONDES_COUNT (Type));
|
||||
Name = GetString (&StrPool, ReadVar (F));
|
||||
Len = strlen (Name);
|
||||
Len = (unsigned)strlen (Name);
|
||||
if (SYM_IS_CONST (Type)) {
|
||||
Value = Read32 (F);
|
||||
} else {
|
||||
|
@ -702,7 +702,7 @@ void DumpObjDbgSyms (FILE* F, unsigned long Offset)
|
|||
unsigned char AddrSize = Read8 (F);
|
||||
unsigned long Owner = ReadVar (F);
|
||||
const char* Name = GetString (&StrPool, ReadVar (F));
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
if (SYM_IS_CONST (Type)) {
|
||||
Value = Read32 (F);
|
||||
} else {
|
||||
|
@ -872,7 +872,7 @@ void DumpObjScopes (FILE* F, unsigned long Offset)
|
|||
|
||||
/* Resolve and print the name */
|
||||
Name = GetString (&StrPool, ReadVar (F));
|
||||
Len = strlen (Name);
|
||||
Len = (unsigned)strlen (Name);
|
||||
printf (" Name:%*s\"%s\"\n", (int)(24-Len), "", Name);
|
||||
|
||||
/* Size */
|
||||
|
@ -930,7 +930,7 @@ void DumpObjSegSize (FILE* F, unsigned long Offset)
|
|||
unsigned long DataSize = Read32 (F);
|
||||
unsigned long NextSeg = ftell (F) + DataSize;
|
||||
const char* Name = GetString (&StrPool, ReadVar (F));
|
||||
unsigned Len = strlen (Name);
|
||||
unsigned Len = (unsigned)strlen (Name);
|
||||
|
||||
/* Skip segment flags, read size */
|
||||
(void) ReadVar (F);
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{002A366E-2863-46A8-BDDE-DDF534AAEC73}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="sim65\6502.h" />
|
||||
<ClInclude Include="sim65\error.h" />
|
||||
|
|
|
@ -144,7 +144,7 @@ static void PVArgs (CPURegs* Regs)
|
|||
while (ArgStart < ArgCount) {
|
||||
unsigned I = 0;
|
||||
const char* Arg = ArgVec[ArgStart++];
|
||||
SP -= strlen (Arg) + 1;
|
||||
SP -= (unsigned)strlen (Arg) + 1;
|
||||
do {
|
||||
MemWriteByte (SP + I, Arg[I]);
|
||||
}
|
||||
|
|
|
@ -5,10 +5,18 @@
|
|||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{4388D1AF-C7EA-4AD4-8E80-CA1FB7BF76BF}</ProjectGuid>
|
||||
|
@ -21,15 +29,22 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
|
@ -40,6 +55,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
@ -48,6 +71,14 @@
|
|||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="sp65\asm.c" />
|
||||
<ClCompile Include="sp65\attr.c" />
|
||||
|
@ -99,4 +130,4 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
|
@ -57,8 +57,8 @@ Attr* NewAttr (const char* Name, const char* Value)
|
|||
/* Create a new attribute */
|
||||
{
|
||||
/* Determine the string lengths */
|
||||
unsigned NameLen = strlen (Name);
|
||||
unsigned ValueLen = strlen (Value);
|
||||
unsigned NameLen = (unsigned)strlen (Name);
|
||||
unsigned ValueLen = (unsigned)strlen (Value);
|
||||
|
||||
/* Allocate memory */
|
||||
Attr* A = xmalloc (sizeof (Attr) + ValueLen + NameLen + 1);
|
||||
|
@ -227,7 +227,7 @@ void SplitAddAttr (Collection* C, const char* Combined, const char* Name)
|
|||
} else {
|
||||
/* Must split name and value */
|
||||
StrBuf N = AUTO_STRBUF_INITIALIZER;
|
||||
SB_CopyBuf (&N, Combined, Pos - Combined);
|
||||
SB_CopyBuf (&N, Combined, (unsigned)(Pos - Combined));
|
||||
SB_Terminate (&N);
|
||||
|
||||
/* Add the attribute */
|
||||
|
|
|
@ -540,7 +540,7 @@ StrBuf* GenLynxSprite (const Bitmap* B, const Collection* A)
|
|||
signed I;
|
||||
|
||||
/* Modify the map by content of PenPal */
|
||||
PenColors = strlen(PenPal);
|
||||
PenColors = (int)strlen(PenPal);
|
||||
for (I = 0; I < PenColors; I++) {
|
||||
switch (PenPal[I]) {
|
||||
case '0':
|
||||
|
|
Loading…
Reference in New Issue
Block a user