r=me, sr=blizzard (platform specific code)
OS/2 EMX work - low hanging fruit - strcmpi-> stricmp, itoa->_itoa, remove some headers, fix some syntax
This commit is contained in:
mkaply%us.ibm.com 2003-03-19 15:17:28 +00:00
Родитель 471e04904b
Коммит 3abf648ded
4 изменённых файлов: 19 добавлений и 8 удалений

Просмотреть файл

@ -43,7 +43,12 @@ NO_DIST_INSTALL = 1
include $(topsrcdir)/config/rules.mk
ifeq ($(MOZ_OS2_TOOLS),VACPP)
LDFLAGS += /PM:PM
else
LDFLAGS += -ZLinker /PM:PM
endif
libs:: $(PROGRAM)
$(INSTALL) $(PROGRAM) $(DIST)/install

Просмотреть файл

@ -210,7 +210,7 @@ void DirectoryRemove(PSZ szDestination, BOOL bRemoveSubdirs)
bFound = TRUE;
while(bFound == TRUE)
{
if((strcmpi(fdFile.achName, ".") != 0) && (strcmpi(fdFile.achName, "..") != 0))
if((stricmp(fdFile.achName, ".") != 0) && (stricmp(fdFile.achName, "..") != 0))
{
/* create full path */
strcpy(szDestTemp, szDestination);
@ -349,11 +349,11 @@ void ParseCommandLine(int argc, char *argv[])
strcpy(szCmdLineToSetup, " ");
while(i < argc)
{
if((strcmpi(argv[i], "-ms") == 0) || (strcmpi(argv[i], "/ms") == 0))
if((stricmp(argv[i], "-ms") == 0) || (stricmp(argv[i], "/ms") == 0))
{
ulMode = SILENT;
}
else if((strcmpi(argv[i], "-u") == 0) || (strcmpi(argv[i], "/u") == 0))
else if((stricmp(argv[i], "-u") == 0) || (stricmp(argv[i], "/u") == 0))
{
gbUncompressOnly = TRUE;
}
@ -389,7 +389,7 @@ MRESULT EXPENTRY DialogProc(HWND hwndDlg, ULONG msg, MPARAM mp1, MPARAM mp2)
return WinDefDlgProc(hwndDlg, msg, mp1, mp2);
}
DeleteTempFiles(ULONG ulNumFiles)
void DeleteTempFiles(ULONG ulNumFiles)
{
ULONG ulSize;
void* pFileData;
@ -466,7 +466,7 @@ BOOL FileExists(PSZ szFile)
return (FALSE);
}
RunInstaller(ULONG ulNumFiles, HWND hwndDlg)
void RunInstaller(ULONG ulNumFiles, HWND hwndDlg)
{
char szCmdLine[MAX_BUF];
char szSetupFile[CCHMAXPATH];
@ -549,11 +549,9 @@ RunInstaller(ULONG ulNumFiles, HWND hwndDlg)
DirectoryRemove(szTempPath, TRUE);
GetFullTempPathName(NULL, sizeof(szTempPath), szTempPath);
DirectoryRemove(szTempPath, FALSE);
return TRUE;
}
main(int argc, char *argv[], char *envp[])
int main(int argc, char *argv[], char *envp[])
{
HAB hab;
HMQ hmq;

Просмотреть файл

@ -67,7 +67,11 @@ NO_DIST_INSTALL = 1
include $(topsrcdir)/config/rules.mk
ifeq ($(MOZ_OS2_TOOLS),VACPP)
LDFLAGS += /PM:PM
else
LDFLAGS += -ZLinker /PM:PM
endif
libs:: $(PROGRAM)
$(INSTALL) $(PROGRAM) $(DIST)/install

Просмотреть файл

@ -54,7 +54,11 @@ NO_DIST_INSTALL = 1
include $(topsrcdir)/config/rules.mk
ifeq ($(MOZ_OS2_TOOLS),VACPP)
LDFLAGS += /PM:PM
else
LDFLAGS += -ZLinker /PM:PM
endif
libs:: $(PROGRAM)
$(INSTALL) $(PROGRAM) $(DIST)/install