- updated the makefiles and code to allow compliation with MinGW once again (some of patch #875485 by perditionc)

- fixed errors and warnings given by gcc


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3513 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-03-12 20:43:54 +00:00
parent 2b3da85bae
commit f4a1f17299
43 changed files with 323 additions and 252 deletions

View file

@ -706,12 +706,12 @@ void CEXEBuild::FillLanguageTable(LanguageTable *table) {
char SkipComments(FILE *f) {
char c;
while (c = fgetc(f)) {
while ((c = fgetc(f))) {
while (c == '\n' || c == '\r') {
c = fgetc(f); // Skip empty lines
}
if (c == '#' || c == ';') {
while (c = fgetc(f)) {
while ((c = fgetc(f))) {
if (c == '\n') break;
}
}
@ -763,7 +763,7 @@ LanguageTable * CEXEBuild::LoadLangFile(char *filename) {
}
// Generate language name
char *p, *p2, t;
char *p, *p2, t = 0;
p = strrchr(filename, '.');
if (p) {
@ -906,7 +906,8 @@ LanguageTable * CEXEBuild::LoadLangFile(char *filename) {
}
nlf->m_szStrings[i] = (char*)malloc(temp+1);
for (char *out = nlf->m_szStrings[i]; *in; in++, out++) {
char *out;
for (out = nlf->m_szStrings[i]; *in; in++, out++) {
if (*in == '\\') {
in++;
switch (*in) {