Fixed handling of command line SetCompressor option.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3189 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
34d4213220
commit
320cefa4b0
5 changed files with 167 additions and 42 deletions
|
@ -50,9 +50,23 @@ void *my_memset(void *dest, int c, size_t count) {
|
|||
return dest;
|
||||
}
|
||||
|
||||
int lstrcmpn(char *s1, const char *s2, int chars)
|
||||
// iceman_k's clib methods
|
||||
int lstrncmp(char *s1, const char *s2, int chars)
|
||||
{
|
||||
while ((chars > 0) && (*s1) && (*s2) && (*(s1) == *(s2))) chars--, s1++, s2++;
|
||||
if ((chars == 0) || (*s1 == *s2)) return 0;
|
||||
return (*s1 - *s2);
|
||||
}
|
||||
}
|
||||
|
||||
int lstrncmpi(char *s1, const char *s2, int chars)
|
||||
{
|
||||
while (chars-- && *s1 && *s2)
|
||||
{
|
||||
char ss1=*s1++;
|
||||
char ss2=*s2++;
|
||||
if (ss1>='a' && ss1 <= 'z') ss1+='A'-'a';
|
||||
if (ss2>='a' && ss2 <= 'z') ss2+='A'-'a';
|
||||
if (ss1 != ss2) return ss1-ss2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue