Some strings made case insensitive
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1876 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
5aa36f4d12
commit
a69a24729d
1 changed files with 4 additions and 4 deletions
|
@ -1799,7 +1799,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
case TOK_SECTION:
|
case TOK_SECTION:
|
||||||
{
|
{
|
||||||
int a=1,ex = 0;
|
int a=1,ex = 0;
|
||||||
if (!strcmp(line.gettoken_str(1),"/e"))
|
if (!strcmpi(line.gettoken_str(1),"/e"))
|
||||||
{
|
{
|
||||||
ex = 1;
|
ex = 1;
|
||||||
a++;
|
a++;
|
||||||
|
@ -1861,7 +1861,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
int a=1,ex = 0;
|
int a=1,ex = 0;
|
||||||
if (!strcmp(line.gettoken_str(1),"/e"))
|
if (!strcmpi(line.gettoken_str(1),"/e"))
|
||||||
{
|
{
|
||||||
ex = 1;
|
ex = 1;
|
||||||
a++;
|
a++;
|
||||||
|
@ -2049,7 +2049,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
if (!strnicmp(line.gettoken_str(a),"/LANG=",6)) lang=atoi(line.gettoken_str(a++)+6);
|
if (!strnicmp(line.gettoken_str(a),"/LANG=",6)) lang=atoi(line.gettoken_str(a++)+6);
|
||||||
if (line.getnumtokens()==a) PRINTHELP();
|
if (line.getnumtokens()==a) PRINTHELP();
|
||||||
|
|
||||||
if (!lstrcmp(line.gettoken_str(a), "none")) {
|
if (!lstrcmpi(line.gettoken_str(a), "none")) {
|
||||||
no_space_texts=true;
|
no_space_texts=true;
|
||||||
SCRIPT_MSG("SpaceTexts: none\n");
|
SCRIPT_MSG("SpaceTexts: none\n");
|
||||||
}
|
}
|
||||||
|
@ -2339,7 +2339,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
char *np=p;
|
char *np=p;
|
||||||
while (*np && *np != '|') np++;
|
while (*np && *np != '|') np++;
|
||||||
if (*np) *np++=0;
|
if (*np) *np++=0;
|
||||||
for (x =0 ; x < sizeof(list)/sizeof(list[0]) && strcmp(list[x].str,p); x ++);
|
for (x =0 ; x < sizeof(list)/sizeof(list[0]) && strcmpi(list[x].str,p); x ++);
|
||||||
if (x < sizeof(list)/sizeof(list[0]))
|
if (x < sizeof(list)/sizeof(list[0]))
|
||||||
{
|
{
|
||||||
r|=list[x].id;
|
r|=list[x].id;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue