Skip to content

Commit

Permalink
Fix misspellings in source-code.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeterMugaas committed Apr 17, 2024
1 parent f87c023 commit ce486d0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

cmake_minimum_required (VERSION 3.21)

set(EFXC2_VERSION 0.0.7.153)
set(EFXC2_VERSION 0.0.7.154)
project (efxc2 VERSION ${EFXC2_VERSION}
DESCRIPTION "Enhanced fxc2"
HOMEPAGE_URL "https://github.com/JPeterMugaas/efxc2"
Expand Down
4 changes: 2 additions & 2 deletions efxc2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ int main(int argc, char* argv[]) {
else if (parseCompilerOnlyCall(args, &index, params)) {
continue;
}
else if (parseIgnoredOpts(args, &index, params)) {
else if (parseIgnoredOptions(args, &index, params)) {
continue;
}
else if (parseNotSupportedOpts(args, &index)) {
else if (parseNotSupportedOptions(args, &index)) {
/* If true, this will not return. It exits the program .*/
}
else if (parseOpt(M_D, args, &index, &temp)) {
Expand Down
6 changes: 3 additions & 3 deletions efxc2Cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ bool parseCompilerFileCall(
return false;
}

bool parseIgnoredOpts(
bool parseIgnoredOptions(
_In_ const M_CMD_PARAMS& args,
_Inout_ const size_t* index,
const CompilerParams& params) {
Expand All @@ -588,15 +588,15 @@ bool parseIgnoredOpts(
return false;
}
for (int i = 0; i < IGNORED_OPTS_LENGTH; i++) {
if (argument.compare(arg_idx, std::string::npos, g_IgnoredOpts[i]) == 0) {
if (argument.compare(arg_idx, std::string::npos, g_IgnoredOptions[i]) == 0) {
option_ignored(argument, params);
return true;
}
}
return false;
}

bool parseNotSupportedOpts(
bool parseNotSupportedOptions(
_In_ const M_CMD_PARAMS& args,
_In_ const size_t* index) {
if (!index || *index >= args.size()) {
Expand Down
8 changes: 4 additions & 4 deletions efxc2Cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,22 @@ bool parseCompilerOnlyCall(

constexpr auto IGNORED_OPTS_LENGTH = 5;
#ifdef _WIN32
const std::array <const std::wstring, IGNORED_OPTS_LENGTH>g_IgnoredOpts = {
const std::array <const std::wstring, IGNORED_OPTS_LENGTH>g_IgnoredOptions = {
#else
const std::array <const std::string,IGNORED_OPTS_LENGTH>g_IgnoredOpts = {
const std::array <const std::string,IGNORED_OPTS_LENGTH>g_IgnoredOptions = {
#endif
M_FE,
M_FORCE_ROOTSIG_VER,
M_I,
M_P,
M_VI};

bool parseIgnoredOpts(
bool parseIgnoredOptions(
_In_ const M_CMD_PARAMS& args,
_Inout_ const size_t* index,
const CompilerParams& params);

bool parseNotSupportedOpts(
bool parseNotSupportedOptions(
_In_ const M_CMD_PARAMS& args,
_In_ const size_t* index);

Expand Down
6 changes: 3 additions & 3 deletions efxc2CompilerParams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ void CompilerParams::add_define(const std::string_view& defineOption) {
CompilerDefine _def;
_def.Definition = "1";

if (size_t delin_pos = defineOption.find('='); delin_pos == std::string::npos) {
if (size_t Dellin_pos = defineOption.find('='); Dellin_pos == std::string::npos) {
_def.Name = defineOption;
}
else {
_def.Name = defineOption.substr(0, delin_pos);
_def.Definition = defineOption.substr(delin_pos + 1, defineOption.length() - 1);
_def.Name = defineOption.substr(0, Dellin_pos);
_def.Definition = defineOption.substr(Dellin_pos + 1, defineOption.length() - 1);
}

defines->insert(defines->begin(), _def);
Expand Down

0 comments on commit ce486d0

Please sign in to comment.